![H3C S9500 Series Command Manual Download Page 256](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036256.webp)
Command Manual – MPLS L2VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L2VPN Configuration Commands
1-29
1.1.17 mpls l2vpn vpn-name
Syntax
mpls l2vpn
vpn-name
[
encapsulation
{
ethernet
|
vlan
} ]
undo mpls l2vpn
vpn-name
View
System view/MPLS L2VPN view
Default Level
2: System level
Parameters
vpn-name
: Name for the VPN. It cannot include the character of “-“. It is used to identify
a VPN uniquely on a PE.
encapsulation
: Specifies the VPN encapsulation type.
ethernet
: Uses Ethernet encapsulation.
vlan
: Uses VLAN encapsulation.
Description
Use the
mpls l2vpn
command to create a Kompella VPN and enter MPLS L2VPN
view.
Use the
undo mpls l2vpn
command to delete a VPN.
The encapsulation type specified here must match that of the CE interface.
Examples
# Create a Kompella VPN named vpn1 that uses VLAN encapsulation and enter MPLS
L2VPN view.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation vlan
[Sysname-mpls-l2vpn-vpn1]
# Create a Kompella VPN named vpn2 that uses Ethernet encapsulation and enter
MPLS L2VPN view.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation vlan
[Sysname-mpls-l2vpn-vpn1] mpls l2vpn vpn2 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn2]