Configuring the Master/Slave Mode of PW Redundancy

PW redundancy in master/slave mode implements fault isolation for public and AC links.

Context

When creating a PW on the local end, configure the PWs that are connected to the two remote PEs. The primary/secondary PW status is manually specified on a local PE and the remote master PE and is notified to the remote slave PE connected to the local PE. The combined usage of PW redundancy in master/slave mode and the bypass PW can prevent network-side faults from affecting the AC side and AC-side faults from affecting the network side.

This configuration is applicable only to the master/slave mode of PW redundancy. If only the independent PW redundancy mode is used, skip this configuration.

Procedure

  1. Create a primary PW. See Configuring a VPWS Connection.
  2. Create a secondary PW. See Configuring a Secondary PW.
  3. Configure PW redundancy in master/slave mode.
    1. Run interface interface-type interface-number

      The AC interface view is displayed.

    2. Run mpls l2vpn redundancy master

      The master/slave PW redundancy mode is configured.

    3. Run quit

      Return to the system view.

  4. (Optional) Configure VPWS switching. See Configuring VPWS Switching.

    If multi-segment PWs need to be set up, you must configure a switching PW on each SPE. PW redundancy supports only dynamic switching PWs.

  5. Configure a bypass PW.
    1. Run interface interface-type interface-number

      The AC interface view is displayed.

    2. Run the mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy tnl-policy-name [ endpoint endpoint-address color color-value ] | [ control-word | no-control-word ] | [ raw | tagged ] | access-port | ignore-standby-state ] * bypass command to configure a bypass PW.
  6. (Optional) Run mpls l2vpn stream-dual-receiving

    A CSG is enabled to receive packets on both primary and secondary PWs, preventing packet loss during a primary/secondary PW switchback.

  7. (Optional) Run mpls l2vpn switchover

    Traffic is switched from the primary PW to the secondary PW.

    In the scenario where PW redundancy in master/slave mode is configured, traffic is transmitted through the primary PW, and the secondary PW functions normally. To forcibly switch traffic from the primary PW to the secondary PW (for example, because of a device upgrade or service re-deployment), you can use the mpls l2vpn switchover command. To switch traffic back to the primary PW (for example, after the device is upgraded), you can run the undo mpls l2vpn switchover command to forcibly switch traffic from the secondary PW to the primary PW.

  8. Run commit

    The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >