mpls l2vpn holdoff

Function

The mpls l2vpn holdoff command configures a switching delay for a PW.

The undo mpls l2vpn holdoff command deletes the switching delay for a PW.

By default, no switching delay is configured for a PW.

Format

mpls l2vpn holdoff holdoffTime

undo mpls l2vpn holdoff holdoffTime

Parameters

Parameter Description Value
holdoff holdoffTime

Specifies the switching delay.

The value is an integer ranging from 1 to 180, 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 Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In a VPWS with the master/slave PW redundancy mode, if the master PW fails, traffic immediately switches to the slave PW. If the master PW flaps or an error occurs in the detection mechanism, traffic frequently switches between the master and slave PWs. To prevent this problem in a VPWS with the master/slave PW redundancy mode, run the holdoff command to configure a switching delay.

The VPWS with the master/slave PW redundancy mode supports two types of switching policies:

  • Immediate switching: Traffic is immediately switched to the slave PW, and a fault notification is sent to the remote PE over the master PW.
  • Delayed switching: The delay time needs to be configured by the mpls l2vpn holdoff command. When the master PW is fails, the traffic is switched to the slave PW after the delay time specified in holdoff-time, and then a fault notification is sent to the remote PE over the master PW.

    The VPWS with the master/slave PW redundancy mode supports two types of switching policies:
  • Immediate switching: Traffic is immediately switched to the slave PW, and a fault notification is sent to the remote PE over the master PW.
  • Delayed switching: The delay time needs to be configured by the mpls l2vpn holdoff command. When the master PW is fails, the traffic is switched to the slave PW after the delay time specified in holdoff-time, and then a fault notification is sent to the remote PE over the master PW.

Example

# Configure a delay for PW redundancy switching to perform a switchover 30 seconds after the primary PW fails.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 1.1.1.1 20
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 1.1.1.2 21 secondary
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn redundancy master
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn holdoff 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >