display bgp routing-table(Attribute Filter)

Function

The display bgp routing-table command displays information about BGP public network routes based on specified multiple attribute filters.

Format

display bgp routing-table { as-path-filter { as-path-filter-num | as-path-filter-name } | community-filter { { community-filter-num | community-filter-numEx | community-filter-name } | { community-filter-num | community-filter-name } whole-match } | extcommunity-filter { basic-extcomm-flt-num | adv-extcomm-flt-num | extcommunity-filter-name } | large-community-filter largeComFilName [ whole-match ] } *

Parameters

Parameter Description Value
as-path-filter as-path-filter-num

Specifies the number of an AS_Path filter.

The value is an integer ranging from 1 to 256.

as-path-filter as-path-filter-name

Specifies the name of an AS_Path filter.

The value is a string of 1 to 51 case-sensitive characters, spaces not supported.

community-filter community-filter-name

Specifies the name of a community filter.

The value is a string of 1 to 51 case-sensitive characters. The string cannot be all digits.

community-filter community-filter-num

Specifies the number of a basic community filter.

The value is an integer ranging from 1 to 99.

community-filter community-filter-numEx

Specifies the number of an advanced community filter.

The value is an integer ranging from 100 to 199.

whole-match

Matches the specified attribute filter.

-

extcommunity-filter basic-extcomm-flt-num

Specifies the number of a basic extcommunity filter.

The value is an integer ranging from 1 to 199.

extcommunity-filter adv-extcomm-flt-num

Specifies the number of an advanced extcommunity filter.

The value is an integer that ranges from 200 to 399.

extcommunity-filter extcommunity-filter-name

Specifies the name of an extcommunity filter.

The value is a string of 1 to 51 characters.

large-community-filter largeComFilName

Specifies the name of a Large-Community filter.

The value is a string of 1 to 51 case-sensitive characters, spaces not supported.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To query information about BGP public network routes based on specified multiple attribute filters, run this command. Multiple attribute filters can be specified in this command for query.

Example

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

# Display information about BGP routes that match community filter 10.
<HUAWEI> display bgp routing-table community-filter 10
 
 BGP Local router ID is 10.1.123.1
 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: 1
        Network            NextHop                       MED        LocPrf    PrefVal Community

 *>     10.1.2.0/24        10.1.123.2                     0                     0      <1:1>, <3:3>
# Display information about BGP routes that match large community filter aaa.
<HUAWEI> display bgp routing-table large-community-filter aaa
 
 BGP Local router ID is 10.1.123.1
 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 LargeCommunity

 *>     10.1.1.0/24        10.1.123.2                     0                     0      <1:1:1>, <2:2:2>
 *>     10.1.2.0/24        10.1.123.2                     0                     0      <1:1:1>, <2:2:2>
# Display information about BGP routes that match community filter 10 and AS path filter pas.
<HUAWEI> display bgp routing-table community-filter 10 as-path-filter pas
 
 BGP Local router ID is 10.1.123.1
 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: 1
        Network            NextHop                       MED        LocPrf    PrefVal

 *>     10.1.2.0/24        10.1.123.2                     0                     0
# Display information about BGP routes that match AS path filter pas.
<HUAWEI> display bgp routing-table as-path-filter pas
 
 BGP Local router ID is 10.1.123.1
 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

 *>     10.1.1.0/24        10.1.123.2                     0                     0      200i
 *>     10.1.2.0/24        10.1.123.2                     0                     0      200i
# Display information about BGP routes that match extcommunity filter 50.
<HUAWEI> display bgp routing-table extcommunity-filter 50
 
 BGP Local router ID is 10.1.123.1
 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 ExtCommunity

 *>     10.1.1.0/24        10.1.123.2                     0                     0      RT <2 : 2>, SoO <200 : 200>
 *>     10.1.2.0/24        10.1.123.2                     0                     0      RT <2 : 2>, SoO <300 : 300>
Table 1 Description of the display bgp routing-table(Attribute Filter) command output
Item Description
BGP Local router ID is

Router ID of the local BGP device.

Total Number of Routes

Total number of routes.

Network

Network address in the BGP public network routing table.

NextHop

Next hop IP address used to forward packets.

MED

MED of a BGP route.

LocPrf

Local_Pref of a BGP route.

PrefVal

PrefVal of a BGP route.

Community

Community attribute of a route.

LargeCommunity

LargeCommunity attribute of a route.

Path/Ogn

AS_Path number and the origin attribute.

ExtCommunity

Extended community attribute of a route.

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