display bgp mdt routing-table

Function

The display bgp mdt routing-table command displays BGP Multicast Distribution Tree (MDT) routes.

Format

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table network [ mask-length | mask ]

display bgp mdt { all | vpn-instance vpn-instance-name } routing-table network { mask-length | mask } longer-prefixes

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table community-filter { basic-community-filter-number | advanced-community-filter-number | community-filter-name }

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table community-filter { basic-community-filter-number | advanced-community-filter-number | community-filter-name } whole-match

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table community [ community-number | aa:nn | internet | no-advertise | no-export | no-export-subconfed ] &<1-33>

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table community [ community-number | aa:nn | internet | no-advertise | no-export | no-export-subconfed ] &<1-33> whole-match

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table large-community [ aa:bb:cc ] &<1-33>

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table large-community [ aa:bb:cc ] &<1-33> whole-match

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table large-community-filter large-community-filter-name

display bgp mdt { route-distinguisher route-distinguisher | all | vpn-instance vpn-instance-name } routing-table large-community-filter large-community-filter-name whole-match

Parameters

Parameter Description Value
route-distinguisher route-distinguisher

Displays BGP routing information of the specified Route Distinguisher (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 and from 0 to 65535, respectively. 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.
all

Displays all the BGP routes of MDT.

-

vpn-instance vpn-instance-name

Displays the BGP routing information of the specified 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.

network

Specifies an IPv4 network address.

The value is in dotted decimal notation.

mask-length

Specifies the mask length of an IPv4 address.

The value is an integer ranging from 0 to 32.

mask

Specifies the mask of an IPv4 address.

The value is in dotted decimal notation.

longer-prefixes

Matches according to the mask longer than the specified length.

-

community-filter basic-community-filter-number

Specifies the number of a basic community filter.

The value is an integer ranging from 1 to 99.

community-filter community-filter-name

Specifies the name of the community filter.

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

community-filter advanced-community-filter-number

Specifies the number of an advanced community filter.

The value is an integer ranging from 100 to 199.

whole-match

Indicates exact matching.

-

community community-number

Specify community number.

The value is an integer ranging from 0 to 4294967295.

community aa:nn

Specify aa<0-65535>:nn <0-65535>.

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

internet

Displays the BGP public network routes carrying the internet community attribute.

-

no-advertise

Displays the BGP public network routes carrying the No-Advertise community attribute.

-

no-export

Displays the BGP public network routes carrying the No-Export community attribute.

-

no-export-subconfed

Displays the BGP public network routes carrying the No-Export-Subconfed community attribute.

-

large-community aa:bb:cc

Specifies a value of the Large-Community attribute.

The value is a string of 5 to 32 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.

large-community-filter large-community-filter-name

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

The display bgp mdt routing-table command displays BGP MDT routes. You can specify different parameters to view the specific routing information.

Example

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

# Display all BGP MDT routes of community 1000:100 with the Internet community attribute.
<HUAWEI> display bgp mdt all routing-table community 1000:100 internet

 BGP Local router ID is 1.1.1.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 from all PE: 2
 Route Distinguisher: 100:1


        Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>     1.1.1.1/32         0.0.0.0         0                     0       ?
 *>i    3.3.3.3/32         3.3.3.3         0          100        0       ?

 Total number of routes of IPv4-MDT-family for vpn-instance BLUE: 2
        Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>     1.1.1.1/32         0.0.0.0         0                     0       ?
 *>i    3.3.3.3/32         3.3.3.3         0          100        0       ?
# Display information about BGP MDT+ routes with the Large-Community attribute of 200:1:1.
<HUAWEI> display bgp mdt all routing-table large-community 200:1:1
  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
 Total Number of Routes: 4
      Network        NextHop    MED    LocPrf    PrefVal   large-community
 *    1.1.1.0/24     1.1.1.1     0                  0        <200:1:1>
 *    1.1.1.2/32     1.1.1.1     0                  0        <200:1:1>
 *>   5.1.1.0/24     1.1.1.1     0                  0        <200:1:1>
Table 1 Description of the display bgp mdt routing-table command output
Item Description
BGP Local router ID

Router ID of the local BGP device. The format is the same as an IPv4 address.

Status codes

The codes of status.

RPKI validation codes

The codes of status for RPKI validation.

Total Number of Routes

Total number of routes in the routing table.

Total number of routes from all PE

Total number of routes from all PEs in the routing table.

Route Distinguisher

Route distinguisher.

Network

Network address in the BGP routing table.

NextHop

Next-hop address of the route.

MED

MED of the route.

LocPrf

Local_Pref of the route.

PrefVal

PrefVal of the route.

Path/Ogn

AS_Path and Origin.

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