HSRP 设备冗余实验 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

一、 试验目的
学习设备冗余的原理方法 , 掌握 hsrp 的配置过程和工作原理 !
二、 试验拓扑图

三、 试验过程
(一)  配置基本接口地址
(二)    配置路由协议 , 使网络互联互通
个人使用 rip v2 协议
测试 :
route3#ping <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />10.1.2.2 网络互联实现
(三)   hsrp 的配置
1.         router2 的配置
Router2(config-router)#int f1/0
Router2(config-if)#standby 50 priority 150
Router2(config-if)#standby preempt
Router2(config-if)#standby 50 ip 192.168.0.103
2.         router3 的配置
route3(config)#int f1/0
route3(config-if)#standby 50 preempt
route3(config-if)#standby 50 ip 192.168.0.103
3.         测试
Pc 上测试虚拟的网管是否可用
Ping 10.1.2.2
假设 router2 出现故障
Router(config)#int f1/0
Router(config-if)#shut
Pc 上再次测试
Ping 10.1.2.2
在路由器上参看
route3#sho standby bri
Interface   Grp  Prio   P State    Active          Standby         Virtual IP    
Fa1/0       50  100  P Active   local           unknown         192.168.0.103
  router2#sho standby bri
Interface   Grp Prio P State    Active          Standby         Virtual IP    
Fa1/0       50  150    Init     unknown         unknown         192.168.0.103
4.         链路的跟踪配置
试验目的 : 假设 s0/0 s0/1 链路出现问题 , route2 不能转发
 router2(config-if)#standby 50 track s0/1 100
 router2(config)#int s0/1
router2(config-if)#shut
route3(config-if)#do sho standby bri
Interface   Grp Prio P State    Active          Standby         Virtual IP    
Fa1/0       50  100  P Active   local           unknown         192.168.0.103
打开 router2 s0/1
router2(config-if)#do sho standby bri
Interface   Grp  Prio  P State    Active          Standby          Virtual IP    
Fa1/0       50  150  P Active   local           unknown         192.168.0.103