vrrp vrid preempt-mode disable

Function

The vrrp vrid preempt-mode disable command configures the non-preemption mode for a device in a VRRP group.

The undo vrrp vrid preempt-mode command restores the preemption mode.

By default, a device in a VRRP group adopts the immediate preemption mode.

Format

vrrp vrid virtual-router-id preempt-mode disable

undo vrrp vrid virtual-router-id preempt-mode

Parameters

Parameter Description Value
vrid virtual-router-id

Specifies the ID of a VRRP group.

The value is an integer ranging from 1 to 255.

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, VBDIF interface view, VE sub-interface view, VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vrrp write

Usage Guidelines

Usage Scenario

To enable a backup device with a higher priority to automatically become the master device in a VRRP group, you can configure the preemption mode for the backup device.

In non-preemption mode, if the master device in a VRRP group works properly, a backup device cannot preempt the master device though the backup device has a higher priority.

  • If the non-preemption mode is configured for a backup device in a VRRP group, the backup device does not preempt the master device even when detecting that the priority in a received VRRP Advertisement packet is lower than the local priority.
  • If the preemption mode is configured for a backup device in a VRRP group and the backup device detects that the priority in a received VRRP Advertisement packet is lower than the local priority, the backup device preempts the master device after the delay expires.

Prerequisites

A VRRP group has been configured using the vrrp vrid virtual-ip command.

Configuration Impact

After the vrrp vrid preempt-mode disable command is run, the device in the specified VRRP group on a specified interface works in non-preemption mode.

Precautions

Exercise caution when running the vrrp vrid preempt-mode disable command to configure the non-preemption mode for a device in a VRRP group.

Example

# Configure VRRP group 1 to work in non-preemption mode.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] vrrp vrid 1 virtual-ip 1.1.1.1
[*HUAWEI-GigabitEthernet0/1/0] vrrp vrid 1 preempt-mode disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >