display bgp mdt routing-table (different-origin-as and cidr)

Function

The display bgp mdt routing-table different-origin-as command displays BGP MDT routes that have the same destination address but different source AS numbers.

The display bgp mdt routing-table cidr command displays classless inter-domain routing (CIDR) information about BGP MDT routes.

Format

display bgp mdt { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } routing-table different-origin-as

display bgp mdt { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } routing-table cidr

Parameters

Parameter Description Value
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.

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

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.

# Displays all of classless inter-domain routing (CIDR) information about BGP MDT routes.
<HUAWEI> display bgp mdt all routing-table cidr
 BGP Local router ID is 10.1.3.2
 Status codes: * - valid, > - best, d - damped, h - history,
               i - internal, s - suppressed, S - Stale
 Origin      : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 2
        Network            NextHop                       MED        LocPrf    PrefVal Path/Ogn
 *>     10.1.3.1/32        0.0.0.0                        0                     0       ?
 *>     10.1.3.2/32        0.0.0.0                        0                     0       ?
# Display all of BGP MDT routes that have the same destination address but different source AS numbers.
<HUAWEI> display bgp mdt all routing-table different-origin-as
 BGP Local router ID is 10.1.3.1
 Status codes: * - valid, > - best, d - damped, h - history,
               i - internal, s - suppressed, S - Stale
 Origin      : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 2
        Network            NextHop                       MED        LocPrf    PrefVal Path/Ogn
 *>     10.2.1.0/24        0.0.0.0                        0                     0       i
 *                         10.17.1.1                      1                     0      300?
Table 1 Description of the display bgp mdt routing-table (different-origin-as and cidr) command output
Item Description
BGP Local router ID is

Router ID of the local BGP device.

Status codes

The codes of status.

Origin

Origin attribute of a BGP route:

  • IGP: indicates that the route is added to the BGP routing table using the network command.
  • EGP: indicates that the route is obtained using EGP.
  • Incomplete: indicates that the route source is unknown. For example a route is imported using the import-route command.
Total Number of Routes

The total number of BGP routes.

Network

Network address in the BGP routing table.

NextHop

Next-hop address of the sent packets.

MED

MED of a route.

LocPrf

Local preference of a route.

PrefVal

Preferred value by a protocol.

Path/Ogn

AS_Path number and Origin attribute.

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