display bgp routing-table

Function

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.

Format

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

Parameters

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:

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

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

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.

Example

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

# Display the BGP labeled routes of all VPN instances.
<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
# Display the BGP labeled routes of a specified IPv4 VPN instance.
<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
Table 1 Description of the display bgp routing-table command output
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.

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