vrrp vrid initialize state-hold-time

Function

The vrrp vrid initialize state-hold-time command configures an Initialize state hold time for a management VRRP (mVRRP) backup group.

The undo vrrp vrid initialize state-hold-time command deletes the Initialize state hold time configured for an mVRRP group.

By default, no Initialize state hold time is configured for an mVRRP group.

Format

vrrp vrid virtual-router-id initialize state-hold-time timer-value

undo vrrp vrid virtual-router-id initialize state-hold-time [ timer-value ]

Parameters

Parameter Description Value
virtual-router-id

Specifies the ID of an mVRRP group.

The value is an integer ranging from 1 to 255.

timer-value

Specifies an Initialize state hold time.

The value is an integer ranging from 0 to 3600, in seconds.

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, 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

When an mVRRP group is configured to ignore an interface Down event, the mVRRP group directly enters the Backup state. After the device restarts, the device switches to the Master state because it does not receive VRRP Advertisement packets before the interface goes Up. In this case, delayed switchback becomes invalid, and related service entries fail to be backed up. As a result, services are interrupted. For the preceding scenario, the mVRRP group remains the Initialize state before the interface goes Up for the first time by default.

If the interface always remains Down, the mVRRP group remains the Initialize state all the time. You can run the vrrp vrid initialize state-hold-time command to configure an Initialize state hold time for the mVRRP group. After the Initialize state hold time expires, the mVRRP group enters the Backup state.

Prerequisites

An mVRRP group has been configured to ignore an interface Down event using the admin-vrrp vrid command.

Example

# Set an Initialize state hold time to 20s for an mVRRP group.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] ip address 10.1.1.1 24
[*HUAWEI-GigabitEthernet0/1/1.1] vrrp vrid 1 virtual-ip 10.1.1.111
[*HUAWEI-GigabitEthernet0/1/1.1] admin-vrrp vrid 1 ignore-if-down
[*HUAWEI-GigabitEthernet0/1/1.1] vrrp vrid 1 initialize state-hold-time 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >