display bgp routing-table ipv4 mdt

Use display bgp routing-table ipv4 mdt to display BGP MDT routing information.

Syntax

display bgp [ instance instance-name ] routing-table ipv4 mdt [ route-distinguisher route-distinguisher ] [ ip-address [ advertise-info ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays BGP MDT routing information for BGP instance default.

route-distinguisher route-distinguisher: Specifies an RD, a string of 3 to 21 characters. If you do not specify an RD, this command displays BGP MDT routing information for all RDs. An RD can be in one of the following formats:

ip-address: Specifies a multicast source by its IP address. The ip-address argument represents the IP address of the PE device in the default-MDT. If you do not specify a multicast source, this command displays brief information about BGP MDT routes for all multicast sources.

advertise-info: Displays advertisement information. If you do not specify this keyword, no advertisement information is displayed.

Examples

# Display brief information about BGP MDT routes for all multicast sources.

<Sysname> display bgp routing-table ipv4 mdt

 BGP local router ID is 1.1.1.1
 Status codes: * - valid, > - best, d - dampened, h - history,
               s - suppressed, S - stale, i - internal, e - external
               Origin: i - IGP, e - EGP, ? - incomplete

 Route distinguisher: 100:1
 Total number of routes: 2

     Network            NextHop         MED        LocPrf     PrefVal Path/Ogn

* >  1.1.1.1/32         0.0.0.0                               32768   ?
* >i 2.2.2.2/32         2.2.2.2                    100        0       ?

# Display detailed information about BGP MDT routes for multicast source 1.1.1.1.

<Sysname> display bgp routing-table ipv4 mdt 1.1.1.1

 BGP local router ID: 1.1.1.1
 Local AS number: 100


 Route distinguisher: 100:1
 Total number of routes: 1
 Paths:   1 available, 1 best

 BGP MDT information of source 1.1.1.1:
 Default-group   : 224.1.1.1
 Original nexthop: 0.0.0.0
 AS-path         : (null)
 Origin          : incomplete
 Attribute value : pref-val 32768
 State           : valid, local, best 
IP precedence   : N/A
 QoS local ID    : N/A
 Traffic index   : N/A

# Display advertisement information about BGP MDT routes for multicast source 1.1.1.1.

<Sysname> display bgp routing-table ipv4 mdt 1.1.1.1 advertise-info

 BGP local router ID: 1.1.1.1
 Local AS number: 100

 Route distinguisher: 100:1
 Total number of routes: 1
 Paths:   1 best

 BGP MDT information of source 1.1.1.1:
 Default-group: 224.1.1.1
 Advertised to peers (1 in total):
     6.6.6.6

Table 60: Command output

Field

Description

BGP local router ID

ID of the local router.

Status codes

Codes of route status:

  • * – valid—Valid route.

  • > – best—Optimal route.

  • d – damped—Dampened route.

  • h – history—History route.

  • s – suppressed—Suppressed route.

  • S – Stale—Stale route.

  • i – internal—Internal route.

  • e – external—External route.

Origin

Origin of the route information:

  • IGP—Originated in the AS.

  • EGP—Learned through EGP.

  • incomplete—Learned by some other means.

Total number of routes

Total number of BGP MDT routes.

Network

Source IP address of the default-MDT.

NextHop

IP address of the next hop.

MED

Attribute value of Multi-Exit-Discrimination (MED).

LocPrf

Local preference value.

PrefVal

Preferred value of a route.

Path/Ogn

AS PATH attribute and ORIGIN attribute:

  • AS_PATH—Records the ASs the packet has passed to avoid routing loops.

  • ORIGIN—Identifies the origin of the BGP MDT routes.

Paths

Number of the BGP MDT routes:

  • available—Number of valid BGP MDT routes.

  • best—Number of the optimal BGP MDT routes.

BGP MDT information of source 1.1.1.1

BGP MDT routing information for the multicast source 1.1.1.1.

Default-group

Default-group address to which the route belongs.

Advertised to peers (1 in total)

Peers to which the route has been advertised and total number of peers.

From

IP address of the BGP peer that advertises the BGP MDT route.

Original nexthop

IP address of the original next hop.

If the BGP MDT route is learned from the BGP update message, this field displays the IP address of the next hop that receives the message.

AS-path

AS PATH attribute of the path, recording the ASs that the BGP MDT route has passed to avoid routing loops.

Attribute value

Attributes of the BGP MDT routes:

  • MED—MED value related to destination network.

  • Localpref—Local preferred value.

  • pref-val—Preferred value of the route.

  • pre—Preferred value of the protocol.

State

Current states:

  • valid—Valid routes.

  • internal—Internal routes.

  • external—External routes.

  • local—Local routes.

  • synchronize—Synchronized routes.

  • best—Optimal routes.

IP precedence

IP precedence of the route, which is set by the QPPB feature. This field displays N/A if the IP precedence of the route is not set.

QoS local ID

QoS local ID of the route, which is set by the QPPB feature. This field displays N/A if the QoS local ID of the route is not set.

Traffic index

Traffic index of the route, which is set by the QPPB feature. This field displays N/A if the traffic index of the route is not set.