DGS-6604
m
vrrp preempt
CLI Reference Guide
938
vrrp preempt
To configure the router to take over as the master virtual router for a Virtual
Router Redundancy Protocol (VRRP) group, if it has higher priority than the
current master virtual router, use the
vrrp preempt
command. To disable this
function, use the no form of this command.
vrrp
VRID
preempt
no vrrp
VRID
preempt
Default
Enabled
Command Mode
Interface configuration
Usage Guideline
A backup router will not attempt to preempt the master unless it has higher
priority.
This command controls whether a higher priority backup router preempts a lower
priority master.
By default, the router preempt mode is enabled on the router when it takes over
as master router for the virtual router if, it has a higher priority than the current
master router.
After using the no form of this command, the preempt mode changes to disabled,
and the backup router will not attempt to preempt the master router even if it has
a higher priority than the master router.
One exception is that the router, that is the virtual IP address owner, always
preempts, regardless of the setting of this command.
Examples
The following example shows how to configure the router to preempt the current
master router when its priority of 200 is higher than that of the current master
router.
Syntax Description
VRID
Specifies the virtual router identifier, which is the number identifying the virtual
router that preemption is being configured for.
The virtual router identifier is configured with the command
"vrrp ip” on
page 937
.
Range is from 1 to 255.
Switch(config)#interface vlan1
Switch(config-if)#vrrp 7 preempt
Switch(config-if)#vrrp 7 priority 200