The display bgp mdt routing-table command displays BGP Multicast Distribution Tree (MDT) routes.
display bgp mdt vpn-instance vpn-instance-name routing-table
display bgp mdt { all | route-distinguisher route-distinguisher } routing-table
display bgp mdt { all | route-distinguisher route-distinguisher } routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp mdt { all | route-distinguisher route-distinguisher } routing-table regular-expression as-regular-expression
display bgp mdt vpn-instance vpn-instance-name routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp mdt vpn-instance vpn-instance-name routing-table regular-expression as-regular-expression
display bgp mdt all routing-table peer ipv4-address advertised-routes
display bgp mdt all routing-table peer ipv4-address received-routes
display bgp mdt all routing-table peer ipv4-address received-routes active
Parameter | Description | Value |
---|---|---|
all |
Displays all the BGP routes of MDT. |
- |
route-distinguisher route-distinguisher |
Displays BGP routing information of the specified Route Distinguisher (RD). |
The RD formats are divided into the following types:
|
as-path-filter |
Displays the routes that match a specified filter. |
- |
as-path-filter-number |
Specifies the number of the matched AS_Path filter. |
It is an integer that ranges from 1 to 256. |
as-path-filter-name |
Specifies the name of the matching AS_Path filter. |
The value is a string of 1 to 51 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
regular-expression as-regular-expression |
Specifies the regular expression that AS_Path matched. |
The value is a string of 1 to 80 characters. |
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. |
peer ipv4-address |
Displays the routes of the specified BGP peer. |
The value is in dotted decimal notation. |
advertised-routes |
Displays the routes advertised to a specified peer. |
- |
received-routes |
Displays the routes received from the specified peer. |
- |
active |
Displays the active routes received from the specified peer. |
- |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp mdt route-distinguisher 100:1 routing-table
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 vpn-instance BLUE routing-table
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
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
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 ?
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. |