Layer 2 virtual private network (L2VPN) services include virtual private wire service (VPWS) and virtual private LAN service (VPLS). After you configure QinQ stacking sub-interfaces, bind these sub-interfaces to a virtual switching instance (VSI) or VPWS instance to provide L2VPN access for users.
For configuration details, see "VPWS Configuration" and "VPLS Configuration" in HUAWEI NetEngine 8000 F Series Configuration Guide - VPN.
If you use QinQ stacking sub-interfaces to provide VPWS access, the number of VLANs on both ends of the VPWS must be the same.
Perform the following steps on the device on which an L2VPN is to be configured.
The system view is displayed.
The view of the QinQ stacking sub-interface is displayed.
Service Type |
QinQ Stacking Sub-interface Configuration |
Description |
---|---|---|
VPWS |
Run the mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | [ control-word | no-control-word ] | [ raw | tagged ] | access-port | ignore-standby-state ] * command to create a VPWS connection. |
|
VPLS |
Run the l2 binding vsi vsi-name command to bind the VLAN tag termination sub-interface to a VSI. |
- |
Run the qinq stacking client-mode single command to enable a QinQ stacking sub-interface to learn the MAC address mapped to the smallest VLAN ID among all VLAN ranges that share the MAC address when the sub-interface accesses VPLS services.
The configuration is committed.