< Home

display mpls l2vpn

Function

The display mpls l2vpn command displays information about an L2VPN on a PE.

Format

display mpls l2vpn [ l2vpn-name [ local-ce | remote-ce ] ]

Parameters

Parameter Description Value
l2vpn-name Specifies the VPN to be displayed. The value is an existing VPN name.
local-ce Displays information about all the local CEs of a specified L2VPN. -
remote-ce Displays information about remote CEs learned from other PEs of a specified L2VPN. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If you specify parameters, the display mpls l2vpn command displays information related to the parameters. If not, information about all the L2VPNs is displayed.

Example

# Display information about all the VPNs configured on the PE.

<HUAWEI> display mpls l2vpn
VPN number: 1
vpn-name        encap-type   route-distinguisher     mtu   ce(L)  ce(R)
vpn1            ethernet     100:1                   1500   1      1
Table 1 Description of the display mpls l2vpn command output

Item

Description

vpn-name

Name of the created VPN instance.

encap-type

Encapsulation type of L2VPN.

route-distinguisher

RD of L2VPN.

mtu

MTU of L2VPN.

ce (L)

The number of local CE connections. "L" indicates "local".

ce (R)

Number of remote CE connections. "R" indicates "remote".

# Display information about the L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1
VPN name: vpn1, encap type: vlan, local ce number(s): 1, remote ce number(s): 1
route distinguisher: 100:1, MTU: 128
import vpn target: 1:1
export vpn target: 1:1
 
remote vpn site(s) :
no.  remote-pe-id    route-distinguisher
1    3.3.3.9         100:1
Table 2 Description of the display mpls l2vpn vpn1 command output

Item

Description

VPN name

Name of the created VPN instance.

encap type

Encapsulation type of the L2VPN.

local ce number (s)

Number of local CE connections.

remote ce number (s)

Number of remote CE connections.

route distinguisher

RD of the local L2VPN.

MTU

MTU of the interface associated with the L2VPN.

import vpn target

Route attribute of the received VPN route.

export vpn target

Attributes configured for the target VPN route.

remote vpn site (s)

The following display is about the remote site.

no.

Remote peer number.

remote-pe-id

ID of remote PE peer. Usually, it is MPLS LSR-ID or the session address of the BGP peer.

route-distinguisher

RD of the remote L2VPN. For the related command, see route-distinguisher (MPLS-L2VPN instance view).

# Display information about the local CE on L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1 local-ce
ce-name              ce-id   range   conn-num  CEBase/LBBase/Offset/Range
ce1                  1       10      1           0/21504/0/10
ce2                  2       10      1           0/21514/0/10
Table 3 Description of the display mpls l2vpn vpn1 local-ce command output

Item

Description

ce-name

CE name.

ce-id

CE ID that uniquely identifies a CE.

range

Local CE range. Indicates how many CEs are connected to the local CEs.

conn-num

Number of local connections set for local CEs.

CEBase/LBBase/Offset/Range

Label block assigned by the CE with which the local port sets up a connection. 0/21504/0/10 indicates the offset base address of the label block/the initial value of the label block/initial CE offset/the number of remote labels.

# Display information about the remote CE on the L2VPN named vpn1.

<HUAWEI> display mpls l2vpn vpn1 remote-ce
no.  ce-id peer-id         route-distinguisher       LB
1    2     3.3.3.9         100:1                     19456/0/10
Table 4 Description of the display mpls l2vpn vpn1 remote-ce command output

Item

Description

no.

Sequence number of the connection.

ce-id

ID of the remote CE.

peer-id

IP address of the remote peer.

route-distinguisher

RD of the remote peer.

LB

Remote Label block. 19456/0/10 indicates the initial value of the label block/remote initial CE offset/the number of remote labels.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >