< Home

vrrp6 vrid preempt-mode timer delay

Function

The vrrp6 vrid preempt-mode timer delay command sets the preemption delay for the device in a VRRP6 group.

The undo vrrp6 vrid preempt-mode timer delay command restores the default preemption delay for the device in a VRRP6 group.

By default, the preemption delay is 0 seconds, indicating immediate preemption.

Format

vrrp6 vrid virtual-router-id preempt-mode timer delay delay-value

undo vrrp6 vrid virtual-router-id preempt-mode timer delay

Parameters

Parameter Description Value
vrid virtual-router-id Specifies the VRID of a VRRP6 group.

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

delay delay-value Specifies the preemption delay.

The value is an integer that ranges from 0 to 3600, in seconds. The default value is 0.

Views

VLANIF interface view, Eth-Trunk interface view, GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk sub-interface view, GE sub-interface view, MultiGE sub-interface view, XGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the backup in a VRRP6 group does not receive VRRP6 Advertisement packets from the master within a specified period of time, the backup becomes the master. On an unstable network, even if the master is working properly, the backup may not receive packets from the master because of network congestion. In this case, the VRRP6 group status will flap and traffic is lost. To prevent frequent switching of the VRRP6 group status, run the vrrp6 vrid preempt-mode timer delay command to set the preemption delay so that the backup becomes the master only after the delay expires.

Prerequisites

The vrrp6 vrid virtual-ip command has been executed to create a VRRP6 group.

Precautions

You are advised to set the preemption delay of the backup in a VRRP6 group to 0, configure the master in preemption mode, and set the preemption delay to be longer than 15s. These settings allow a period of time for status synchronization between the uplink and downlink on devices on an unstable network. If the preceding settings are not used, two masters coexist and user devices may learn an incorrect master address. As a result, traffic is interrupted.

  • The preemption delay refers to the delay before the backup switches to the master. Therefore, the IP address owner is irrelevant to the preemption delay. After the IP address owner recovers, it becomes the master immediately without a delay.
  • On a stable network, a short preemption delay is recommended. When the master is faulty, the backup can rapidly switch to the master. This prevents traffic loss. On an unstable network, a long preemption delay is recommended. This prevents traffic loss caused by frequent switching of the VRRP6 group status.

Example

# Set the preemption delay of VRRP6 group 1 to 10 seconds on the VLANIF interface.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] vrrp6 vrid 1 virtual-ip FE80::7 link-local
[HUAWEI-Vlanif100] vrrp6 vrid 1 preempt-mode timer delay 10
# Set the preemption delay of VRRP6 group 1 to 10 seconds on the Ethernet interface.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] vrrp6 vrid 1 virtual-ip FE80::7 link-local
[HUAWEI-GigabitEthernet0/0/1] vrrp6 vrid 1 preempt-mode timer delay 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >