The mpls l2vpn reroute command configures the switchback policy for the primary and secondary PWs in VLL FRR mode or in master/slave mode of PW redundancy.
The undo mpls l2vpn reroute command restores the default switchback policy.
By default, in VLL FRR mode and in master/slave mode of PW redundancy, the switchback policy is configured as delayed switchback.
Parameter | Description | Value |
---|---|---|
delay delayTime |
Specifies the delay for switching traffic back to the primary PW. |
The value is an integer ranging from 10 to 10800, in seconds. The default value is 30. |
immediately |
Indicates that traffic is switched back to the primary PW without delay. |
- |
resume resumeTime |
Specifies the time after which the peer PE on the secondary PW is notified that the local PE is recovered from the fault. This parameter applies only to the FRR mode. |
The value is an integer ranging from 0 to 600, in seconds. The default value is 10. |
never |
Indicates that after the fault on the primary PW is rectified, traffic is not switched back to the primary PW until the secondary PW becomes faulty. |
- |
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
The mpls l2vpn reroute command is used to configure the switchback policy only after the primary and secondary PWs are configured in VLL FRR mode or in master/slave mode of PW redundancy. The switchback policy cannot be configured for the independent mode of PW redundancy.
The FRR and master/slave modes support three types of revertive policies:<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 reroute immediately
<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 reroute delay 35 resume 200