HSRP is the private protocol of Cisco, the high-priority primary router as the virtual router with the virtual gateway IP address, the ARP request to the corresponding PC, and the MAC address of 000.0c07.acxx,xx is the HSRP group ID. Duplicate group IDs should be avoided in the production network, causing the Mac to repeat itself. STANDBY preempt allows high-priority router preemption. STANDBY track allows the router to specify the monitored ports and routes for the HSRP process, changing the HSRP priority.
Experimental topology:
Description: R2 and R3 respectively as the primary and standby routers for Vlan10 and Vlan20. R4 access to the extranet server through R2, R5 access to the extranet through R3. When the R2 uplink is interrupted, the R3 switches to the VLAN10 primary route, and R4 accesses the extranet through R3.
Experiment Configuration:
1.R1,R2 and R3 build OSPF:
2.R2 configuration standby:
The default priority is 100,track by default by 10, which we set manually separately.
Experimental validation:
1.R2 on standby Status:
2. The state of the same R3:
3. Close the R2 upstream port and observe the process:
4. Check the state of Stan on the R2:
/span>
< Span style= "font-family:"helvetica neue"; font-size:15px; Background-color:rgb (255, 255, 255); " >5.R4 route tracking before and after R2 interface Up/down:
< Span style= "font-family:"helvetica neue"; font-size:15px; Background-color:rgb (255, 255, 255); " >
< Span style= "font-family:"helvetica neue"; font-size:15px; Background-color:rgb (255, 255, 255); " > 6. Restore the R2 upstream interface, observe:
< Span style= "font-family:"helvetica neue"; font-size:15px; Background-color:rgb (255, 255, 255); " >
CISCO HSRP Experiments