< Home

vrrp vrid preempt-mode disable

Function

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

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

By default, the device uses 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 VRID of a VRRP group.

The value is an integer that ranges from 1 to 255.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enable the device with higher priority in a VRRP group to be the master, set the preemption mode on the device. In non-preemption mode, as long as the master is working properly, the backup with higher priority cannot be the master.

When non-preemption is disabled, the preemption delay is restored to 0 seconds immediately.

Prerequisites

The vrrp vrid virtual-ip command has been executed on an interface to create a VRRP group.

Example

# Configure VRRP group 1 in non-preemption mode on the VLANIF interface.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] vrrp vrid 1 virtual-ip 10.1.1.2
[HUAWEI-Vlanif100] vrrp vrid 1 preempt-mode disable
# Configure VRRP group 1 in non-preemption mode on the Ethernet interface.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] vrrp vrid 1 virtual-ip 10.1.1.2
[HUAWEI-GigabitEthernet0/0/1] vrrp vrid 1 preempt-mode disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >