mpls l2vpn switchover

Function

The mpls l2vpn switchover command switches traffic from the primary PW to the secondary PW.

The undo mpls l2vpn switchover command disables traffic switchover and switches traffic back to the primary PW.

By default, traffic switchover is not configured.

Format

mpls l2vpn switchover

undo mpls l2vpn switchover

Parameters

None

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 master/slave PW redundancy mode, the traffic is transmitted over the primary PW in normal situations. If you want the traffic to be transmitted over the secondary PW due to reasons such as device upgrade or service re-deployment, you can use the mpls l2vpn switchover command to forcibly switch traffic from the primary PW to the secondary PW. After the device is upgraded or services are re-deployed, you can run the undo mpls l2vpn switchover command to forcibly switch traffic from the secondary PW to the primary PW.

The mpls l2vpn switchover command can be configured only in the scenario where PW redundancy in master/slave mode is configured. In the scenario of VLL FRR, run the mpls l2vpn reroute command to manually switch traffic from the primary PW to the secondary PW.

Configuration Impact

When the mpls l2vpn switchover command is run, the following cases may occur:

  • If the secondary PW works normally, traffic is not switched back to the primary PW.
  • If the secondary PW fails after or during the traffic switchover, traffic is switched back to the primary PW.
  • After the undo mpls l2vpn switchover command is run, traffic is switched back to the primary PW.

Precautions

  • Before running the mpls l2vpn switchover command, ensure that the secondary PW is normal and can forward traffic. Otherwise, the switchover will fail.
  • Before running the undo mpls l2vpn switchover command, ensure that the primary PW is normal and can forward traffic. Otherwise, the switchback will fail.

Example

# Switch traffic from the primary PW to the secondary PW.
<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 1
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 2 secondary
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn redundancy master
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn switchover
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >