display bgp l2vpn-ad routing-table (prefix)

Function

The display bgp l2vpn-ad routing-table command displays BGP L2VPN-AD routes.

Format

display bgp l2vpn-ad routing-table [ vpls-ad ] network

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes [ vpls-ad ] network

display bgp l2vpn-ad route-distinguisher route-distinguisher routing-table [ vpls-ad ] network

display bgp l2vpn-ad routing-table peer ipv4-address received-routes [ vpls-ad ] network

Parameters

Parameter Description Value
vpls-ad

Displays VPLS-AD route information.

-

network

Specifies an IPv4 network address.

The value is in dotted decimal notation.

peer ipv4-address

Displays the routes of the specified BGP peer.

The value is in dotted decimal notation.

advertised-routes

Displays the routes advertised to a specified peer.

-

route-distinguisher route-distinguisher

Displays BGP L2VPN-AD routes of the specified Route Distinguisher (RD).

The RD formats are divided into the following types:

  • 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.
  • 4-byte AS number in dotted notation is in the format of x.y, wherex 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.
received-routes

Displays the routes received from the specified peer.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To view BGP L2VPN-AD routes, run the display bgp l2vpn-ad routing-table command. You can specify different parameters to view the specific routing information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display all the BGP L2VPN-AD routes.
<HUAWEI> display bgp l2vpn-ad routing-table
Local AS number : 100

 BGP Local router ID is 11.11.11.1
 Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found

 

 Total number of routes from all PE: 1
 Route Distinguisher: 1:1


      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  11.1.1.1/32        11.11.11.2                 100        0      ?
# Display detailed routing information of a specified BGP L2VPN-AD route.
<HUAWEI> display bgp l2vpn-ad routing-table 1.1.1.1
BGP local router ID : 11.11.11.1
 Local AS number : 100

 Total routes of Route Distinguisher(1:1): 1
 BGP routing table entry information of 11.1.1.1/32:
 From: 11.11.11.2 (11.1.1.1)
 Route Duration: 00h29m44s
 Original nexthop: 11.11.11.2
 Qos information : 0x0
 Ext-Community:RT <1 : 1>, Layer2 Info <1 : 1>
 AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, best, select, pre 255
 Not advertised to any peer yet
Table 1 Description of the display bgp l2vpn-ad routing-table (prefix) command output
Item Description
Local AS number

Local AS number.

BGP local router ID

ID of the local BGP router. The format is the same as the IPv4 address.

best

Optimal route.

Total routes of Route Distinguisher(1:1)

Number of routes with the RD of 1:1.

Total number of routes from all PE

Number of routes from all Pes.

Route Distinguisher

Route distinguisher (RD).

Route Duration

Duration of routes.

Network

Network address in the BGP routing table.

NextHop

Next hop address of a packet.

MED

Multi-Exit discriminator, If the MED is null, the route is learned from an IBGP peer.

LocPrf

Local_Pref, If the Local_Pref is null, the route is learned from an EBGP peer.

PrefVal

PrefVal.

Path/Ogn

AS_Path number or Origin.

Original nexthop

Original next hop.

Qos information

QoS information.

Layer2 Info

Information of the link layer.

AS-path Nil

AS_Path attribute, with Nil indicating that the attribute value is null.

origin incomplete

Origin attribute:

  • IGP: The origin of the routes that are added to the BGP routing table using the network (BGP) command is IGP.
  • EGP: The origin of the routes imported from EGP is EGP.
  • Incomplete: The value indicates the origin of a route is unknown. The origin of the routes that are added to the BGP routing table using the import-route (BGP) command is Incomplete.
localpref

Local_Pref.

pref-val

PrefVal.

pre 255

The priority of the BGP route is 255.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

From

IP address of the router that sends the route. In this example, 11.11.11.2 is the IP address of the source interface of the peer with which the BGP connection is established, and 11.1.1.1 is the Router ID of the peer.

Ext-Community

Extended community attribute.

valid

Valid route.

internal

Internal route.

select

Selected route.

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