
260
You must use the
mpls l2vpn
command to enable MPLS L2VPN before configuring the other MPLS L2VPN
commands.
Syntax
mpls l2vpn
undo mpls l2vpn
View
L2VPN view
Default level
2: System level
Parameters
None
Examples
# Enable MPLS L2VPN.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] mpls l2vpn
mpls l2vpn
vpn-name
Description
Use the
mpls l2vpn
vpn-name
command to create a Kompella VPN and enter MPLS L2VPN view.
Use the
undo mpls l2vpn
vpn-name
command to delete a VPN.
The encapsulation type specified here must match that of the CE interface.
Syntax
mpls l2vpn
vpn-name
[
encapsulation
{
ethernet
|
vlan
} [
control-word
|
no-control-word
] ]
undo mpls l2vpn
vpn-name
View
System view, MPLS L2VPN view
Default level
2: System level
Parameters
vpn-name
: Specifies the name for the VPN, which is a case-insensitive string of 1 to 31 characters that
cannot include the character of “-”. It uniquely identifies a VPN on a PE.
encapsulation
: Specifies the VPN encapsulation type.
ethernet
: Uses Ethernet encapsulation.
vlan
: Uses VLAN encapsulation.
control-word
:
Enables the control word option.
no-control-word
: Disables the control word option.