< Home

mpls l2vpn l2vpn-name

Function

The mpls l2vpn l2vpn-name command creates a L2VPN instance in the Kompella mode.

The undo mpls l2vpn l2vpn-name command deletes the L2VPN instance.

By default, no Kompella L2VPN instance is created.

Format

mpls l2vpn l2vpn-name [ encapsulation encapsulation [ control-word | no-control-word ] ]

undo mpls l2vpn l2vpn-name

Parameters

Parameter Description Value
l2vpn-name Specifies a L2VPN instance name. The value must be an existing VPN instance name.
encapsulation encapsulation Indicates the encapsulation type of the L2VPN instance. The encapsulation type can be ethernet or vlan. -
control-word | no-control-word Enables or disables the control word. By default, the control word is disabled. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, you can use this command to create a VPN.

Precautions

The specified encapsulation of an L2VPN must be the same as that of the CE interface.

Example

# Create a VPN in Kompella mode.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1]

# Enter the MPLS-L2VPN instance view.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1
[HUAWEI-mpls-l2vpn-vpn1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >