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.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The Ethernet interface view is displayed.
Run undo portswitch
The Ethernet interface is switched from Layer 2 mode to Layer 3 mode.
Run l2 bindingvsivsi-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.
Run l2protocol-tunnel { all | protocol-type | user-defined-protocolprotocol-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.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The Ethernet interface view is displayed.
Run port link-type { hybrid | trunk }
The interface type is specified.
Run quit
Exit from the interface view.
Run interfaceinterface-typeinterface-number.subinterface-number
The Ethernet sub-interface view is displayed.
Perform one of the following operations as required.
Run dot1q termination vidlow-pe-vid
The single VLAN ID for dot1q encapsulation is set on a sub-interface.
Run qinq termination pe-vidpe-vidce-vidce-vid1 [ toce-vid2 ]
The double VLAN IDs for QinQ encapsulation are set on a sub-interface.
Run l2 bindingvsivsi-name
The Ethernet sub-interface is bound to the VSI.
Run l2protocol-tunnel { all | protocol-type | user-defined-protocolprotocol-name } enable
VPLS-based Layer 2 protocol tunneling is enabled on the sub-interface.