Hot Standby Routing Protocol (HSRP) is a Cisco proprietary redundancy protocol designed to increase network reliability by providing backup to routers. When used in IPv6 networks, HSRP ensures continuous network availability by automatically transferring the packet forwarding responsibility from one router to another in the event of a failure. This blog post will dive into HSRP for IPv6, its configuration, and verification with practical examples.
What is HSRP?
HSRP is a redundancy protocol for establishing a fault-tolerant default gateway. It creates a virtual router, which is a combination of multiple routers working together to present a single virtual IP address to the devices on the local network. If the primary router fails, HSRP seamlessly switches to a standby router without disrupting network communication.
How Does HSRP Work?
HSRP uses a standby group consisting of at least two routers: an active router and a standby router. The active router is responsible for forwarding packets, while the standby router monitors the active router's status. If the active router fails, the standby router takes over the packet forwarding duties.
HSRP for IPv6 Configuration
Let's look at an example configuration for HSRP on IPv6. We will configure two routers, R1 and R2, to demonstrate this setup. Below are the steps to configure HSRP for IPv6 on R1.
Step-by-Step Configuration
1. Interface Configuration:
Configure the interface on which HSRP will run. In this example, we use FastEthernet 0/1.
R1(config)# interface fastethernet 0/1
2. HSRP Version 2:
Set HSRP to use version 2, which supports IPv6.
R1(config-if)# standby version 2
3. Autoconfigure IPv6 Address:
Enable IPv6 autoconfiguration for the virtual link-local address.
R1(config-if)# standby GROUP# ipv6 autoconfig
4. Set Virtual Shared IPv6 Address:
Assign a virtual shared IPv6 address. In this example, the virtual IP is 2001:CAFE:ACAD:4::1/64.
R1(config-if)# standby GROUP# ipv6 2001:CAFE:ACAD:4::1/64
5. Set Priority and Preempt:
Configure the router priority and enable preemption. A higher priority value indicates the primary router. The default priority is 100. Preemption allows a router to take over as the active router if it comes back online after a failure.
R1(config-if)# standby GROUP# priority NUMBER
R1(config-if)# standby GROUP# preempt
Example Configuration for R1
Assuming GROUP# is 1 and the priority of R1 is set to 150, the configuration would look like this:
R1(config)# interface fastethernet 0/1
R1(config-if)# standby version 2
R1(config-if)# standby 1 ipv6 autoconfig
R1(config-if)# standby 1 ipv6 2001:CAFE:ACAD:4::1/64
R1(config-if)# standby 1 priority 150
R1(config-if)# standby 1 preempt
Example Configuration for R2
Configure R2 similarly, but with a lower priority (e.g., 100):
R2(config)# interface fastethernet 0/1
R2(config-if)# standby version 2
R2(config-if)# standby 1 ipv6 autoconfig
R2(config-if)# standby 1 ipv6 2001:CAFE:ACAD:4::1/64
R2(config-if)# standby 1 priority 100
R2(config-if)# standby 1 preempt
Verifying HSRP Configuration
After configuring HSRP, you can verify the settings and status with the show standby command:
R1# show standby
This command displays the current HSRP status, including which router is active, which is standby, and their priorities.
Sample Output
FastEthernet0/1 - Group 1
State is Active
5 state changes, last state change 00:01:25
Virtual IP address is 2001:CAFE:ACAD:4::1
Active virtual MAC address is 0000.0c07.ac01
Local virtual MAC address is 0000.0c07.ac01 (v2 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.592 secs
Preemption enabled
Active router is local
Standby router is FE80::21C:F6FF:FE12:3456, priority 100 (expires in 7.728 sec)
Priority 150 (configured 150)
Group name is "hsrp-Fa0/1-1" (default)
This output indicates that R1 is the active router with a priority of 150, and R2 is the standby router with a priority of 100.
HSRP for IPv6 is an essential protocol for ensuring high availability and redundancy in your network. By configuring HSRP, you can provide a seamless failover mechanism that maintains network stability and minimizes downtime. The step-by-step configuration provided in this blog should help you set up HSRP for IPv6 in your network environment efficiently.
For further reading and advanced configurations, consider exploring the official Cisco documentation and other network redundancy protocols such as VRRP (Virtual Router Redundancy Protocol) and GLBP (Gateway Load Balancing Protocol).
Happy networking!
If found helpful please share likes and comments for more
Thank you for your valuable time