CISCO的热备份路由协议实验(HSRP)

实验目的:当网络中一个路由器down不能正常工作,可以用hsrp协议让数据从另外的一个通道进行传递,从而解决了单线路故障。拓扑如下
CISCO的热备份路由协议实验(HSRP)

                                1;pc 0  配置  ip 192.168.10.1
                 gateway 192.168.10.251 此时的这个网关设置成为虚拟网关。

                                2 ;switch 0 上配置vlan 10  把fa0/1 fa0/2 fa0/3  同时划分到vlan10里面。
  • interface FastEthernet0/1
  • switchport access vlan 10
  • switchport mode access
  • !
  • interface FastEthernet0/2
  • switchport access vlan 10
  • switchport mode access
  • !
  • interface FastEthernet0/3
  • switchport access vlan 10
  • switchport mode access

                                3.在router 0 上的fa0/0端口上面配置 ip地址 192.168.10.250/24
    
                                 并且在接口下面配置hsrp协议
    
                                 一定要开启抢占模式
    • interface FastEthernet0/0
  • ip address 192.168.10.252 255.255.255.0
  • duplex auto
  • speed auto
  • standby version 2
  • standby 0 ip 192.168.10.251(这个ip是虚拟ip。一般思科的hsrp是没有开启抢占模式的,一定要开启)
  • standby priority 250
  • standby preempt

                                4..在router 1 上的fa0/0端口上面配置 ip地址 192.168.10.252/24
    
                                并且在接口下面配置hsrp协议
    
                                 一定要开启抢占模式
  • interface FastEthernet0/0
  • ip address 192.168.10.252 255.255.255.0
  • duplex auto
  • speed auto
  • standby version 2
  • standby 0 ip 192.168.10.251(这个ip是虚拟ip。一般思科的hsrp是没有开启抢占模式的,一定要开启)
  • standby priority 250
  • standby preempt

猜你喜欢

转载自blog.51cto.com/13669293/2114225