
259
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn]
mpls l2vc
Description
Use the
mpls l2vc
command to create a Martini L2VPN connection.
Use the
undo mpls l2vc
command to delete the Martini connection on the CE interface.
If you do not specify a tunneling policy for a VC or the specified tunneling policy is not configured, the
VC selects tunnels by using the default tunneling policy. The default tunneling policy selects only one
tunnel (no load balancing) in this order: LSP tunnel, CR-LSP tunnel.
Related commands:
tunnel-policy
.
Syntax
mpls l2vc
destination
vcid
[
tunnel-policy
tunnel-policy-name
] [
control-word
|
no-control-word
]
undo mpls l2vc
View
Interface view
Default level
2: System level
Parameters
destination
: Specifies the IP address of the peer PE.
vc-id
: Specifies the VC ID of the L2VPN connection, ranging from 1 to 4,294,967,295.
tunnel-policy-name
: Specifies the tunneling policy for the VC, which is a string of 1 to 19 characters.
control-word
:
Enables the control word option.
no-control-word
: Disables the control word option.
NOTE:
The HP 5800 switch series do not support the control word option.
Examples
# Create a Martini MPLS L2VPN connection.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] mpls l2vc 2.2.2.9 999
mpls l2vpn
Description
Use the
mpls l2vpn
command to enable MPLS L2VPN.
Use the
undo mpls l2vpn
command to disable MPLS L2VPN and delete all L2VPN configurations.