The display bgp routing-table label command displays the labeled routes in the BGP routing table.
The display bgp vpnv4 routing-table command displays information about BGP VPNv4 routes and BGP VPN routes.
The display bgp labeled routing-table command displays information about BGP routes in a BGP labeled address family.
display bgp vpnv4 all routing-table label
display bgp instance instance-name vpnv4 all routing-table label
display bgp vpnv4 route-distinguisher route-distinguisher routing-table label
display bgp vpnv4 vpn-instance vpn-instance-name routing-table label
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name routing-table label
display bgp vpnv4 vpn-instance vpn-instance-name routing-table [ peer ipv4-address { received-routes | advertised-routes } ] time-range start-time end-time
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name routing-table time-range start-time end-time
display bgp vpnv4 all routing-table [ peer ipv4-address { received-routes | advertised-routes } ] time-range start-time end-time
display bgp instance instance-name vpnv4 all routing-table time-range start-time end-time
display bgp vpnv4 route-distinguisher route-distinguisher routing-table time-range start-time end-time
display bgp vpnv4 vpnv4-vpn-instance vpnv4-vpn-instance-name routing-table label
display bgp labeled vpn-instance vpn-instance-name routing-table label
display bgp labeled vpn-instance vpn-instance-name routing-table time-range start-time end-time
Parameter | Description | Value |
---|---|---|
instance instance-name |
Specifies the name of a BGP multi-instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
all |
Displays all BGP VPNv4 routes. |
- |
route-distinguisher route-distinguisher |
Displays the BGP routes with the specified RD. |
The RD formats are divided into the following types:
|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
peer ipv4-address |
Displays the routes of the specified BGP peer. |
The value is in dotted decimal notation. |
received-routes |
Displays the routes learned from a specified peer. |
- |
advertised-routes |
Displays the routes advertised to a specified peer. |
- |
time-range start-time |
Specifies a starting time ([0-10000]d[0-23]h[0-59]m[0-59]s). |
The value is an integer ranging from 0 to 4294967295. |
time-range end-time |
Specifies an ending time ([0-10000]d[0-23]h[0-59]m[0-59]s). |
The value is an integer ranging from 0 to 4294967295. |
vpnv4-vpn-instance vpnv4-vpn-instance-name |
Specifies the name of a VPN instance whose VPN IP routes and locally generated VPNv4 routes are to be displayed. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
To display the labeled routes in the BGP routing table, run display bgp routing-table label command.
To display information about BGP VPNv4 routes and BGP VPN routes, run display bgp vpnv4 routing-table command. To display information about BGP routes in a BGP labeled address family, run display bgp labeled routing-table command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp vpnv4 all routing-table label
BGP Local router ID is 1.1.1.9
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: 3
Route Distinguisher: 100:1
Network NextHop In/Out Label
*>i 22.22.22.22 3.3.3.9 NULL/1036
Route Distinguisher: 100:4
Network NextHop In/Out Label
*> 1.2.3.0 1.2.3.1 1037/NULL
*> 11.11.11.11 127.0.0.1 1038/NULL
VPN-Instance vpn1, router ID 1.1.1.9:
Total Number of Routes: 1
Network NextHop In/Out Label
*>i 22.22.22.22 3.3.3.9 NULL/1036
VPN-Instance vpn2, router ID 1.1.1.9:
Total Number of Routes: 0
<HUAWEI> display bgp vpnv4 vpnv4-vpn-instance vpn1 routing-table label
BGP Local router ID is 172.16.1.2
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: 100:1
Network NextHop In/Out Label
*> 11.11.11.11 10.1.1.1 32905/NULL
Item | Description |
---|---|
BGP Local router ID is | Router ID of the local BGP device. |
Total number of routes from all PE | Total number of routes from all PEs. |
Total Number of Routes | Total number of routes. |
Route Distinguisher | Route distinguisher. |
Network | Network address in the BGP labeled routing table. |
NextHop | Next-hop address for sending packets. |
In/Out Label | Value of an inbound or outbound label. |