650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/39/55/wKioL1O46LayrnNFAAC5ECyBdFg105.jpg "Title =" qq 40706140729.jpg "alt =" wkiol1o46layrnnfaac5ecybdfg105.jpg "/>
The main application environment of HSRP is dual-core in the core layer, which is mainly used for redundancy of core devices.
HSRP is a private protocol of Cisco, and vrrp is an international standard of IEEE.
Start the experiment below:
1. Configure R1 as follows:
R1 (config) # interface fastethernet 1/0
R1 (config-If) # IP address 192.168.1.1 255.255.255.0
R1 (config-If) # standby 1 ip address 192.168.1.254
// The IP address of the vro in hot backup group 1 is 192.168.1.254.
R1 (config-If) # standby 1 Priority 200
// Priority of R1 in hot backup group 1 is 200.
R1 (config-If) # standby 1 timers 5 15
// The Hello time of hot backup group 1 is 5 seconds, and the retention time is 15 seconds.
R1 (config-If) # No Shutdown
2. Configure on R2:
R2 (config) # interface fastethernet 1/0
R2 (config-If) # IP address 192.168.1.2 255.255.255.0
R2 (config-If) # standby 1 ip address 192.168.1.254
// The IP address of the vro in hot backup group 1 is 192.168.1.254.
R2 (config-If) # standby 1 Priority 100
// The priority of R2 in hot backup group 1 is 100.
R2 (config-If) # No Shutdown
R2 (config-If) # standby 1 timers 5 15
3. Configure in R3:
R3 (config) # interface fastethernet 1/0
R3 (config-If) # IP address 192.168.1.1 255.255.255.0
R3 (config-If) # standby 1 ip address 192.168.1.254
// The IP address of the vro in hot backup group 1 is 192.168.1.254.
R3 (config-If) # standby 1 Priority 50
// Priority of R1 in hot backup group 1 is 50.
R3 (config-If) # standby 1 timers 5 15
// The Hello time of hot backup group 1 is 5 seconds, and the retention time is 15 seconds.
R3 (config-If) # No Shutdown
Verify the effect on r1:
R1 # Show standby
Fastethernet1/0-Group 1
Local State is active, priority 200
Hellotime 5 sec, holdtime 15 sec
Next Hello sent in 2.084
Virtual IP address is 192.168.1.254 configured
Active router is local
Standby Router is 192.168.1.2, priority 100 expires in 8.404
Virtual MAC address is 255.255.c07.ac01
2 state changes, last state change 00:01:42
IP redundancy name is "hsrp-Fa1/0-1" (default)
If you disconnect an interface on R1 or R2, the IP address 192.168.1.254 can be connected.
Verify the effect when R1 is disconnected.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/39/55/wKiom1O46y2R9LEjAAFF-AUHXYM154.jpg "Title =" 22.jpg" alt = "wKiom1O46y2R9LEjAAFF-AUHXYM154.jpg"/>