< Home

Creating a Dynamic PW

Context

To create a dynamic PW, VCs using the same encapsulation type must have different IDs.

Perform the following operations on the PEs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The AC interface view is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  4. Create a PW.
    1. Run mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] *

      A primary PW is created.

    2. (Optional) Run mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] * secondary

      A secondary PW is created.

    • When the AC interfaces are Ethernet interfaces, you can specify the parameters raw and tagged.
    • The combination of the VC ID and VC type must be unique on each node. The VC IDs at both ends of a switching PW can be the same.

    • Primary and secondary PWs must use the same control word; otherwise, many packets may be lost during service switching.

    • A dynamic PW requires that the IDs of VCs using the same encapsulation type are different. Changing the encapsulation type may cause a VC ID collision.

    • To enable label-based load balancing, specify a PW template before creating a dynamic PW.

  5. (Optional) Run mpls l2vpn service-name service-name

    A name is configured for the L2VPN service.

    After a name is configured for the L2VPN service, you can maintain the L2VPN service by clicking the name directly on the NMS GUI.

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