HSRP is an protocol in. Along with dynamic routing protocols along with STP, HSRP is thought to be a network assistance, because all three have an instantaneous cutover to a secondary route when the primary route is unavailable.
Among those routers will probably be chosen as the primary (“Active”, in HSRP language ), which primary will take care of the routing while the other routers are at standby, ready to manage the load if the main router becomes unavailable. As it routes IP traffic without relying upon a single router in this fashion, a top network uptime is ensured by HSRP.
The hosts HSRP for a gateway don’t know the real IP or MAC addresses of the routers in the group. They’re communicating with a pseudorouter, a”virtual router” made from the HSRP configuration. This digital router will have a MAC and IP adddress .
The standby routers are going to be sitting there! Configuring multiple HSRP groups on a single port can, HSRP load balancing accomplished.
Before we get to the HSRP configuration that is advanced we better get a one began! We are going to use a two-router topology here, also also remember that one or both of these routers could be multilayer switches as well. For ease of reading, I’m going to refer to them just as routers.
R3 and r2 will be configured to maintain standby group 5. The digital router will have an IP address of 172.12.23.10 / / 24. All hosts in VLAN 100 must utilize this address as their default gateway.
R2(config)#interface ethernet0
R2(config-if)#standby 5 ip 172.12.23.10
R3(config)#interface ethernet0
R3(config-if)#standby 5 ip 172.12.23.10
The display command for HSRP is display standby, and it’s the first command you need to run while configuring and troubleshooting HSRP. Letit runs on both the routers and compare success.
R2#show standby
Ethernet0 – Group 5
Local state is Standby, priority 100
Hellotime 3 sec, holdtime 10 sec
Next hello sent in 0.776
Virtual IP address is 172.12.23.10 configured
Active router is currently 172.12.23.3, priority 100 expires in 9.568
Standby router is local
1 state changes, last state change 00:00:22
R3#show standby
Ethernet0 – Group 5
Local state is Active
Hellotime 3 sec, holdtime 10 sec
Next hello sent in 2.592
Virtual IP address is 172.12.23.10 configured
Active router is local
Standby router is 172.12.23.2 expires in 8.020
Virtual mac address is 0000.0c07.ac05
2 state changes
We can see that R3 has been chosen as the router (“local condition is Active”), the virtual router IP is currently 172.12.23.10, and R2 is the standby router.
There are a number of HSRP values you’ll need to change from time to time. Imagine if we want R2 to be the Active router? Can we alter the router’s MAC address? I will answer these questions in another portion of the HSRP tutorial!
Customer Reviews
Thanks for submitting your comment!