Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

The set protocols vrrp interface vrid preempt enable command configures the preemptive mode of the device in a VRRP group. 


This command applies to both VRRPv2 and VRRPv3 configuration.

Command Syntax

set protocols vrrp interface <interface-namevrid <virtual-router-id> preempt enable <true | false>




interface <interface-name>

Specifies the Layer 3 interface name of VRRP device. The value is a string.

vrid <virtual-router-id>

Specifies the VRID of a VRRP group. The value is an integer that ranges from 1 to 254.

preempt enable <true | false>

Enables or disables the preemptive mode of the device. The value could be true or false.

  •   true: enables the preemptive mode. Device in preemptive mode can preempt other nodes to be master if it has a higher priority.
  •   false: disables the preemptive mode. Device in non-preemptive mode cannot preempt other nodes to be master even if it has the highest priority.

By default, preemptive mode is enabled.

Usage Guidelines

To enable the device with higher priority in a VRRP group to be the master, set the preemptive mode on the device.

For the backup device, if it has a higher priority than the master, the working mode of the backup (preemptive or non-preemptive) determines whether the master is re-selected.

  •   Preemptive mode: If the priority of the backup router is higher than the priority of the current master router, the backup router automatically becomes the master router.
  •   Non-preemptive mode: As long as the master router is working properly, the backup router with a higher priority cannot become the master router.

By default, the preemptive mode is enabled, therefore, the device with a high priority is the master of the VRRP group.


The IP address owner always works in preemptive mode, regardless of whether the preemption function is enabled or not.


  •  Enable the preemptive mode of the device in a VRRP group.
admin@Xorplus# set protocols vrrp interface vlan100 vrid 2 preempt enable true
admin@Xorplus# commit
  • No labels