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
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. |
# 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
<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
<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
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.
|
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.
|
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. |
<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
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.
|
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:
|
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:
|
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |