The display bgp l2vpn command displays information about the Kompella L2VPN label block stored in BGP.
display bgp l2vpn { all | group [ group-name ] | peer [ [ peer-ip-address ] verbose ] | route-distinguisher route-distinguisher [ ce-id ce-id [ label-offset label-offset ] ] }
Parameter | Description | Value |
---|---|---|
all | Displays all information about the local label block of Kompella L2VPN stored in BGP. | - |
group group-name | Displays information about the label block of Kompella L2VPN stored in a specified BGP peer group. | The value is an existing BGP peer group. |
peer-ip-address | Displays information about the Kompella L2VPN label block of the specified peer stored in BGP. | The value is in dotted decimal notation. |
verbose | Displays detailed information about the Kompella L2VPN label block stored in BGP. | - |
route-distinguisher route-distinguisher | Specifies the specific route identification value. The
RD format can be any of the following:
|
- |
ce-id ce-id | Specifies the number of CE of the L2VPN instance. | The value ranges from 0 to 65535. |
label-offset label-offset | Specifies the offset value of the label. | It is a decimal integer ranging from 0 to 65535. |
Usage Scenario
In a Kompella VLL networking, you can use the display bgp l2vpn command to check information about a label block, including the RD value, CE ID, label offset, start label in the label block, and BGP routing attributes of the label block.
Precautions
If route-distinguisher, ce-id, and label-offset all are specified, you can view the BGP extended community attribute, the value of each label in the label block, the status of the L2VPN connection status using this label as well as the BGP peers to which this label block is advertised.
# View the BGP L2VPN label block with the specified RD, CE ID, and label offset.
<HUAWEI> display bgp l2vpn route-distinguisher 1:1 ce-id 1 label-offset 0
BGP Local router ID : 10.1.1.2, local AS number : 100
Origin codes:i - IGP, e - EGP, ? - incomplete
nexthop:6.6.6.6, pref :100, as-path :(null)
label base: 35840, label range: 10, layer-2 mtu: 1500, encap type:Ethernet VLAN
label state
35840 down
35841 down
35842 up
35843 down
35844 down
35845 down
35846 down
35847 down
35848 down
35849 down
Item |
Description |
---|---|
BGP Local router ID |
Local router ID of local BGP. Its format is the same as the IPv4 address. |
Origin codes |
The origin attributes of BGP route:
|
local AS number |
Local autonomous system (AS) number. |
nexthop |
Next-hop address of MP-BGP. |
pref |
Local preference, which is one type of BGP routing attribute. |
as-path |
AS path attribute, which is one type of BGP routing attribute. It records the numbers of all ASs sequentially that a packet passes through from the local address to the destination address. |
label base |
Starting value of the label. |
label range |
Range of the labels. |
layer-2 mtu |
MTU value of the link layer. |
encap type |
Encapsulation mode of the link layer. |
label |
Allocated label. |
state |
Status of the allocated label. |