《神州数码12hsrp实验(全)》由会员分享,可在线阅读,更多相关《神州数码12hsrp实验(全)(35页珍藏版)》请在金锄头文库上搜索。
1、15526S-23926S5005526S-1600HSRP配置实例0/0/10/0/20/0/10/0/20/0/10/0/2192.168.100.22192.168.100.1192.168.100.2192.168.60.1192.168.50.1OSPF/RIP5526S-23926S5005526S-1600400400HSRP vlan 10 192.168.10.10/0/10/0/20/0/10/0/20/0/10/0/2192.168.100.22192.168.10.2192.168.10.3192.168.60.3192.168.50.210010025526S-1 二
2、层配置 hostname 5526S-1 vlan 100 switchport interface ethernet 0/0/1 vlan 400 switchport interface ethernet 0/0/2 vlan 600 switchport interface ethernet 0/0/11-155526S-2 二层配置 hostname 5526S-2 vlan 100 switchport interface ethernet 0/0/1 vlan 400 switchport interface ethernet 0/0/2 vlan 500 switchport i
3、nterface ethernet 0/0/11-1535526S-1 三层配置 interface vlan 100 ip address 192.168.10.3 255.255.255.0 interface vlan 400 ip address 192.168.40.3 255.255.255.0 interface vlan 600 ip address 192.168.60.3 255.255.255.05526S-2 三层配置 interface vlan 100 ip address 192.168.10.2 255.255.255.0 interface vlan 400
4、ip address 192.168.40.2 255.255.255.0 interface vlan 500 ip address 192.168.50.2 255.255.255.045526S-1 路由配置 配置一: router ospf network 192.168.40.0 255.255.255.0 area 0 redistribute ospfase connectted interface vlan 400 ip ospf enable area 0 配置二: router rip interface vlan 100 ip rip work interface vla
5、n 400 ip rip work interface vlan 600 ip rip work5526S-2 路由配置 配置一: router ospf network 192.168.40.0 255.255.255.0 area 0 redistribute ospfase connectted interface vlan 400 ip ospf enable area 0 配置二: router rip interface vlan 100 ip rip work interface vlan 400 ip rip work interface vlan 500 ip rip wor
6、k55526S-1 HSPR配置 interface vlan 100 standby 10 ip 192.168.10.1 standby 10 authentication DCN #/配置认证口令(可选) standby 10 priority 20 #/配置优先级(可选) standby 10 preempt #/配置为抢占模式(可选)5526S-2 HSPR配置 interface vlan 100 standby 10 ip 192.168.10.1 standby 10 authentication DCN #/配置认证口令(可选) standby 10 priority 10
7、#/配置优先级(可选) standby 10 preempt #/配置为抢占模式(可选)6查看信息 show standby 测试,使用PC去Ping vlan500或者vlan600 中的任意一台PC,备份的线路可以任意中 断;数据通讯不中断1005526S-23926S5002003005526S-1600HSRP配置实例0/0/10/0/20/0/10/0/20/0/10/0/27OSPF/RIP1005526S-23926S5002003005526S-1600Trunk 100,200,300Trunk 100,200,300400400HSRP 100 200 3000/0/10/
8、0/20/0/10/0/20/0/10/0/23926S vlan 100 switchport interface ethernet 0/0/16-20 vlan 200 switchport interface ethernet 0/0/6-10 vlan 300 switchport interface ethernet 0/0/11-15 interface ethernet 0/0/1-2 switchport mode trunk switchport trunk allowed vlan 100;200;30085526S-1 二层配置 hostname 5526S-1 vlan
9、 100 vlan 200 vlan 300 vlan 400 switchport interface ethernet 0/0/2 vlan 600 switchport interface ethernet 0/0/11-15 interface ethernet 0/0/1 switchport mode trunk switchport trunk allowed vlan 100;200;3005526S-2 二层配置 hostname 5526S-2 vlan 100 vlan 200 vlan 300 vlan 400 switchport interface ethernet
10、 0/0/2 vlan 500 switchport interface ethernet 0/0/11-15 interface ethernet 0/0/1 switchport mode trunk switchport trunk allowed vlan 100;200;30095526S-1 三层配置 interface vlan 100 ip address 192.168.10.2 255.255.255.0 interface vlan 200 ip address 192.168.20.2 255.255.255.0 interface vlan 300 ip addres
11、s 192.168.30.2 255.255.255.0 interface vlan 400 ip address 192.168.40.2 255.255.255.0 interface vlan 600 ip address 192.168.60.2 255.255.255.05526S-2 三层配置 interface vlan 100 ip address 192.168.10.3 255.255.255.0 interface vlan 200 ip address 192.168.20.3 255.255.255.0 interface vlan 300 ip address 1
12、92.168.30.3 255.255.255.0 interface vlan 400 ip address 192.168.40.3 255.255.255.0 interface vlan 500 ip address 192.168.50.3 255.255.255.0105526S-1 路由配置配置一: router ospf network 192.168.40.0 255.255.255.0 area 0 redistribute ospfase connectted interface vlan 400 ip ospf enable area 0 配置二: router rip
13、 interface vlan 100 ip rip work interface vlan 200 ip rip work interface vlan 300 ip rip work interface vlan 400 ip rip work interface vlan 600 ip rip work5526S-2 路由配置配置一: router ospf network 192.168.40.0 255.255.255.0 area 0 redistribute ospfase connectted interface vlan 400 ip ospf enable area 0 配
14、置二: router rip interface vlan 100 ip rip work interface vlan 200 ip rip work interface vlan 300 ip rip work interface vlan 400 ip rip work interface vlan 500 ip rip work115526S-1 HSPR配置 interface vlan 100 standby 10 ip 192.168.10.1 standby 10 authentication DCN#/配置认证口令 interface vlan 200 standby 20
15、ip 192.168.20.1 standby 20 priority 20#/配置优先级 interface vlan 300 standby 30 ip 192.168.30.1 standby 30 preempt#/配置为抢占模式5526S-2 HSPR配置 interface vlan 100 standby 10 ip 192.168.10.1 standby 10 authentication DCN#/配置认证口令 interface vlan 200 standby 20 ip 192.168.20.1 standby 20 priority 10#/配置优先级 interface vlan 300 standby 30 ip 192.168.30.1 standby 30 preempt#/配置为抢占模式12查看信息 show standby1005526S-43926S-13926S-25002003001002003005526S-3600思考题一13OSPFHSRP vlan 100 vlan 200 vlan 3005526-43926-13926-2