The display bgp mdt routing-table command displays BGP Multicast Distribution Tree (MDT) routes.
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
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:
|
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. |
The actual command output varies according to the device. The command output here is only an example.
<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 ?
<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>
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. |