![H3C S9500 Series Command Manual Download Page 231](http://html.mh-extra.com/html/h3c/s9500-series/s9500-series_command-manual_575036231.webp)
Command Manual – MPLS L2VPN
H3C S9500 Series Routing Switches
Chapter 1 MPLS L2VPN Configuration Commands
1-4
Examples
# Create a CE named ce1 for a VPN.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn1] route-distinguisher 100:1
[Sysname-mpls-l2vpn-vpn1] ce ce1 id 1
1.1.4 connection
Syntax
connection
[
ce-offset
id
]
interface
interface-type interface-number
[
tunnel-policy
tunnel-policy-name
]
undo connection
{
ce-offset id
|
interface interface-type interface-number
}
View
MPLS L2VPN CE view
Default Level
2: System level
Parameters
id
: ID of the peer CE of the L2VPN connection.
interface-type
interface-number
: Specifies the interface connecting the CE by its type
and number. The encapsulation type must be same as that of the VPN.
tunnel-policy-name
: Tunneling policy for the VC.
Description
Use the
connection
command to create a Kompella connection.
Use the
undo connection
command to delete a Kompella connection on a CE
interface.
When creating a Kompella connection, you must specify the ID of the peer CE and the
local CE interface.
If you do not specify the tunneling policy, or specify the tunneling policy name but do not
configure the policy, the default policy is used. The default tunneling policy uses LSP
tunnels and the load balance number of one.
Examples
# Create a Kompella connection.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1