damping time (VLANIF interface view)

Function

The damping time command enables VLAN damping and set a delay time after which a VLANIF interface goes Down.

The undo damping time command restores the default setting.

By default, the VLAN damping function is disabled, and the delay time is 0 seconds, which means that the VLANIF interface goes Down immediately after the VLAN goes Down.

Format

damping time delay-time

undo damping time

Parameters

Parameter Description Value
time delay-time

Specifies a delay time after which a VLANIF interface goes Down.

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

Views

VLANIF interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vlan write

Usage Guidelines

Usage Scenario

If a VLAN Down event occurs when all the interfaces added to the VLAN go Down, the VLAN will report the Down event to the VLANIF interface, causing a change in the VLANIF interface status. The master/slave switchover will cause the VLANIF interface to alternate frequently between Up and Down. As a result, network flapping occurs. To avoid this, run the damping time command on the VLANIF interface to enable VLAN damping. Among all the interfaces that are added to the VLAN, if the last Up interface in the VLAN becomes Down, the device enabled with VLAN damping will report the VLAN status to the VLANIF interface before the configured delay time expires. If some interfaces in the VLAN become Up before the configured delay time expires, the VLANIF interface stays Up.

Example

# Configure a device to report the VLAN 2 Down event to VLANIF 2 10 seconds later after all interfaces in VLAN 2 go Down.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit
[*HUAWEI] interface vlanif 2
[*HUAWEI-Vlanif1] damping time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >