< Home

display bgp l2vpn

Function

The display bgp l2vpn command displays information about the Kompella L2VPN label block stored in BGP.

Format

display bgp l2vpn { all | group [ group-name ] | peer [ [ peer-ip-address ] verbose ] | route-distinguisher route-distinguisher [ ce-id ce-id [ label-offset label-offset ] ] }

Parameters

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:
  • 2-byte AS number:4-byte user-defined number, for example, 101:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

-
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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
Table 1 Description of the display bgp l2vpn command output

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:

  • i - IGP: Interior Gateway Protocol (IGP), It is of the highest priority.
  • e - EGP: Exterior Gateway Protocol (EGP): It is of the second highest priority.
  • ? - incomplete: It is of the lowest priority.

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.

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