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:
16-bit AS number:32-bit user-defined number. For example, 101:3.
32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than 65536. For example, 65536:1.
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:
|
Origin | Origin of the route information:
|
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:
|
Paths | Number of the 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:
|
State | Current states:
|
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. |