1, the concept of link tracking:
when there is a network of HSRP 's backup router, you can configure an uplink trace of HSRP to reduce the priority of the HSRP device as soon as the specified trace interface is down, so that another backup device can be activated immediately as Active state, and replace down the device to continue to guide the routing data, to achieve the network unimpeded
2. Topology Planning:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/9F/wKiom1W6KNXTqTxzAAIWk5-cVtU292.jpg "title=" 1.png " alt= "Wkiom1w6knxtqtxzaaiwk5-cvtu292.jpg"/>
3, Case implementation:
1), each device configuration:
R1 Configuration:
Interface Loopback0 IPAddress 202.102.12.1 255.255.255.0interface serial1/0 IPAddress 172.16.0.1 255.255.255.252 serial Restart-delay 0 Clock rate 64000!interface SERIAL1/1 ipaddress 172.16.0.5 255.255.255.252 serial restart-delay 0 Clock rat E 64000
R2 Configuration:
interface fastethernet0/0.10 encapsulation dot1q 10 ipaddress 192.168.10.1 255.255.255.0 ipnat inside ipvirtual-reassembly Standby 10 ip 192.168.10.254 standby 10 priority 120 standby 10 preempt standby 10 track Serial1/0 30!interface FastEthernet0/0.20 Encapsulation dot1q 20 ipaddress 192.168.20.1 255.255.255.0 ipnat inside ipvirtual-reassembly standby 20 ip 192.168.20.254 standby 20 preempt interface serial1/0 ipaddress 172.16.0.2 255.255.255.252 ipnat outside ipvirtual-reassembly serial restart-delay 0 ip route 0.0.0.0 0.0.0.0 serial1/0ip nat inside source list 100 interfaceserial1/0 overload
R3 Configuration:
interface fastethernet0/0.10 encapsulation dot1q 10 ipaddress 192.168.10.2 255.255.255.0 ipnat inside ipvirtual-reassembly standby 10 ip 192.168.10.254 standby10 preempt!interface fastethernet0/0.20 encapsulation dot1Q 20 ipaddress 192.168.20.2 255.255.255.0 ipnat inside ipvirtual-reassembly standby 20 ip 192.168.20.254 standby 20 Priority 120 standby 20 preempt standby 20 track serial1/1 30 interface serial1/1 ipaddress 172.16.0.5 255.255.255.252 ipnat outside ipvirtual-reassembly serial restart-delay 0 ip route 0.0.0.0 0.0.0.0 serial1/1ip nat inside source list 100 interfaceserial1/1 overload
SW1 Configuration:
Interface fastethernet0/0 switchport mode trunk!interface fastethernet0/1 switchport mode trunk!interface FastEthernet0 /2 switchport mode trunk!interface FASTETHERNET0/3 switchport access VLAN 10!interface FASTETHERNET0/4 switchport Access V LAN VLAN database VLAN10 Vlan20
SW2 Configuration:
Interface fastethernet0/0 switchport mode trunk!interface fastethernet0/1 switchport mode trunk!interface FastEthernet0 /2 switchport mode trunk!interface FASTETHERNET0/3 switchport access VLAN 10!interface FASTETHERNET0/4 switchport Access V LAN VLAN database VLAN10 Vlan20
PC1 Configuration:
No IP routing interface fastethernet0/0 ipaddress 192.168.10.100 255.255.255.0 noip route-cache Duplex auto Speed auto IP Default-gateway 192.168.10.254
PC2 Configuration:
No IP routing interface fastethernet0/0 ipaddress 192.168.20.100 255.255.255.0 noip route-cache Duplex auto Speed auto IP Default-gateway 192.168.20.254
PC3 Configuration:
No IP routing interface fastethernet0/0 ipaddress 192.168.10.200 255.255.255.0 noip route-cache duplexauto speed auto IP d Efault-gateway 192.168.10.254
PC4 Configuration:
No IP routing interface fastethernet0/0 ipaddress 192.168.20.200 255.255.255.0 noip route-cache IP default-gateway 192.168 .20.254
2), after the configuration is complete, view the HSRP information for R2 and R3:
R2:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/9F/wKiom1W6KWezUQ8gAAFK4StAzRA233.jpg "title=" 2.png " alt= "Wkiom1w6kwezuq8gaafk4stazra233.jpg"/>
R3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/9F/wKiom1W6Mz_QasEiAAFR41toO60659.jpg "title=" 3.png " alt= "Wkiom1w6mz_qaseiaafr41too60659.jpg"/>
at this point in Trace the route to 202.102.12.1 on the PC2.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/9C/wKioL1W6NWqRaTrqAAD8k8eXFc4414.jpg "title=" 4.png " alt= "Wkiol1w6nwqratrqaad8k8exfc4414.jpg"/>
in the There's a situation on the PC3 track to 202.102.12.1.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/9F/wKiom1W6M5KAd279AADxTcwhWc4582.jpg "title=" 5.png " alt= "Wkiom1w6m5kad279aadxtcwhwc4582.jpg"/>
this will R1 The interface s1/0 is set to shutdown mode, and then view the HSRP information:
R2:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/9C/wKioL1W6NZ7APcYfAAFLv96aqlM763.jpg "title=" 6.png " alt= "Wkiol1w6nz7apcyfaaflv96aqlm763.jpg"/>
R3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/9F/wKiom1W6M8TxcrCJAAFGdgCy7cs634.jpg "title=" 7.png " alt= "Wkiom1w6m8txcrcjaafgdgcy7cs634.jpg"/>
at this time again in Tracing the route to 202.102.12.1 on PC1 and PC2 , the R3 automatically takes over the original route:
PC1:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/9C/wKioL1W6Nc-jNExmAAD4O6vUdqo958.jpg "title=" 8.png " alt= "Wkiol1w6nc-jnexmaad4o6vudqo958.jpg"/>
PC3:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6NCqB0O-oAAD7Y7bdQog371.jpg "title=" 11.png "alt=" Wkiom1w6ncqb0o-oaad7y7bdqog371.jpg "/>
This article is from the "but evil Water Heart Pan" blog, please be sure to keep this source http://shmilyfl.blog.51cto.com/8897986/1680352
HSRP and Link Tracking