display bgp mdt routing-table (brief)

Function

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

Format

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

Parameters

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:

  • 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.
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.

-

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 the BGP MDT routing information of the specified RD.
<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       ?
# Display all the BGP MDT routing information of the VPN instance named BLUE.
<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       ?
# Display all the BGP MDT routing information.
<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       ?
Table 1 Description of the display bgp mdt routing-table (brief) 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 >