P Commands
This chapter describes the Cisco NX-OS Virtual Router Redundancy Protocol (VRRP) commands that begin with P.
preempt (VRRP)
To enable a high-priority backup virtual router to preempt the low-priority master virtual router, use the preempt command. To disable a high-priority backup virtual router from preempting the low-priority master virtual router, use the no form of this command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
VRRP enables you to preempt a virtual router backup that has taken over for a failing virtual router master with a high-priority virtual router backup that has become available.
By default, a preemptive scheme is enabled. A backup high-priority virtual router that becomes available takes over for the backup virtual router that was elected to become the virtual router master. If you disable preemption, the backup virtual router that is elected to become the virtual router master remains the master until the original virtual router master recovers and becomes the master again.
Note This preemption does not apply to the primary IP address.
If the virtual IP address is also the IP address for the interface, then preemption is applied.
This command does not require a license.
Note Make sure the LAN Base Services license is installed on the switch to enable Layer 3 interfaces.
Examples
This example shows how to enable the backup high-priority virtual router to preempt the low-priority master virtual router:
Related Commands
|
|
---|---|
Clears all the software counters for the specified virtual router. |
|
priority (VRRP)
To set the priority for the Virtual Router Redundancy Protocol (VRRP), use the priority command. To revert to the default value, 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 ]
Syntax Description
Command Default
The default value is 100. For switches whose interface IP address is the same as the primary virtual IP address, the default value is 254.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The priority determines whether or not a VRRP router functions as a virtual router backup, the order of ascendancy for the VRRP router to become a virtual router master if the virtual router master fails, the role that each VRRP router plays, and what happens if the virtual router master fails.
If a VRRP router owns the IP address of the virtual router and the IP address of the physical interface, then this router functions as a virtual router master.
By default, a preemptive scheme is enabled. A backup high-priority virtual router that becomes available takes over for the backup virtual router that was elected to become the virtual router master. If you disable preemption, then the backup virtual router that is elected to become the virtual router master remains the master until the original virtual router master recovers and becomes the master again.
Examples
This example shows how to specify the priority for a virtual router:
Related Commands
|
|
---|---|