247
Syntax
display mpls l2vpn [ export-route-target-list | import-route-target-list | vpn-name vpn-name [ local-ce |
remote-ce ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
export-route-target-list: Displays the export route target list.
import-route-target-list: Displays the import route target list.
vpn-name: Specifies the VPN name, which is a case-insensitive string of 1 to 31 characters that cannot
include the character of “-”.
local-ce: Displays the configurations and status of all local CEs of a specified VPN.
remote-ce: Displays the configurations and status of remote CEs learned from other PEs.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see the Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.
Examples
# Display the L2VPN export route target list.
<Sysname> display mpls l2vpn export-route-target-list
export vpn target list: 755:7 888:8
Table 100 Command output
Field Description
export vpn target list BGP VPN export route target list
# Display information about all L2VPNs configured on the PE.
<Sysname> display mpls l2vpn
VPN Number: 1
vpn-name encap-type route-distinguisher mtu ce(L) ce(R)
vpn2 ethernet 500:1 888 0 0
Table 101 Command output
Field Description
VPN Number Number of created VPNs
vpn-name Name of the VPN
encap-type Encapsulation type