display bgp routing-table (public)

Function

The display bgp routing-table label command displays the labeled routes in the BGP routing table.

The display bgp labeled routing-table command displays information about BGP routes in a BGP labeled address family.

The display bgp routing-table command displays information about BGP public network routes.

Format

display bgp routing-table peer ipv4-address { received-routes [ time-range start-time end-time ] | advertised-routes time-range start-time end-time }

display bgp routing-table label

display bgp routing-table time-range start-time end-time

display bgp labeled routing-table peer ipv4-address received-routes

display bgp labeled routing-table label

display bgp labeled routing-table time-range start-time end-time

display bgp routing-table peer ipv6-address { received-routes [ time-range start-time end-time ] | advertised-routes time-range start-time end-time }

display bgp routing-table route-filter route-filter-name

Parameters

Parameter Description Value
received-routes

Displays the public network routes received from a specified peer.

-

time-range start-time

Displays BGP VPNv4 routes that flap within the specified period. 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

Displays BGP VPNv4 routes that flap within the specified period. Ending time (<0-10000>d<0-23>h<0-59>m<0-59>s).

The value is an integer that ranges from 0 to 4294967295.

advertised-routes

Displays the public network routes advertised to a specified peer.

-

peer ipv4-address

Displays the IPv4 address of a peer on which public network routes are to be displayed.

It is in dotted decimal notation.

ipv6-address

Specifies an IPv6 peer address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

route-filter route-filter-name

Specifies the route-filter used to filter routes.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To view the labeled routes in the BGP routing table, run the display bgp routing-table label command.

To view BGP routes in the BGP labeled address family, run the display bgp labeled routing-table command. The command output displays all active and inactive routes in the BGP labeled address family. By specifying different parameters, you can view specific information about routes in the BGP labeled address family.

To check active and inactive BGP routes on the public network, run the display bgp routing-table command.

Precautions

If you want to run the display bgp routing-table route-filter command to check the result of BGP simulating route filtering based on a specified XPL route-filter, you need to run the xpl simulate enable command first.

Example

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

# Display detailed information about specified routes in the BGP labeled address family.
<HUAWEI> display bgp labeled routing-table 1.1.1.1
 BGP local router ID : 10.1.1.2
 Local AS number : 100
 Paths:   1 available, 1 best, 1 select, 0 best-external, 0 add-path
 BGP routing table entry information of 1.1.1.1/32:
 Label information (Received/Applied): 33009/33009 
 From: 1.1.1.1 (10.1.1.1)   
 Route Duration: 0d00h00m32s 
 Relay IP Nexthop: 10.1.1.1 
 Relay IP Out-Interface: GigabitEthernet0/1/0 
 Relay Tunnel Out-Interface: GigabitEthernet0/1/0 
 Original nexthop: 1.1.1.1 
 Qos information : 0x0             
 AS-path Nil, origin igp, MED 30, localpref 100, pref-val 0, valid, internal, best, select, supernet, pre 255, IGP cost 10 
 Advertised to such 1 peers:    127.16.1.3
# Display detailed routes information advertised to a specified peer.
<HUAWEI> display bgp routing-table peer 10.1.1.1 advertised-routes 9.9.9.9
BGP local router ID : 10.1.1.2
 Local AS number : 100
 BGP routing table entry information of 9.9.9.9/32:
 Label information (Received/Applied): 7505/NULL
 From: 172.16.1.3 (172.16.1.3)  
 Route Duration: 3d05h25m45s
 Relay IP Nexthop: 172.16.1.3
 Relay IP Out-interface: GigabitEthernet0/1/0
 Original nexthop: 172.16.1.3
 Advertised nexthop: 10.1.1.2
 Qos information : 0x0            
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, pre 255
 Advertised to such 4 peers:
    10.3.1.1
    10.1.1.1
    10.2.1.1
    172.16.1.3
# Display detailed information of the specified routes.
<HUAWEI> display bgp routing-table 10.1.1.1
BGP local router ID : 192.168.2.2
 Local AS number : 100
 Paths:   1 available, 1 best, 1 select, 0 best-external, 0 add-path
 BGP routing table entry information of 10.1.1.1/32:
 From: 10.1.3.1 (192.168.2.3)
 Route Duration: 0d00h01m33s
 Direct Out-interface: GigabitEthernet0/1/0
 Relay is delayed as nexthop flapped frequently
 Original nexthop: 10.1.3.1
 Qos information : 0x0
 Primary Routing Table: vrf1
 AS-path 200, origin incomplete, MED 0, pref-val 0, valid, external, best, select, active, pre 255
 Advertised to such 1 peers:
    10.1.3.1
# Display BGP routes that flap within the specified period.
<HUAWEI> display bgp routing-table time-range 0d0h5m3s 1d1h1m1s
BGP Local router ID is 1.1.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

      Network            NextHop         Peer            Duration        Path/Ogn

 *>i    1.1.1.2/32         10.1.1.2        10.1.1.2        0d01h42m09s        ?
 * i                       10.2.1.2        10.2.1.2        0d01h42m09s        ?
 *>i    1.1.1.3/32         10.1.1.2        10.1.1.2        0d01h42m09s        ?
 * i                       10.2.1.2        10.2.1.2        0d01h42m09s        ?
 *>i    1.1.1.4/32         10.1.1.2        10.1.1.2        0d01h42m09s        ?
 * i                       10.2.1.2        10.2.1.2        0d01h42m09s        ?
 *>     1.2.3.4/32         0.0.0.0         0.0.0.0         0d01h42m39s        ?
 *>i    10.10.10.10/32     10.1.1.2        10.1.1.2        0d01h42m09s        ?
 * i                       10.2.1.2        10.2.1.2        0d01h42m09s        ?
# Display the BGP routes that match a specified route-filter with the Local_Pref value being 300 as a matching condition.
<HUAWEI> display bgp routing-table route-filter a

 BGP Local router ID is 4.4.4.4
 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: 2
        Network            NextHop                       MED        LocPrf    PrefVal Path/Ogn

   i    1.1.1.0/24         1.1.1.1                        0          300        0      100?
   i    3.3.3.0/24         1.1.1.1                        0          300        0      100?
Table 1 Description of the display bgp routing-table (public) command output
Item Description
BGP Local router ID is

Router ID of the local BGP device.

BGP routing table entry information of

Routing Entry Info.

Local AS number

Local AS number.

Label information (Received/Applied)

Information about labels, including received and sent labels.

Route Duration

Route duration.

Relay is delayed as nexthop flapped frequently

Route recursion to a specified next hop is suppressed because the next hop flaps. If the number of routes is small, the suppression period may be too short. In this case, this field is not displayed in the command output.

Relay IP Nexthop

Next hop of IP recursion.

Original nexthop

Original next hop.

Qos information

QoS information.

MED

MED of routes.

Advertised to such 1 peers

Peers to which routes are sent.

Advertised nexthop

Advertisement next hop.

Network

Network address in the BGP routing table.

Direct Out-interface

Directly-connected interface.

Primary Routing Table

Source routing table.

NextHop

Next-hop address for sending packets.

Peer

IP addresses of the peer.

Duration

Route duration.

Path/Ogn

AS-Path and Origin.

Total Number of Routes

Total number of routes.

LocPrf

Local preference.

PrefVal

PrefVal of a protocol.

Paths

Route selection result.

From

IP address of an advertising device.

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