H3C综合配置

wKioL1ZsRCjT3OunAABTyB3TzS8844.png


二、实验场景:

H公司的网络拓扑图如上,网络环境描述如下:

  • RTBH 公司汇聚层路由,并且是连接外部网络的出口路由器

  • SWA 连接公司局域网用户PCAPCA通过在RTB 上配置的NAT转换访问公网

  • 公司用户PCB要求可以远程登录内网路由器RTA

  • SWBRTA之间通过以太网连接,使用RIPV2实现互联

  • RTARTB之间通过PPP以及RIPV2实现互联,RTARTB之间配置CHAP 双向认证

  • SWASWB RTBSWC 之间使用以太网,配置静态路由实现互联

     

三、实验要求:

请搭建并配置H公司网络,要求:

  1. 根据图示完成拓扑链接,并按图示完成标识。

  2. 正确配置IP 地址,注意接口地址依据所选择设备进行适当调整,例如:G0/1调整为G1/0/1,请在不修改图示IP地址的前提下将其配置在正确的接口上。

  3. 正确配置SWASWB互联接口“G0/23”和“G0/24”间的链路聚合,在保证设备间无环路情况下,成倍提高互联宽带。

  4. 正确配置RTARTB之间的PPP及其CHAP协议双向认证(即RTARTB互为认证),两个路由器上的用户名都为CHAP,密码都为test,使得RTARTB广域网实现互通。

  5. 正确配置SWBRTARTB之间的 RIPV2 协议,要求:

  • SWASWBRTB SWC的互联网段不能使用RIP协议发布路由

  • 在配置RIPV2时不允许使用import命令

  • PCA可以pingRTB GE0/1接口IP

 6.在RTB上配置NAT以及各路由器的静态路由实现H公司局域网用户通过NAT 转换访问SWCPCB:

  • 正确配置访问控制列表,实现只允许PCA所在的网段通过Nat转换访问SWC

  • RTB上使用NAPT的方式实现NAT转换,NAT地址池为100.1.1.100-100.1.1.110

  • 正确配置NAT sever服务,让PCB可以远程TelnetRTA上配置设备

  • 配置合理的静态路由,使得PCA可以pingPCB

  7.在网络中合理的设备上配置ACL,要求:

  • PCARTA无法相互ping通,但是PCA依然可以ping通网络中其他设备的任一正常工作的接口地址


  • PCA无法TelnetRTA,但PCB可以TelnetRTA,且以用户名及密码(用户名为user密码:3011)方式登录,登录后具有管理员权限。


   wKioL1ZyhvWS7EVUAABPcFL4KeI464.png

搭建如图所示拓扑结果,配置SWASWB互联接口“G0/23”和“G0/24”间的链路聚合

SWA命令:

[H3C]hostname SWA

[SWA]interface Bridge-Aggregation 1

[SWA]interface GigabitEthernet 1/0/23

[SWA-GigabitEthernet1/0/23]port link-aggregation group 1

[SWA]interface GigabitEthernet 1/0/24

[SWA-GigabitEthernet1/0/24]port link-aggregation group 1

[SWA]vlan 3

[SWA]interface Bridge-Aggregation 1

[SWA-Bridge-Aggregation1]port link-type access

[SWA-Bridge-Aggregation1]port access vlan 3

[SWA]interface Vlan-interface 3

[SWA-Vlan-interface3]ip address 10.1.2.1 30

SWB命令:

[H3C]hostname SWB

[SWB]interface Bridge-Aggregation 1    

[SWB]interface GigabitEthernet 1/0/23

[SWB-GigabitEthernet1/0/23]port link-aggregation group 1

[SWB]interface GigabitEthernet 1/0/24

[SWB-GigabitEthernet1/0/24]port link-aggregation group 1

[SWB]vlan 3

[SWB]interface Bridge-Aggregation 1

[SWB-Bridge-Aggregation1]port link-type access

[SWB-Bridge-Aggregation1]port access vlan 3

[SWB]interface Vlan-interface 3

[SWB-Vlan-interface3]ip address 10.1.2.2 30

测试链路聚合:

wKiom1ZyhxGjtqM8AAAseke6q1A022.png

wKioL1Zyhxvgf27pAAAqog6UK2Y923.png

wKioL1ZyhzOwh0AzAABNlz6pcIA192.png

连接RTARTB ,并且启动路由器。配置RTARTB之间的PPP及其CHAP协议双向认证。

RTA命令:

[H3C]hostname RTA

[RTA]local-user CHAP class network

[RTA-luser-network-CHAP]password simple test

[RTA-luser-network-CHAP]service-type ppp

[RTA]interface Serial 1/0

[RTA-Serial1/0]ppp authentication-mode chap

[RTA-Serial1/0]ppp chap user CHAP

[RTA-Serial1/0]ppp chap password simple test

[RTA-Serial1/0]ip address 10.1.4.1 30

[RTA-Serial1/0]shutdown

[RTA-Serial1/0]undo shutdown

RTB命令:

[H3C]hostname RTB

[RTB]local-user CHAP class network

[RTB-luser-network-CHAP]password simple test

[RTB-luser-network-CHAP]service-type ppp

[RTB]interface Serial 1/0

