display bgp multicast routing-table [ network [ { mask | mask-length } [ longer-prefixes ] ] ]
display bgp multicast routing-table [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ]
display bgp multicast routing-table regular-expression as-regular-expression
display bgp multicast routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }
display bgp multicast routing-table community [ aa:nn | community-number ] & <1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]
display bgp multicast routing-table peer ipv4-address [ accepted-routes | advertised-routes [ network [ { mask | mask-length } [ longer-prefixes ] ] ] | received-routes [ active ] ]
display bgp multicast routing-table peer ipv4-address received-routes network [ { mask | mask-length } [ longer-prefixes | original-attributes ] ]
| Parameter | Description | Value |
|---|---|---|
network |
Specifies the IPv4 network address. |
It is in dotted decimal notation. |
mask |
Specifies mask in dotted decimal notation. |
It is in dotted decimal notation. |
mask-length |
Specifies the mask-length. |
It is an integer ranging from 0 to 32. |
longer-prefixes |
Matches according to the mask longer than the specified length. |
- |
as-path-filter |
Displays the routes that match the specified filter. |
- |
as-path-filter-number |
Specifies the number of the matching 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 name is a string of 1 to 51 characters without any space. It is case-sensitive. |
cidr |
Displays the information about the Classless Inter-Domain Routing (CIDR). |
- |
different-origin-as |
Displays routes that have the same destination address but different source ASs. |
- |
regular-expression as-regular-expression |
Specifies the matched AS regular expression. |
The value is a string of 1 to 80 characters. |
community-filter |
Displays the routes that match the specified BGP community filter. |
- |
community-filter-name |
Specifies the name of the community filter. |
The name is a string of 1 to 51 characters. The string cannot be all numbers. |
basic-community-filter-number |
Specifies the number of basic community filter. |
It is an integer ranging from 1 to 99. |
whole-match |
Indicates the exact matching. |
- |
advanced-community-filter-number |
Specifies the number of advanced community filter. |
It is an integer ranging from 100 to 199. |
community |
Displays the routing information of the specified BGP community attribute in the routing table. |
- |
aa:nn |
Specifies the community attribute number. You can set a maximum of 29 community numbers. |
Both aa and nn are integers ranging from 0 to 65535. |
community-number |
Specifies the community number. |
It is an integer ranging from 0 to 4294967295. |
internet |
Displays the BGP routes with Internet community attribute. |
- |
no-advertise |
Displays the BGP routes with No-Advertise community attribute. |
- |
no-export |
Displays the BGP routes with the No-Export community attribute. |
- |
no-export-subconfed |
Displays the BGP routes with the No-Export-Subconfed community attribute. |
- |
peer ipv4-address |
Displays the routing information for the specified BGP peer. |
It is in dotted decimal notation. |
accepted-routes |
Displays the routes that are received from the peer and filtered through a routing policy. |
- |
advertised-routes |
Displays the routes advertised to the specified peer. |
- |
received-routes |
Displays the routes received from the specified peer. |
- |
active |
Displays the active routes received from the specified peer. |
- |
original-attributes |
Displays the original attributes of a BGP route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. |
- |
You can specify different parameters to view the specific routing information.
When BGP routing table is displayed, if the length of the destination address mask of an IPv4 route is the same as that of its natural mask, the mask length is not displayed.
# Display the MBGP routing information.
<sysname> display bgp multicast routing-table
BGP Local router ID is 10.13.13.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 14
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.3.3.3/32 0.0.0.0 0 0 ?
*> 10.4.4.4/32 10.2.1.2 0 2?
*> 10.3.1.0/24 10.2.1.2 0 2?
*> 10.1.1.0/24 0.0.0.0 0 0 ?
*> 10.1.1.1/32 0.0.0.0 0 0 ?
*> 10.1.2.0/24 10.2.1.2 0 2?
*> 10.1.13.0/24 0.0.0.0 0 0 ?
*> 10.1.13.2/32 0.0.0.0 0 0 ?
*> 10.2.1.0/24 0.0.0.0 0 0 ?
*> 10.2.1.0/24 10.2.1.2 0 0 2?
*> 10.2.1.1/32 0.0.0.0 0 0 ?
*> 10.2.13.0/24 0.0.0.0 0 0 ?
*> 10.2.13.1/32 0.0.0.0 0 0 ?
*> 10.2.13.2/32 0.0.0.0 0 0 ?
Item |
Description |
|---|---|
BGP local router ID |
ID of the local BGP device. The format is the same as the IPv4 address. |
Total Number of Routes: 14 |
The number of the routes in the BGP routing table |
Network |
Destination network address in the BGP routing table. |
NextHop |
Next-hop address for sending packets |
MED |
MED of the route. |
LocPrf |
Local preference of the BGP route. |
PrefVal |
Protocol preferred value of the route. |
Path/Ogn |
AS_Path and origin attributes of the route. |
# Display routing information that matches the AS-path filtering list 1.
<sysname> display bgp multicast routing-table as-path-filter 1
BGP local router ID is 10.14.14.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 15
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 10.3.3.3/32 10.2.1.1 0 100 0 1?
*>i 10.1.1.0/24 10.2.1.1 0 100 0 1?
*>i 10.1.13.0/24 10.2.1.1 0 100 0 1?
*>i 10.2.1.0/24 10.2.1.1 0 100 0 1?
*>i 10.2.13.0/24 10.2.1.1 0 100 0 1?
*>i 10.2.13.1/32 10.2.1.1 0 100 0 1?
*>i 10.13.13.9/32 10.2.1.1 0 100 0 1?
*>i 10.15.15.13/32 10.2.1.1 0 100 0 1?
*>i 10.2.13.0/24 10.2.1.1 0 100 0 1?
*>i 10.2.13.1/32 10.2.1.1 0 100 0 1?
*>i 172.16.13.0/24 10.2.1.1 0 100 0 1?
*>i 172.16.13.100/32 10.2.1.1 0 100 0 1?
*>i 172.16.41.0/24 10.2.1.1 0 100 0 1?
*>i 192.168.14.2/32 10.2.1.1 0 100 0 1?
# Display the information about CIDR.
<sysname> display bgp multicast routing-table cidr
BGP local router ID is 10.13.13.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 9
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.4.4.4/32 10.2.1.2 0 2?
*> 10.1.1.0/24 10.2.1.2 0 2?
*> 10.1.2.0/24 10.2.1.2 0 2?
*> 10.2.1.0/24 10.2.1.2 0 0 2?
*> 10.7.1.0/24 10.2.1.2 0 2?
*> 10.7.1.1/32 10.2.1.2 0 2?
*> 10.7.1.2/32 10.2.1.2 0 0 2?
*> 10.11.12.0/24 10.2.1.2 0 0 2?
*> 10.11.12.1/32 10.2.1.2 0 0 2?
# Display MBGP routing information with the internet community attribute or that of Community 100:100.
<sysname> display bgp multicast routing-table community 100:100 internet
BGP local router ID is 10.12.12.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 5
Network NextHop MED LocPrf PrefVal Community *> 10.1.1.1/32 10.1.1.2 0 0 *> 10.3.3.3/32 10.2.1.1 0 0 *> 10.4.1.0/24 10.2.1.1 0 0 *> 10.1.1.0/24 10.2.1.1 0 0 <100:100> *> 10.2.13.0/24 10.2.1.1 0 0
Item |
Description |
|---|---|
Community |
Community attributes |
# Display the routing information that matches a specified MBGP community list.
<sysname> display bgp multicast routing-table community-filter 1
BGP local router ID is 10.12.12.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Community
*> 10.10.10.0/24 10.2.1.1 0 0 <100:100>
# Display MBGP routes with different source AS numbers.
<sysname> display bgp multicast routing-table different-origin-as
BGP local router ID is 10.13.13.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 8
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.2.1.0/24 10.2.1.2 0 0 2?
*> 0.0.0.0 0 0 ?
*> 10.2.0.0/16 10.2.1.2 0 2?
*> 0.0.0.0 0 0 ?
*> 192.168.14.0 10.2.1.2 0 2?
*> 0.0.0.0 0 0 ?
*> 192.168.14.1/32 10.2.1.2 0 2?
*> 0.0.0.0 0 0 ?
# Display routes with prefix 10.11.1.0 and mask greater than 24 sent by 2.2.2.2.
<sysname> display bgp multicast routing-table peer 2.2.2.2 received-routes 10.11.1.0 24 longer-prefixes
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 10.11.1.0/24 2.2.2.2 0 100 0 ?
*>i 10.11.1.0/25 2.2.2.2 0 100 0 ?
# Display the original attributes of the route to 10.11.1.0/24 sent by 2.2.2.2.
<sysname> display bgp multicast routing-table peer 2.2.2.2 received-routes 10.11.1.0 24 original-attributes
BGP local router ID : 1.1.1.1 Local AS number : 100 BGP routing table entry information of 10.11.1.0/24: From: 2.2.2.2 (2.2.2.9) Route Duration: 00h01m54s Relay IP Nexthop: 10.1.1.2 Relay IP Out-Interface: Ethernet0/0/1 Original nexthop: 2.2.2.2 Qos information : 0x0 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, active, pre 255, IGP cost 1 Not advertised to any peer yet
Item |
Description |
|---|---|
Local AS number |
Local AS number. |
BGP routing table entry information of 10.11.1.0/24 |
The following information is about 10.11.1.0/24 routing entries. |
From |
IP address of the router that sends the route. 2.2.2.2 is the IP address of the source interface of the peer with which the BGP connection is established, and 2.2.2.9 is the Router ID of the peer. |
Route Duration |
Duration of routes. |
Relay IP Nexthop |
IP iterated next hop. |
Relay IP Out-Interface |
IP iterated outbound interface. |
Original nexthop |
Original next hop. |
Qos information |
QoS information. |
AS-path Nil |
AS_Path attribute, with Nil indicating that the attribute value is null. |
origin incomplete |
Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
|
localpref |
Local priority. |
pref-val |
Value preferred by the protocol. |
valid |
The BGP route is a valid route. |
internal |
The BGP route is an internal route. |
best |
The BGP route is an optimal route. |
select |
The BGP route is a preferred route. |
active |
The BGP route is an active route. |
pre 255 |
The BGP route preference is 255. |
IGP cost |
IGP cost the next hop. |
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |
<sysname> display bgp multicast routing-table 1.1.1.1
BGP local router ID : 10.1.1.1 Local AS number : 100 Paths: 2 available, 0 best, 0 select BGP routing table entry information of 1.1.1.1/32: From: 2.2.2.2 (10.1.1.2) Route Duration: 00h01m15s Relay IP Nexthop: 0.0.0.0 Relay IP Out-Interface: Original nexthop: 10.10.1.2 Qos information : 0x0 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable Not advertised to any peer yet BGP routing table entry information of 1.1.1.1/32: From: 10.1.1.2 (10.1.1.2) Route Duration: 00h01m15s Relay IP Nexthop: 0.0.0.0 Relay IP Out-Interface: Original nexthop: 10.10.1.2 Qos information : 0x0 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable Not advertised to any peer yet
Item |
Description |
|---|---|
BGP local router ID |
ID of the local BGP device. The format is the same as the IPv4 address. |
Local AS number |
Local AS number. |
Paths |
Information about paths of BGP routes |
BGP routing table entry information of 1.1.1.1/32 |
The following information is about 1.1.1.1/32 routing entries. |
From |
IP address of the router that sends the route. 10.1.1.2 is the IP address of the source interface of the peer with which the BGP connection is established, and 2.2.2.2 is the Router ID of the peer. |
Route Duration |
Duration of routes. |
Relay IP Nexthop |
IP iterated next hop. |
Relay IP Out-Interface |
IP iterated outbound interface. |
Original nexthop |
Original next hop. |
Qos information |
QoS information. |
AS-path 200 |
AS_Path attribute. |
origin incomplete |
Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
|
MED |
Multi-Exit discriminator of route. |
localpref |
Local priority. |
pref-val |
Value preferred by the protocol. |
internal |
The BGP route is an internal route. |
pre 255 |
The BGP route preference is 255. |
invalid for IP unreachable |
Reason why a route is invalid:
|
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |