The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Hot Standby Router Protocol (HSRP) commands that begin with H.
To enter Hot Standby Router Protocol (HSRP) configuration mode and create an HSRP group, use the hsrp command. To disable HSRP, use the no form of this command.
hsrp group-number ipv4
no hsrp group-number ipv4
Disabled
Interface configuration mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
You must globally enable HSRP before you can configure any HSRP options or create an HSRP group.
This example shows how to create and activate an HSRP group:
switch# configure terminal
switch(config)# interface ethernet 0
switch(config-if)# no switchport
switch(config-if)# ip address 172.16.6.5 255.255.255.0
switch(config-if)# hsrp 1
switch(config-if-hsrp)#
This example shows how to create and activate an HSRP group for IPv6:
switch# configure terminal
switch(config)# interface ethernet 1
switch(config-if)# no switchport
switch(config-if)# ipv6 address 172.16.6.5 255.255.255.0
switch(config-if)# hsrp 1
switch(config-if-hsrp)#
To delay Hot Standbu Router Protocol (HSRP) initialization after a reload or after an interface comes up, use the hsrp delay command. To disable this function, use the no form of this command.
hsrp delay {minimum min-delay | reload reload-delay}
no delay {minimum min-delay | reload reload-delay}
The HSRP delay default is 0 seconds.
Interface configuration mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the hsrp delay command to delay HSRP initialization either after a reload or after an interface comes up. This configuration allows the interface and router to stabilize after the interface comes up and helps prevent HSRP state flapping.
This example shows how to configure a minimum delay of 3 seconds and a group initialization delay of 10 seconds:
switch# configure terminal
switch(config)# interface ethernet 1/5
switch(config-if)# no switchport
switch(config-if)# ip address 172.16.6.5 255.255.255.0
switch(config-if)# hsrp 1
switch(config-if-hsrp)# hsrp delay minimum 3 reload 10
switch(config-if-hsrp)#
|
|
---|---|
feature hsrp |
Enables the HSRP configuration. |
hsrp |
Creates HSRP groups. |
show hsrp delay |
Displays the HSRP delay information. |