[RTB-Serial1/0]ppp authentication-mode chap

[RTB-Serial1/0]ppp chap user CHAP

[RTB-Serial1/0]ppp chap password simple test

[RTB-Serial1/0]ip address 10.1.4.2 30

chap 双向认证测试:

wKioL1Zyh4Lj7ZvXAAAkcWIVxB8441.png

wKiom1Zyh4jgQpSoAABU5NEcjGI361.png

继续连接拓扑结构,配置SWBRTARTB之间的 RIPV2 协议。

SWB命令:

[SWB]vlan 2

[SWB]interface vlan 2

[SWB-Vlan-interface2]ip address 10.1.3.1 30

[SWB]interface GigabitEthernet 1/0/1

[SWB-GigabitEthernet1/0/1]port link-type access

[SWB-GigabitEthernet1/0/1]port access vlan 2

[SWB]rip

[SWB-rip-1]version 2

[SWB-rip-1]network 10.1.3.0 0.0.0.3

[SWB-rip-1]network 10.1.2.0 0.0.0.3

[SWB]interface Vlan-interface 3

[SWB-Vlan-interface3]undo rip output

[SWB]ip route-static 0.0.0.0 0.0.0.0 10.1.3.2

[SWB]ip route-static 10.1.1.0 255.255.255.0 10.1.2.1

RTA命令:

[RTA]interface GigabitEthernet 0/1

[RTA-GigabitEthernet0/1]ip add 10.1.3.2 30

[RTA-GigabitEthernet0/1]undo shutdown

[RTA]rip

[RTA-rip-1]version 2

[RTA-rip-1]network 10.1.3.0 0.0.0.3

[RTA-rip-1]network 10.1.4.0 0.0.0.3

[RTA]ip route-static 0.0.0.0 0.0.0.0 10.1.4.2

[RTA]ip route-static 10.1.1.0 255.255.255.0 10.1.3.1

RTB命令:

[RTB]interface GigabitEthernet 0/1

[RTB-GigabitEthernet0/1]ip address 100.1.1.1 24

[RTB-GigabitEthernet0/1]undo shutdown

[RTB]rip

[RTB-rip-1]version 2

[RTB-rip-1]network 10.1.4.0 0.0.0.3

[RTB]interface GigabitEthernet 0/1

[RTB-GigabitEthernet0/1]ip add 100.1.1.1 24

[RTB-GigabitEthernet0/1]undo rip output

[RTB]ip route-static 10.1.1.0 255.255.255.0 10.1.4.1

SWA命令:

[SWA]ip route-static 0.0.0.0 0.0.0.0 10.1.2.2

[SWA]vlan 2

[SWA]interface GigabitEthernet 1/0/1

[SWA-GigabitEthernet1/0/1]port link-type access

[SWA-GigabitEthernet1/0/1]port access vlan 2

[SWA]interface Vlan-interface 2

[SWA-Vlan-interface2]ip address 10.1.1.254 24

PC1配置:

wKioL1Zyh7KASqE8AAB05aO6lrA177.png

wKiom1Zyh7jRV8OGAAAjkKEyStg594.png

配置NAT以及各路由器的静态路由实现H公司局域网用户通过NAT 转换访问SWCPCB

[RTB]acl basic 2000

[RTB-acl-ipv4-basic-2000]rule permit source 10.1.1.10 0.0.0.255

[RTB-acl-ipv4-basic-2000]rule permit source 10.1.4.1 0.0.0.0

[RTB]nat address-group 1

[RTB-address-group-1]address 100.1.1.100 100.1.1.110

[RTB]interface GigabitEthernet 0/1

[RTB-GigabitEthernet0/1]nat outbound 2000 address-group 1

[RTB-GigabitEthernet0/1]nat server protocol tcp global 100.1.1.111 inside10.1.4.1 telnet

[RTB]ip route-static 0.0.0.0 0.0.0.0 100.1.1.2

SWC命令:

[H3C]hostname SWC

[SWC]vlan 3

[SWC]vlan 2

[SWC]interface GigabitEthernet 1/0/1

[SWC-GigabitEthernet1/0/1]port link-type access

[SWC-GigabitEthernet1/0/1]port access vlan 2

[SWC]interface GigabitEthernet 1/0/2

[SWC-GigabitEthernet1/0/2]port link-type access

[SWC-GigabitEthernet1/0/2]port access vlan 3

[SWC]interface Vlan-interface 3

[SWC-Vlan-interface3]ip address 100.1.1.2 24

[SWC]interface vlan 2

[SWC-Vlan-interface2]ip address 101.1.1.254

RTA命令:

[RTA]telnet server enable

[RTA]user-interface vty 0

[RTA-line-vty0]authentication-mode scheme

[RTA-line-vty0]protocol inbound telnet

[RTA-line-vty0]screen-length 30

[RTA-line-vty0]history-command max-size 20

[RTA-line-vty0]idle-timeout 10

[RTA]local-user user

[RTA-luser-manage-user]password simple 3011

[RTA-luser-manage-user]service-type telnet

[RTA-luser-manage-user]authorization-attribute user-role network-admin


你可能感兴趣的:(局域网,路由器,IP地址,广域网)