< Home

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

Interface view

Default Level

2: Configuration level

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.

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

If the secondary PW fails after traffic is forcibly switched to the secondary PW, the traffic will be switched back to the primary PW.

Prerequisites

The primary and secondary PWs have been established and are in the Up state.

Precautions

A PW switchover will be performed after you run the mpls l2vpn switchover or undo mpls l2vpn switchover command. If the PW to be switched to is Down or unavailable, the switchover fails.

Traffic cannot be switched from the primary PW to a bypass PW.

The two commands apply to only PWs working in master/slave mode. In a VLL FRR scenario, use the manual-set pw-ac-fault command to forcibly switch over PWs.

Example

# Switch traffic from the primary PW to the secondary PW.

<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] mpls l2vc 1.1.1.1 1
[HUAWEI-Vlanif100] mpls l2vc 2.2.2.2 2 secondary
[HUAWEI-Vlanif100] mpls l2vpn redundancy master
[HUAWEI-Vlanif100] mpls l2vpn switchover
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >