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 P.
To configure a preemption delay, use the preempt command. To disable this feature, use the no form of this command.
preempt [delay {minimum min-delay | reload rel-delay | sync sync-delay}]
no preempt [delay {minimum min-delay | reload rel-delay | sync sync-delay}]
The default delay time for all options is 0 seconds.
Interface configuration or HSRP template mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Specifying a minimum delay allows routing tables to be updated before a router becomes active. When a router first comes up, it does not have a complete routing table. A high-priority router will only delay preemption if it first receives a hello packet from a low-priority active router. If the high-priority router does not receive a hello packet from the low-priority active router when it is starting up, it assumes there is no active router for the group and becomes active as soon as possible.
This example shows how to configure a delay when a router becomes active when its priority is 110:
switch# configure terminal
switch(config)# interface ethernet 0/1
switch(config-if)# no switchport
switch(config-if)# ip address 10.0.0.1 255.255.255.0
switch(config-if)# hsrp 4
switch(config-if-hsrp)# priority 110
switch(config-if-hsrp)# preempt
switch(config-if-hsrp)# authentication text sanjose
switch(config-if-hsrp)# ip 10.0.0.3
switch(config-if-hsrp)# end
|
|
---|---|
feature hsrp |
Enables the HSRP configuration. |
show hsrp |
Displays HSRP information. |
To set the priority level within a Hot Standby Router Protocol (HSRP) group, use the priority command. To remove the priority level, use the no form of this command.
priority level [forwarding-threshold lower lower-value upper upper-value]
no priority level [forwarding-threshold lower lower-value upper upper-value]
level: 100
lower-value: 1
upper-value: 255
HSRP configuration or HSRP template mode
|
|
---|---|
6.0(2)N1(1) |
This command was introduced. |
Use the priority command to control which virtual router becomes the active router. HSRP compares the priorities of all virtual routers in the HSRP group and selects the router with the numerically highest priority. If two virtual routers have equal priority, HSRP selects the router with the highest IP address.
This example shows how to configure a virtual router with a priority of 254:
switch# configure terminal
switch(config)# interface ethernet 0/1
switch(config-if)# no switchport
switch(config-if)# ip address 10.0.0.1 255.255.255.0
switch(config-if)# hsrp 4
switch(config-if-hsrp)# priority 254
|
|
---|---|
feature hsrp |
Enables the HSRP configuration. |
show hsrp |
Displays HSRP information. |