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.
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
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:
Precautions
<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