- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-MPLS VLL Commands | 90.9 KB |
Table of Contents
Chapter 1 MPLS VLL Configuration Commands
1.1 CCC Configuration Commands
1.1.5 static-lsp ingress l2vpn
1.1.6 static-lsp transit l2vpn
1.2 Martini MPLS L2VPN Configuration Commands
1.2.4 mpls l2vc auto-restore delay-time
1.2.6 mpls l2vc manual-restore
1.2.7 mpls l2vc process-release
1.3 Kompella MPLS L2VPN Configuration Commands
1.3.7 mpls l2vpn encapsulation
Chapter 1 MPLS VLL Configuration Commands
& Note:
L2VPN mentioned below refers to VLL L2VPN.
1.1 CCC Configuration Commands
1.1.1 ccc
Syntax
ccc ccc-connection-name interface vlan-interface vlan-id { transmit-lsp transmit-lsp-name receive-lsp receive-lsp-name | out-interface vlan-interface vlan-id }
undo ccc ccc-connection-name
View
System view
Parameters
ccc-connection-name: Name of the CCC (circuit cross connect) connection, which is used to uniquely identify the CCC connection in the PE (provider edge). This argument is 1 to 20 characters in length.
vlan-id: ID of the VLAN whose interface is used to establish the connection. It must be the ID of an existing VLAN.
transmit-lsp-name: Name of transmitting LSP (the ingress LSP).
receive-lsp-name: Name of receiving LSP (the egress LSP)..
Description
Use the ccc ccc-connection-name interface vlan-interface vlan-id transmit-lsp receive-lsp command to create a remote CCC connection.
Use the ccc ccc-connection-name interface vlan-interface vlan-id out-interface command to create a local CCC connection.
Use the undo ccc command to remove a local/remote CCC connection.
When the interface is a VLAN interface, a CCC connection encapsulates data as Ethernet packets by default.
Examples
# Create a remote CCC connection, with the name of clink, the transmitting LSP of tlsp, and the receiving LSP of rlsp.
[H3C] ccc clink interface vlan-interface 201 transmit-lsp tlsp receive-lsp rlsp
# Create a local CCC connection, with the name of clink, and the interfaces connecting to the two CEs being the interfaces of VLAN 201 and VLAN 301 respectively.
[H3C] ccc clink interface vlan-interace 201 out-interface vlan-interface 301
1.1.2 debugging mpls l2vpn
Syntax
debugging mpls l2vpn { advertisement | all | connections [ interface vlan-interface vlan-id ] | error | event | loadshare | switchover }
undo debugging mpls l2vpn { advertisement | all | connections [ interface vlan-interface vlan-id ] | error | event | loadshare | switchover }
View
User view
Parameters
advertisement: Enables/disables debugging for L2VPN BGP/LDP advertisement messages.
all: Enables/disables all types of L2VPN Debugging.
connections: Enables/disables debugging for connection messages.
vlan-id: ID of the VLAN whose interface is used to establish the connection.
error: Enables/disables debugging for L2VPN error messages.
event: Enables/disables debugging for L2VPN event messages.
loadshare: Enables/disables debugging for load sharing.
switchover: Enables/disables debugging for L2VC protection switchover.
Description
Use the debugging mpls l2vpn command to enable specific type of L2VPN debugging.
Use the undo debugging mpls l2vpn command to disable specific type of L2VPN debugging.
By default, all of debugging functions are disabled.
Examples
# Enable all types of L2VPN debugging.
<H3C> debugging mpls l2vpn all
1.1.3 display ccc
Syntax
display ccc [ ccc-name | type [ local | remote ] ]
View
Any view
Parameters
ccc-name: Name of the CCC connection whose information is to be displayed.
type local: Displays information about the local CCC connections only.
type remote: Displays information about the remote CCC connections only.
Description
Use the display ccc command to display the information about specified CCC connections.
Examples
# Display information about the CCC connection named c-link.
<H3C> display ccc c-link
name: c-link, type: remote, state: down,
intf: Vlan-interface1003 (down), tran-lsp: ccc2 (up), rcv-lsp: ccc1 (up)
1.1.4 static-lsp egress l2vpn
Syntax
static-lsp egress lsp-name l2vpn incoming-interface vlan-interface vlan-id in-label in-label
undo static-lsp egress lsp-name
View
MPLS view
Parameters
lsp-name: Name of the label switching path (LSP).
vlan-id: ID of the VLAN whose interface is to be used to create the LSP.
in-label-value: Value of the in-label, ranging from 16 to 1,023.
Description
Use the static-lsp egress l2vpn command to create a static L2VPN LSP for the egress label switching router (LSR).
Use the undo static-lsp egress command to remove an L2VPN LSP created for the egress LSR.
You need to create two LSPs (for transmitting and receiving) before creating a remote CCC connection.
Related commands: static-lsp ingress l2vpn, static-lsp transit l2vpn, debugging mpls.
Examples
# Create a static LSP named bj-sh on the egress LSR.
[H3C-mpls] static-lsp egress bj-sh l2vpn incoming-interface vlan-interface 201 in-label 233
1.1.5 static-lsp ingress l2vpn
Syntax
static-lsp ingress lsp-name l2vpn nexthop next-hop-addr out-label out-label
undo static-lsp ingress lsp-name
View
MPLS view
Parameters
lsp-name: Name of the LSP.
next-hop-addr: Address of the next hop.
out-label: Value of the out-label, ranging from 16 to 1,023.
Description
Use the static-lsp ingress l2vpn command to create a static L2VPN LSP for the ingress LSR.
Use the undo static-lsp command to remove a static L2VPN LSP.
You need to create two LSPs (for transmitting and receiving) before creating a remote CCC connection.
Related commands: static-lsp egress l2vpn, static-lsp transit l2vpn, debugging mpls l2vpn.
Examples
# Create a static LSP with the name of bj-sh.
[H3C-mpls] static-lsp ingress bj-sh l2vpn nexthop 1.1.1.1 out-label 100
1.1.6 static-lsp transit l2vpn
Syntax
static-lsp transit lsp-name l2vpn incoming-interface vlan-interface vlan-id in-label in-label nexthop next-hop-addr out-label out-label
undo static-lsp transit lsp-name
View
MPLS view
Parameters
lsp-name: Name of the LSP.
vlan-id: ID of the VLAN whose interface is to be used to create the LSP.
next-hop-addr: Address of the next hop.
in-label: Value of the in-label, ranging from 16 to 1,023.
out-label: Value of the out-label, ranging from 16 to 1,023.
Description
Use the static-lsp transit command to create a static L2VPN LSP for the midway transmitting LSR.
Use the undo static-lsp transit command to remove the static L2VPN LSP created for the midway transmitting LSR.
You need to create two LSPs (for transmitting and receiving) before creating a remote CCC connection. You also need to enable the two LSPs to traverse through each of the midway LSRs.
Related commands: static-lsp egress l2vpn, static-lsp ingress l2vpn.
Examples
# Create a static L2VPN LSP for the interface of VLAN 201 on the midway transmitting LSR, with the in-label of 123 and the out-label of 253.
[H3C-mpls] static-lsp transit bj-sh l2vpn incoming-interface vlan-interface 201 in-label 123 nexthop 202.34.114.7 out-label 253
1.2 Martini MPLS L2VPN Configuration Commands
1.2.1 display mpls l2vc
Syntax
display mpls l2vc [ interface { GigabitEthernet interface-number [ vlan vlan-id ] | vlan-interface vlan-id } | verbose ]
display mpls l2vc protection [ interface vlan-interface vlan-id ]
View
Any view
Parameters
interface-number: Specifies an interface by its number.
vlan-id: ID of the VLAN whose interface is used to create the virtual circuit.
verbose: Displays the detailed information.
protection: Displays the active/standby status of the primary/backup L2VC currently in use.
Description
Use the display mpls l2vc command to view the VC information of Martini VLL. With this command, you can view the information of the Martini VLL configured on a VLAN interface or a GigabitEthernet interface, and view the information about the specified VC by specifying a VLAN ID.
Use the display mpls l2vc protection command to view the active/ready/standby state of the primary/backup VC currently in use of the Martini VLL. Currently, the primary/backup VC configuration is supported on VLAN interfaces only.
Examples
# View the connection information of all VCs.
<H3C> display mpls l2vc
Total l2vc : 3
l2vc : 0 up
l2vc : 3 down
Interface: Vlan-interface300, Encapsulation: vlan, Service: VLL
VC-ID PeerAddr State Lcl-Label/Rmt-Label Tunnel/Index Vlan-ID
300 1.0.0.13 (p)down 32770/0 LSP/31748 300
Interface: GigabitEthernet 2/2/1, Encapsulation: vlan, Service: VLL
VC-ID PeerAddr State Lcl-Label/Rmt-Label Tunnel/Index Vlan-ID
200 1.0.0.13 down 32771/0 LSP/31748 200
Interface: GigabitEthernet 2/2/1, Encapsulation: ethernet, Service: VLL
VC-ID PeerAddr State Lcl-Label/Rmt-Label Tunnel/Index Vlan-ID
100 1.0.0.13 down 32772/0 LSP/31748 100
Table 1-1 Description on the fields of the display mpls l2vc command
Field |
Description |
Interface |
Interface on which the configuration was made, which can be a VLAN interface or a GigabitEthernet port. |
Encapsulation |
PW encapsulation type |
Service |
VLL identification mode |
VC-ID |
ID of the VC |
PeerAddr |
IP address of the peer PE |
State |
Status of the VC (up/block/down) (p): primary PW (b): backup PW |
Lcl-Label |
Local label, namely the label this local router assigned to the remote PE |
Rmt-Label |
Remote label, namely the label the remote PE assigned to this router |
Tunnel |
Tunnel type, such as LSP |
Index |
Tunnel index |
Vlan-ID |
Configured VLAN ID |
# View the L2VC information of Martini VLLs on GigabitEthernet12/3/1.
<H3C> display mpls l2vc interface GigabitEthernet 12/3/1
Interface: GigabitEthernet12/3/1 Vlan: 1001, State: up
VC-ID: 17181001, VC State: down
Peer Ip Address: 1.0.0.17
Encapsulation: ethernet
Group ID: Local 0, Remote 0
VC Label: Local 33241, Remote 0
MTU:Local 1500, Remote 0
Tunnel Type: LSP, Tunnel Destination: 1.0.0.17, Tunnel Index: 31748
AC: up, LDP Session: down
Interface: GigabitEthernet12/3/1 Vlan: 1002, State: up
VC-ID: 17181002, VC State: down
Peer Ip Address: 1.0.0.17
Encapsulation: ethernet
Group ID: Local 0, Remote 0
VC Label: Local 33243, Remote 0
MTU:Local 1500, Remote 0
Tunnel Type: LSP, Tunnel Destination: 1.0.0.17, Tunnel Index: 31748
AC: up, LDP Session: down
<H3C> display mpls l2vc interface Vlan-interface 501
Interface: Vlan-interface501, State: up, Service: VLL
VC-ID: 17180501, VC State: (p)down
Peer Ip Address: 1.0.0.17, primary
Encapsulation: ethernet
Group ID: Local 0, Remote 0
VC Label: Local 34446, Remote 0
MTU:Local 1500, Remote 0
Tunnel Type: LSP, Tunnel Destination: 1.0.0.17, Tunnel Index: 4
AC: up, LDP Session: up
VC-ID: 13180501, VC State: (b)up
Peer Ip Address: 1.0.0.13, backup
Encapsulation: vlan
Group ID: Local 0, Remote 0
VC Label: Local 34387, Remote 34577
MTU:Local 1500, Remote 1500
Tunnel Type: LSP, Tunnel Destination: 1.0.0.13, Tunnel Index: 31747
AC: up, LDP Session: up
Table 1-2 Description on the fields of the display mpls l2vc interface command
Field |
Description |
|
Interface |
Interface on which the configuration was made, which can be a VLAN interface or a GigabitEthernet port. |
|
Vlan |
VLAN ID of the interface |
|
State |
State of the interface |
|
Service |
VLL identification mode |
|
VC-ID |
ID of the VC |
|
VC State |
Status of the VC (up/block/down) (p): primary PW (b): backup PW |
|
Peer Ip Address |
IP address of the peer PE |
|
Primary/Backup |
Primary or backup VC |
|
Encapsulation |
PW encapsulation type, Ethernet or VLAN |
|
Group ID |
PW group ID, 0 by default |
|
VC Label |
Local |
Local label, namely the label this local router assigned to the remote PE |
Remote |
Remote label, namely the label the remote PE assigned to this router |
|
MTU |
Local |
Local MTU |
Remote |
Remote MTU |
|
Tunnel Type |
Tunnel type, such as LSP |
|
Tunnel Destination |
Tunnel destination address |
|
Tunnel Index |
Tunnel index |
|
AC |
State of user access side |
|
LDP Session |
State of LDP session |
# View the active/ready/standby information of the primary/backup VC.
<H3C> display mpls l2vc protection
Interface VC State
Vlan-interface1000 primary ready
backup active
Interface VC State
Vlan-interface1001 primary ready
backup active
Interface VC State
Vlan-interface1002 primary ready
backup active
Interface VC State
Vlan-interface1004 primary active
backup standby
Table 1-3 Description on the fields of the display mpls l2vc protection command
Field |
Description |
Interface |
Interface on which the configuration was made |
VC |
VC type primary: primary VC backup: backup VC |
State |
Current state of the VC Active: The VC is currently active Ready: The primary VC is in standby state standby: The backup VC is in standby state |
1.2.2 mpls l2vc
Syntax
mpls l2vc ip-address vc-id [ preferred-path peer tnl-address ] [ encapsulation { ethernet | vlan } [ primary | backup ] [ multi-port ] ] [ mtu mtu ]
View
VLAN interface view
Parameters
ip-address: IP address of LSR-ID on the peer PE.
vc-id: ID of the VC, ranging from 1 to 4,294,967,295.
preferred-path peer: Specifies the tunnel destination address for the MPLS L2VPN. If you do not specify it, the LSR-ID of the peer PE will be used as the tunnel destination address by default.
tnl-address: Tunnel destination address to be specified.
encapsulation: Specifies the encapsulation type for the MPLS L2VPN virtual connection.
ethernet: Specifies the encapsulation type as Ethernet.
vlan: Specifies the encapsulation type as VLAN.
primary: Specifies the MPLS L2VPN virtual connection as the primary L2VC.
backup: Specifies the MPLS L2VPN virtual connection as the backup L2VC
multi-port: Specifies the access mode as Multiport access. The default mode is single port access.
mtu: MTU in bytes of user packets, in the range of 128 to 10200. The default is 1500 bytes.
Description
Use the mpls l2vc command to create a Martini MPLS L2VPN virtual connection and specify the connection as primary or backup L2VC. The default is primary L2VC. You can also you use this command to specify the tunnel destination IP address for each virtual connection.
If a VLAN is configured with just one virtual connection, the connection defaults to L2VC, whether you specify the primary keyword or not.
The access mode for the primary and backup L2VC must be consistent, both multiport or both single-port.
For multiport access private network VLANs, the encapsulation type of all ports in the VLANs must be the same.
Examples
# Configure MPLS L2VPN virtual connections as primary or backup L2VC.
<H3C> system-view
[H3C] interface vlan 100
[H3C-vlan-interface100] mpls l2vc 3.3.3.3 200 encapsulation ethernet primay multi-port mtu 1800
[H3C-vlan-interface100] mpls l2vc 4.4.4.4 300 encapsulation ethernet backup multi-port mtu 1800
1.2.3 mpls l2vc vlan
Syntax
mpls l2vc ip-address vc-id [ preferred-path peer tnl-address ] vlan vlan-id encapsulation { ethernet | vlan } [ mtu mtu ]
undo mpls l2vc [ vlan vlan-id ]
View
GE port view/10GE port view
Parameters
ip-address: Lsr-id address of the remote PE.
vc-id: ID of the VC, in the range of 1 to 4294967295.
preferred-path peer: Specifies the tunnel destination address for the MPLS L2VPN. If you do not specify it, the LSR-ID of the peer PE will be used as the tunnel destination address by default.
tnl-address: Tunnel destination address to be specified.
vlan-id: Specifies a VLAN.
encapsulation: Specifies the encapsulation type for the MPLS L2VPN virtual connection.
ethernet: Specifies to use the Ethernet encapsulation type.
vlan: Specifies to use the VLAN encapsulation type.
mtu: MTU in bytes of user packets, in the range of 128 to 10200. The default is 1500 bytes.
Description
Use the mpls l2vc vlan command to create a Martini MPLS L2VPN virtual connection on the current port.
Use the undo mpls l2vc vlan command to remove all the Martini MPLS L2VPN virtual connections or the Martini MPLS L2VPN virtual connection of specified VLAN configured on the port.
Caution:
l Currently only GE/10GE cards suffixed with CA support Martini VLL configuration in port view (XP4CA cards and WAN cards, such as ATM, E1/T1 and CPOS, do not support this configuration).
l Duplicate configurations are not allowed on the same port, and the port must belong to the VLAN in configuration. Make sure the STP is disabled on the port. The Martini VLL configuration cannot be made on hybrid-inserted cards or aggregation ports.
l Other configurations, such other VLL connections, IGMP, and IGMP snooping, cannot be made on the specified VLAN interface; otherwise these configurations will not work normally. To allow normal operation of other services configured on the VLAN interface, you need to remove the Martini VLL configuration made on the port.
Examples
# Configure an MPLS L2VPN virtual connection on GigabitEthernet 12/3/1.
<H3C> system-view
[H3C] interface GigabitEthernet 12/3/1
[H3C-GigabitEthernet12/3/1] mpls l2vc 1.0.0.17 1718 vlan 100 encapsulation ethernet mtu 1800
1.2.4 mpls l2vc auto-restore delay-time
Syntax
mpls l2vc auto-restore delay-time delay-time
undo mpls l2vc auto-restore
View
System view
Parameters
delay-time: The delay time after which the Martini MPLS L2VPN virtual connection will automatically switch to the primary L2VC. It ranges from 1 to 1440, in minutes.
Description
Use the mpls l2vc auto-restore delay-time command to enable the primary connection auto-restore function for Martini MPLS L2VPN virtual connections. With the function is enabled, after the primary virtual connection resumes normal, data flows will be automatically switched from the backup connection to the primary connection.
Use the undo mpls l2vc auto-restore command to disable the primary connection auto-restore function.
By default, this function is disabled.
& Note:
l If you use the mpls l2vc manual-restore command to manually restore primary connections for the MPLS VLL virtual connections on the device, the device will automatically disable the primary connection auto-restore function.
l With the primary connection auto-restore function enabled on the device, you can still use the mpls l2vc manual-restore command to manually switch the MPLS VLL virtual connection on the specified VLAN interface. In this case, if the primary L2VC flapping occurs, after the primary virtual connection resumes normal, the MPLS VLL virtual connection will switch to the primary L2VC automatically.
Examples
# Enable the primary connection auto-restore function.
<H3C> system-view
[H3C] mpls l2vc auto-restore delay-time 12
1.2.5 mpls l2vc manual-switch
Syntax
mpls l2vc manual-switch { primary | backup }
View
VLAN interface view
Parameters
primary: Switches to primary L2VC.
backup: Switches to backup L2VC.
Description
Use the mpls l2vc manual-switch command to manually switch the MPLS L2VPN virtual connection of a VLAN interface to backup L2VC.
Examples
# Manually specify the MPLS L2VPN virtual connection as backup L2VC.
<H3C> system-view
[H3C] interface vlan 100
[H3C-vlan-interface100] mpls l2vc manual-switch backup
1.2.6 mpls l2vc manual-restore
Syntax
mpls l2vc manual-restore
View
System view
Parameters
None
Description
Use the mpls l2vc manual-restore command to manually restore all MPLS L2VPN virtual connections to primary VLL.
Examples
# Switch all MPLS L2VPN virtual connections to primary VLL.
<H3C> system-view
[H3C] mpls l2vc manual-restore
1.2.7 mpls l2vc process-release
Syntax
mpls l2vc process-release
undo mpls l2vc process-release
View
System view
Parameters
None
Description
Use the mpls l2vc process-release command to configure the device to process the release messages sent from VLL connections.
Use the undo mpls l2vc process-release command to configure the device to ignore the release messages sent from VLL connections.
By default, the device processes the release messages from VLL connections.
When the H3C device is connected with a device from another vendor, the VLL connection configured on the H3C device may be in the down state for some reason. In this case, you can try to solve the problem by configuring the device to ignore the VLL connection release messages.
Examples
# Configure the device to ignore release messages from VLL connections.
<Sysname> system-view
[Sysname] undo mpls l2vc process-release
1.3 Kompella MPLS L2VPN Configuration Commands
1.3.1 ce
Syntax
ce name [ id id [ range range ] default-offset offset ]
undo ce name
View
MPLS L2VPN view
Parameters
name: Name of the CE, which must be unique in the current VPN of the PE. This argument is 1 to 20 characters in length.
id: CE ID, which is used to uniquely identify a CE in the VPN. This argument ranges from 0 to 499.
offset: Specifies the default original CE offset.
range: CE Range, the maximum number of CEs that can be connected to the CE. This argument ranges from 1 to 500.
Description
Use the ce command to create a CE or modify the CE Range.
Use the undo ce command to remove a CE.
The corresponding CE view is created when you create a CE. All the CE connections are configured in CE view.
For VPN capacity expansion, you can set the range argument to a value lager than the currently required number of CEs to be connected. However, this may result in the waste of tags as the system allocates tag blocks for CEs according to the value of the range argument. You can also change the CE Range to a larger number when expanding the VPN (if the previously set CE range is not large enough). For example, if the desired CE number is 20 after the expansion, but the current CE Range is 10, you can change the CE range to 20.
Related commands: mpls l2vpn encapsulation, ccc.
Examples
# Create a CE for VPNA named hangzhou, with the CE ID of 1. Use the default range (10).
<H3C> system-view
[H3C] mpls l2vpn
[H3C] mpls l2vpn vpna encapsulation ethernet
[H3C-mpls-l2vpn-vpna] ce hangzhou id 1
[H3C-mpls-l2vpn-ce-vpna-hangzhou]
1.3.2 connection
Syntax
connection [ ce-offset offset ] { interface vlan-interface vlan-id [ multi-port ] }
undo connection [ ce-offset offset ] { interface vlan-interface vlan-id }
View
MPLS L2VPN CE view
Parameters
offset: Specifies the ID of the remote CE of the L2VPN connection to create a remote CE connection.
vlan-id: ID of the VLAN whose interface is used to establish the connection.
multi-port: Specifies the access mode as Multiport access. The default mode is single port access.
Description
Use the connection command to create a connection for the CE.
Use the undo connection command to remove the specified CE connection.
Note that:
l A CE local connection does not support multiport access.
l For multiport access private network VLANs, the encapsulation type of all ports in the VLANs must be the same.
l The route distinguisher (RD) for the MPLS L2VPN must be configured prior to creating a CE connection.
Related commands: mpls l2vpn encapsulation.
Examples
# Create a CE connection.
[H3C] mpls l2vpn vpna
[H3C-l2vpn-vpna] ce ce-a id 1 range 4
[H3C-l2vpn-vpna-ce-ce-a] connection interface vlan-interface 201
1.3.3 display bgp l2vpn
Syntax
display bgp l2vpn { all | peer | route-distinguisher ASN }
View
Any view
Parameters
all: Displays all the L2VPN information about the address family.
peer: Displays the information about a specified BGP Peer in brief.
route-distinguisher: Displays the information about a specified VPN RD.
ASN: Route identifier.
Description
Use the display bgp l2vpn command to display the information about Kompella L2VPN.
Examples
# Display all the L2VPN information.
<H3C> display bgp l2vpn all
BGP local router ID is 172.16.1.5 , Origin codes: i - IGP, e - EGP, ? - incomplete
bgp.l2vpn: 3 destinations
CE ID Label Offset Label Base nexthop pref as-path
Route Distinguisher: 100:1
2 1 800000 1.1.1.1 100 I 200 600
3 1 500000 1.1.1.1 100 I 200 600
Route Distinguisher: 100:2
1 1 700000 1.1.1.1 100 I 200 600
1.3.4 display mpls l2vpn
Syntax
display mpls l2vpn [ vsi-name [ local-ce | remote-ce ] | connection [ vsi-name [ down | remote-ce | up | verbose ] | brief | interface Vlan-interface vlan-id ] | forwarding-info { vc-label | interface vlan-interface vlan-id } ]
View
Any view
Parameters
vsi-name: Name of the VPN instance.
local-ce: Displays the state and configuration of the local CE of a specified VPN instance.
remote-ce: Displays the state and configuration of the remote CE of a specified VPN instance.
down: Displays the information about L2VPN whose CE interfaces are Down.
remote-ce: Displays the state and configuration of the remote CE.
up: Displays the information L2VPN whose CE interfaces are Up.
verbose: Displays detailed information about the CE interfaces.
brief: Displays the summary information about a specified connection.
interface: Displays information about a specified CE interface.
vlan-id: ID of the VLAN whose interface is used to create the connection.
vc-label: VC label.
Description
Use the display mpls l2vpn command to display the MPLS L2VPN information. The command can display the state and configuration of the local/remote CE of a specified VPN instance, and the L2VPN information about a specified CE interface.
Examples
# Display the L2VPN information about a specified interface.
[DEV-UP]dis mpls l2vpn forwarding-info 10241 interface Vlan-interface 300
VCLABEL TUNNELTYPE ENTRYTYPE OUTINTERFACE OUTSLOT TOKEN CTRLWORD
--------------------------------------------------------------------------------
10241 LSP SEND Vlan-interface100 0 0 FA
LSE
1 Record(s) Found.
[DEV-UP]dis mpls l2vpn connection interface Vlan-interface 300
conn-type: remote, local vc state: up, remote vc state: up,
Local ce-id: 1, local ce name: ce1, remote ce-id: 2,
intf(state,encap): Vlan-interface300(up,ethernet),
peer id: 2.2.2.2, route-distinguisher: 100:1,
local vc label: 10242, remote vc label: 10241,
tunnel type: LSP, tunnel val: 0
1.3.5 l2vpn-family
Syntax
l2vpn-family
undo l2vpn-family
View
BGP view
Parameters
None
Description
Use the l2vpn-family command to create L2VPN address family view.
Use the undo l2vpn-family command to remove L2VPN address family view.
Examples
# Create L2VPN address family view.
[H3C] bgp 100
[H3C-bgp] l2vpn-family
[H3C-bgp-af-l2vpn]
1.3.6 mpls l2vpn
Syntax
mpls l2vpn
undo mpls l2vpn
View
System view
Parameters
None
Description
Use the mpls l2vpn command to enable L2VPN.
Use the undo mpls l2vpn command to disable L2VPN.
To execute the command, you need to enable MPLS first.
Related commands: mpls, mpls lsr-id.
Examples
# Configure LSR ID and enable MPLS.
[H3C] mpls lsr-id 10.0.0.1
[H3C] mpls
# Enable L2VPN.
[H3C] mpls l2vpn
1.3.7 mpls l2vpn encapsulation
Syntax
mpls l2vpn vpn-name [ encapsulation { ethernet | vlan } ]
undo mpls l2vpn vpn-name
View
System view
Parameters
vpn-name: Name of the VPN, which must be unique in the PE. This argument is 1 to 20 characters in length.
encapsulation: User access encapsulation type. Two types are supported currently: Ethernet access and VLAN access.
Description
Use the mpls l2vpn encapsulation command to create a Kompella MPLS L2VPN, specify the encapsulation type, and enter MPLS L2VPN view.
Use the undo mpls l2vpn command to remove a Kompella MPLS L2VPN.
Related commands: ce, mtu.
& Note:
You can create a Kompella MPLS L2VPN only after you enable MPLS L2VPN. All L2VPN parameters are configured in L2VPN view.
Examples
# Create a Kompella MPLS L2VPN, with the name of Test, the encapsulation type of Ethernet.
[H3C] mpls l2vpn test encapsulation ethernet
[H3C-mpls-l2vpn-test]
1.3.8 mtu
Syntax
mtu mtu
View
MPLS L2VPN view
Parameters
mtu: Layer 2 MTU (maximum transmission unit) of the VPN. This argument ranges from 0 to 10,200 and the default value is 1,500.
Description
Use the mtu command to set the MTU for the Kompella MPLS L2VPN.
The same MTU value must be configured for all the PE devices of the same VPN to make sure that the configuration is valid.
Related commands: mpls l2vpn encapsulation.
Examples
# Set the MTU of the VPN named vpna to 1,000.
[H3C] mpls l2vpn vpna encapsulation vlan
[H3C-mpls-l2vpn-vpna] mtu 1000
1.3.9 peer enable
Syntax
peer { group-name | peer-address } enable
undo peer { group-name | peer-address } enable
View
L2VPN address family view
Parameters
group-name: Name of the peer group. This argument specifies the entire peer group.
peer-address: IP address of a peer. This argument specifies a specific peer.
Description
Use the peer enable command to activate a specified peer or peer group in L2VPN address family view.
Use the undo peer enable command to deactivate a specified peer or peer group in L2VPN address family view.
By default, the unicast peers or peer groups of IPv4 address family are active. Whereas other types of peers or peer groups are inactive.
Examples
# Activate peer 192 or peer group 192 in L2VPN address family view.
[H3C-bgp] group 192 internal
[H3C-bgp] peer 192.1.1.1 group 192
[H3C-bgp] l2vpn-family
[H3C-bgp-af-l2vpn] peer 192 enable