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.
preempt
no preempt
This command has no arguments or keywords.
Enabled
VRRP configuration mode
Release |
Modification |
---|---|
5.0(3)N1(1) |
This command was introduced. |
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.
This example shows how to enable the backup high-priority virtual router to preempt the low-priority master virtual router:
switch# config t
switch(config)# interface ethernet 2/1
switch(config-if)# vrrp 250
switch(config-if-vrrp)# preempt
Command |
Description |
---|---|
clear vrrp |
Clears all the software counters for the specified virtual router. |
show vrrp |
Displays VRRP configuration information. |
vrrp |
Configures a VRRP group. |