No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - VPN

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document describes VPN features on the device and provides configuration procedures and configuration examples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Martini VLL

Configuring the Martini VLL

The Martini VLL applies to LANs of large-scale enterprises or small-scale carriers.

Pre-configuration Tasks

Before configuring the Martini VLL, you need to complete the following tasks:

  • Configuring static routes or an Interior Gateway Protocol (IGP) protocol for the PE and P devices on the MPLS backbone network to implement IP connectivity.

  • Enabling basic MPLS capabilities on the PE and P devices and enabling MPLS LDP on PEs.

    You need to set up a remote LDP session between the PEs if they are not directly connected.

  • Setting up a tunnel (GRE tunnel, LSP tunnel, or TE tunnel) between the PEs.

    You also need to configure tunnel policies when VLL services need to be transmitted over TE tunnels or when VLL services need to be load balanced among multiple tunnels to fully use network resources. For details, see step 1 in Configuring and Applying a Tunnel Policy.


Perform the following operations on PEs at both ends of the VC.

  1. Run system-view

    The system view is displayed.

  2. Run mpls l2vpn

    MPLS L2VPN is enabled and the MPLS L2VPN view is displayed.

  3. Run quit

    Return to the system view.

  4. Run interface interface-type interface-number

    The AC interface view is displayed.

    The Martini VLL can use the following interfaces as AC interfaces: GE interfaces, GE sub-interfaces, XGE interfaces, XGE sub-interfaces, Ethernet interfaces, Ethernet sub-interfaces, Eth-Trunk interfaces, Eth-Trunk sub-interfaces, and VLANIF interfaces.

    The sub-interfaces can be dotlq sub-interfaces or QinQ sub-interfaces.

  5. Run mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | mtu mtu-value ] *

    A VLL connection in Martini mode is created. VCs of the same encapsulation mode on a PE must have a unique VC ID.

    Configure a PW template before you can use it. Refer to Creating a PW Template and Setting Attributes for the PW Template for details on the PW template configuration.

  6. (Optional) Run bpdu transmit enable

    The interface connected to a VLL is enabled to transparently transmit BPDU packets.

  7. (Optional) Run mpls l2vpn frag

    Fragmentation of L2VPN IPv4 packets is enabled.

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

    A name is configured for the L2VPN service, so you can maintain the L2VPN service by clicking the name directly on the NMS graphical user interface (GUI).

Verifying the Configuration

After completing the Martini VLL configuration, you can view Martini VLL connection information on the PEs.

  • Run the display mpls l2vc [ vc-id | interface interface-type interface-number ] command to check Martini VLL connection information on the local PE.
  • Run the display mpls l2vc remote-info [ vc-id ] command to check peer Martini VLL connection information on the local PE.
  • Run the display mpls l2vc brief command to check Martini VLL connection brief information on the local PE.
Updated: 2019-08-07

Document ID: EDOC1100033725

Views: 144868

Downloads: 361

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next