Configuring an L2VPN Service

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.

Context

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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interfaceinterface-type interface-number.subinterface-number

    The view of the QinQ stacking sub-interface is displayed.

  3. Configure a QinQ stacking sub-interface to provide L2VPN access, as shown in Table 1.

    Table 1 QinQ stacking sub-interfaces providing L2VPN access

    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.

    • ip-interworking must be configured when Huawei devices interwork with each other over heterogeneous media.
    • ip-layer2 must be configured when Huawei devices interwork with non-Huawei devices over heterogeneous media.

    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.

  4. Run commit

    The configuration is committed.

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