< Home

Enabling VPLS-based Layer 2 Protocol Tunneling on an Interface

Context

Perform the following operations on PEs according to the type of Layer 2 protocol packets to be transparently transmitted.

Procedure

  • Configure Layer 2 protocol tunneling when Ethernet interfaces are connected to the VPLS network.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run undo portswitch

      The Ethernet interface is switched from Layer 2 mode to Layer 3 mode.

    4. Run l2 binding vsi vsi-name

      The Ethernet interface is bound to the VSI.

      • If the remote PE is configured to receive tagged packets only, run the mpls l2vpn default vlan command to configure the default VLAN of the main interface before binding the local Ethernet interface to the VSI.

      • If the remote PE is configured to receive double-tagged packets only, run the mpls l2vpn vlan-stacking stack-vlan command to configure the stacked VLAN of the main interface before binding the local Ethernet interface to the VSI.

    5. Run l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } enable

      VPLS-based Layer 2 protocol tunneling is enabled on the interface.

  • Configure Layer 2 protocol tunneling when Ethernet sub-interfaces are connected to the VPLS network.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run port link-type { hybrid | trunk }

      The interface type is specified.

    4. Run quit

      Exit from the interface view.

    5. Run interface interface-type interface-number.subinterface-number

      The Ethernet sub-interface view is displayed.

    6. Perform one of the following operations as required.

      • Run dot1q termination vid low-pe-vid

        The single VLAN ID for dot1q encapsulation is set on a sub-interface.

      • Run qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

        The double VLAN IDs for QinQ encapsulation are set on a sub-interface.

    7. Run l2 binding vsi vsi-name

      The Ethernet sub-interface is bound to the VSI.

    8. Run l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } enable

      VPLS-based Layer 2 protocol tunneling is enabled on the sub-interface.

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