< Home

display bgp l2vpn-ad routing-table

Function

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

Format

display bgp l2vpn-ad [ route-distinguisher route-distinguisher ] routing-table [ vpls-ad ] [ ipv4-address | statistics ]

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

display bgp l2vpn-ad routing-table peer ipv4-address received-routes [ active ] [ statistics ]

display bgp l2vpn-ad routing-table vpws route-distinguisher route-distinguisher [ ce-id ce-id [ label-offset label-offset ] ]

display bgp l2vpn-ad routing-table { vpws | vpls | all } [ statistics ]

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

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

display bgp l2vpn-ad routing-table vpls route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ]

display bgp l2vpn-ad routing-table peer ipv4-address received-routes { vpws | vpls | all } [ statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes vpws [ statistics | route-distinguisher route-distinguisher ce-id ce-id label-offset label-offset ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes vpls [ statistics | route-distinguisher route-distinguisher site-id site-id label-offset label-offset ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes all [ statistics ]

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

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpws route-distinguisher route-distinguisher ce-id ce-id label-offset label-offset

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpls route-distinguisher route-distinguisher site-id site-id label-offset label-offset

Parameters

Parameter Description Value
route-distinguisher route-distinguisher Displays BGP L2VPN-AD routing information of the specified RD. -
ipv4-address Specifies the IPv4 network address. -
statistics Display the statistics of the BGP L2VPN-AD routes. -
peer Displays the routing information for the specified BGP peer. -
advertised-routes Displays the routes advertised to the specified peer. -
received-routes Displays the routes received from the specified peer. -
active Displays the active routes received from the specified peer. -
network Specifies the IPv4 network address. -
vpls-ad Displays VPLS-AD route information. -
vpws Displays VPWS route information. -
vpls Displays VPLS route information. -
all Displays information about all types of routes. -
ce-id ce-id Specifies the CE ID. The value is a decimal integer ranging from 0 to 65535.
site-id site-id Specifies the site ID of a VSI. The value is a decimal integer ranging from 0 to 65535.
label-offset label-offset Specifies the offset of a label. The value is a decimal integer ranging from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specific routing information.

Example

# Display all the BGP L2VPN-AD routing information.

<HUAWEI> display bgp l2vpn-ad routing-table
                                                                                
                                                                                
 Local AS number : 100                                                          
                                                                                
 BGP Local router ID is 10.1.150.122                                           
 Status codes: * - valid, > - best, d - damped,                                 
               h - history,  i - internal, s - suppressed, S - Stale            
               Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                
                                                                                
                                                                                
 Total number of routes from all PE: 2                                          
 Route Distinguisher: 1:1                                                       
                                                                                
                                                                                
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn   
                                                                                
 *>   1.1.1.9/32         0.0.0.0                               0      ?         
 *>i  3.3.3.9/32         3.3.3.9                    100        0      ?         

# Display the detailed routing information of an specified route.

<HUAWEI> display bgp l2vpn-ad routing-table 3.3.3.9
                                                                                
                                                                                
 BGP local router ID : 10.1.150.122                                            
 Local AS number : 100                                                          
                                                                                
 Total routes of Route Distinguisher(1:1): 1                                    
 BGP routing table entry information of 3.3.3.9/32:                             
 From: 3.3.3.9 (192.2.2.2)                                                  
 Route Duration: 00h02m09s                                                      
 Relay IP Nexthop: 172.1.1.1                                                    
 Relay IP Out-Interface: Vlanif30                                               
 Original nexthop: 3.3.3.9                                                      
 Qos information : 0x0                                                          
 Ext-Community:RT <100 : 1>, Layer2 Info <1 : 1>                                
 AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, bes
t, select, pre 255, IGP cost 1                                                  
 Not advertised to any peer yet                                                 
# Display VPLS route information.
<HUAWEI> display bgp l2vpn-ad routing-table vpls

 BGP Local router ID is 10.1.0.3
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale


 Total Number of Routes: 2
      Network(RD/Site-ID/LabelOffset)        NextHop

 *>i  100:1/1/0                              1.1.1.1
 *>   100:2/2/0                              0.0.0.0
# Display information about VPLS routes received from 1.1.1.1.
<HUAWEI> display bgp l2vpn-ad routing-table peer 1.1.1.1 received-routes vpls

 BGP Local router ID is 10.1.0.3
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale


 Total Number of Routes: 1
      Network(RD/Site-ID/LabelOffset)        NextHop

 *>i  100:1/1/0                              1.1.1.1
Table 1 Description of the display bgp l2vpn-ad routing-table command output

Item

Description

Network

Network address in the BGP routing table

NextHop

Next Hop address through which the packet has to be sent

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Value preferred by the protocol

Path/Ogn

AS-Path number and the attributes of Origin

BGP Local router ID ID of the local BGP device. The ID is in the same format as an IPv4 address.
Local AS number Local AS number.
Total routes of Route Distinguisher Total number of L2VPN-AD routes with a specified RD.
BGP routing table entry information of x.x.x.x/x The following information is about a specified BGP routing entry.
From IP address of the route originator.
Route Duration Route duration.
Relay IP Nexthop Iterated next hop IP address.
Relay IP Out-Interface Iterated outbound interface.
Original nexthop Original next hop.
Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.
Ext-Community Extended community attribute of BGP.
AS-path AS_Path attribute.

Nil indicates that the attribute value is null.

origin Origin attribute of the BGP route.
  • IGP: The routes imported into the BGP routing table by using the network command.
  • EGP: The routes are obtained by EGP.
  • Incomplete: The origin of the routes cannot be determined, for example, the routes imported into the BGP routing table by using the import-route command.
localpref Local preference of the BGP route.
pref-val Preferred value.
valid Valid BGP route.
internal Internal BGP route.
best The BGP route is the optimal route.
select The BGP route is a preferred route.
pre 255 The preference of the BGP route is 255.

IGP cost 1

Indicates the IGP cost is 1.

Not advertised to any peer yet The BGP route has not been advertised to any peer.
# Display detailed information about the specified invalid VPLS-AD routes.
<HUAWEI> display bgp l2vpn-ad routing-table 1.1.1.1
 BGP local router ID : 10.1.1.2
 Local AS number : 100

 Total routes of Route Distinguisher(1:1): 1
 BGP routing table entry information of 1.1.1.1/32:
 From: 1.1.1.1 (10.1.1.1)
 Route Duration: 00h00m30s  
 Relay IP Nexthop: 10.1.1.1
 Relay IP Out-Interface: GigabitEthernet0/0/0
 Original nexthop: 1.1.1.1
 Qos information : 0x0
 Ext-Community:RT <100 : 1>, Layer2 Info <1 : 1>

 AS-path Nil, origin incomplete, localpref 100, pref-val 0, internal, select, pre 255, invalid for route-policy not pass
 Not advertised to any peer yet
Table 2 Description of the display bgp l2vpn-ad routing-table command output

Item

Description

BGP local router ID

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

Local AS number

Local AS number.

Total routes of Route Distinguisher(1:1)

The total number of routes with the RD of 1:1.

BGP routing table entry information of 1.1.1.1/32

The following information is about 1.1.1.1/32 routing entries.

From

IP address of the router that sends the route. 10.1.1.1 is the IP address of the source interface of the peer with which the BGP connection is established, and 1.1.1.1 is the Router ID of the peer.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Original nexthop

Original next hop.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

Ext-Community

Extended community attribute.

AS-path Nil

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

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

localpref

Local priority.

pref-val

Value preferred by the protocol.

internal

The BGP route is an internal route.

select

The BGP route is a preferred route.

pre 255

The priority of the BGP route is 255.

invalid for route-policy not pass

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

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

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