Provides instructions for configuring HSRP on network interfaces, covering steps for enabling, setting priorities, and applying authentication and timer adjustments.
Before you begin
You can configure HSRP using the Cisco SD-WAN Manager CLI Add-on feature templates and CLI device templates. For more information on configuring using CLI templates, see CLI Templates. The following commands can be used in any order.
Procedure
| 1. | Enable HSRP on the interface. Create (or enable) the HSRP group in IPv4 using its number and virtual IP address:
Activate HSRP in IPv6:
|
|
| 2. | Set the HSRP version. Note that the nostandby or nostandby version 2 commands are rejected when the interface has IPv6 groups.
|
|
| 3. | Configure group priority and preemption. Set the priority value used in choosing the active router, and configure HSRP preemption and preemption delay:
|
|
| 4. | Enable HSRP authentication (MD5 or text authentication).
|
|
| 5. | Adjust HSRP timers. Configure the time between the hello packets and the time before other routers declare the active router to be inactive:
|
|
| 6. | Adjust HSRP object tracking. Configure HSRP to track an object and change the HSRP priority based on the state of the object:
|
|
| 7. | Optimize CPU and network performance with HSRP multiple group optimization.
|
|
| 8. | Configure a specific virtual MAC address. Specify a virtual MAC address for HSRP:
|
|
| 9. | Link IP redundancy clients to HSRP groups. Configure the name of a standby group:
The configured interface participates as a member of the specified HSRP group and provides high-availability failover with other routers in the group. |
Example
The following is a complete HSRP configuration example on Cisco IOS XE Catalyst SD-WAN devices through CLI:
config-transaction
!
interface GigabitEthernet0/0/1.94
encapsulation dot1Q 94
vrf forwarding 509
ip address 10.96.194.2 255.255.255.0
ip directed-broadcast
ip mtu 1500
ip nbar protocol-discovery
standby version 2
standby 1 preempt
standby 94 ip 10.96.194.1
standby 94 timers 1 4
standby 94 priority 110
standby 94 preempt delay minimum 180
standby 94 authentication md5 key-string 7 094F471A1A0A
standby 94 track 8 shutdown
standby 194 ipv6 2001:10:96:194::1/64
standby 194 timers 1 4
standby 194 priority 110
standby 194 preempt delay minimum 180
standby 194 authentication md5 key-string 7 094F471A1A0A
standby 194 track 80 shutdown
ip policy route-map clear-df
ipv6 address 2001:10:96:194::2/64
ipv6 mtu 1500
arp timeout 1200
end
What to do next
-
Verify HSRP operation and monitor for proper failover behavior.
-
Adjust settings based on observed performance as needed.