Cisco N9k HSRP Config over vPC
Assume vPC is already configured as shown in the attached post.
1. Enable the Features
feature interface-vlan
feature hsrp
2. Configure HSRP
interface Vlan20
no shutdown
no ip redirects
ip address 10.0.0.3/24
no ipv6 redirects
ip arp timeout 450
hsrp version 2
hsrp 20
preempt delay minimum 30 reload 120
priority 105
timers msec 250 msec 750
ip 10.0.0.1
3. Check HSRP
switch1# show hsrp
Vlan20 - Group 20 (HSRP-V2) (IPv4)
Local state is Active, priority 110 (Cfged 110), may preempt
Forwarding threshold(for vPC), lower: 0 upper: 110
Preemption Delay (Seconds) Reload:120 Minimum:30
Hellotime 250 msec, holdtime 750 msec
Next hello sent in 0.180000 sec(s)
Virtual IP address is 10.0.0.1 (Cfged)
Active router is local
Standby router is 10.0.0.3 , priority 105 expires in 0.573000 sec(s)
Authentication text "cisco"
Virtual mac address is 0000.0c9f.f014 (Default MAC)
2 state changes, last state change 00:00:45
IP redundancy name is hsrp-Vlan20-20 (default)
switch2# show hsrp
Vlan20 - Group 20 (HSRP-V2) (IPv4)
Local state is Standby, priority 105 (Cfged 105), may preempt
Forwarding threshold(for vPC), lower: 0 upper: 105
Preemption Delay (Seconds) Reload:120 Minimum:30
Hellotime 250 msec, holdtime 750 msec
Next hello sent in 0.215000 sec(s)
Virtual IP address is 10.0.0.1 (Cfged)
Active router is 10.0.0.2, priority 110 expires in 0.716000 sec(s)
Standby router is local
Authentication text "cisco"
Virtual mac address is 0000.0c9f.f014 (Default MAC)
1 state changes, last state change 00:09:20
IP redundancy name is hsrp-Vlan20-20 (default)