
236
connection
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 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
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
ce-offset
id
: Specifies the ID of the peer CE of the L2VPN connection. The value ranges from 0 to 199.
interface
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
tunnel-policy-name
: Specifies a tunneling policy for the VC, which is a string of 1 to 19
characters.
Examples
# Create a Kompella connection.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1
[Sysname-mpls-l2vpn-vpn1] ce ce1
[Sysname-mpls-l2vpn-ce-vpn1-ce1] connection ce-offset 1 interface vlan-interface 10
display bgp l2vpn
Description
Use the
display bgp l2vpn
command to display information about BGP L2VPN in the BGP routing table.
Related commands:
route-distinguisher
.
Syntax
display bgp l2vpn
{
all
|
group
[
group-name
] |
peer
[ [
ip-address
]
verbose
] |
route-distinguisher
route-distinguisher
[
ce-id
ce-id
[
label-offset
label-offset
] ] } [
|
{
begin
|
exclude
|
include
}
regular-
expression
]