display bgp ipv6 routing-table [ verbose ]
display bgp ipv6 routing-table ipv6-address prefix-length
display bgp ipv6 routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp ipv6 routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]
display bgp ipv6 routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }
display bgp ipv6 routing-table different-origin-as
display bgp ipv6 routing-table peer { ipv6-address | ipv4-address } [ advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] ]
display bgp ipv6 routing-table peer { ipv6-address | ipv4-address } received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]
display bgp ipv6 routing-table regular-expression as-regular-expression
display bgp ipv6 routing-table peer { ipv4-address | ipv6-address } accepted-routes
display bgp ipv6 routing-table time-range start-time end-time
| Parameter | Description | Value |
|---|---|---|
| verbose | Displays detailed information about BGP4+ public network routes. | - |
| ipv6-address | Specifies the IPv6 address. |
It is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
| prefix-length | Specifies the length of the prefix. |
The value is an integer that ranges from 0 to 128. |
| as-path-filter | Displays the public network 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. |
| community | Displays the routing information of the specified BGP community attribute in the public routing table. |
- |
| community-number | Specifies the community number. |
It is an integer ranging from 0 to 4294967295. |
| 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. |
| internet | Displays the BGP4+ public network routes with Internet community attribute. |
- |
| no-advertise | Displays the BGP4+ public network routes with No-Advertise community attribute. |
- |
| no-export | Displays the BGP4+ public network routes with the No-Export community attribute. |
- |
| no-export-subconfed | Displays the BGP4+ public network routes with the No-Export-Subconfed community attribute. |
- |
| whole-match | Indicates the exact matching. |
- |
| community-filter | Displays the public network 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. |
| advanced-community-filter-number | Specifies the number of advanced community filter. |
It is an integer ranging from 100 to 199. |
| different-origin-as | Displays BGP public network routes that have the same destination address but different source ASs. |
- |
| peer | Displays the public network routing information for the specified BGP peer. |
- |
| ipv4-address | Displays the public network routing information for the specified BGP peer. |
It is in dotted decimal notation. |
| advertised-routes | Displays the public network routes advertised to the specified peer. |
- |
| dest-ipv6-address | Specifies the destination IPv6 address. |
It is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
| received-routes | Displays the public network routes received from the specified peer. |
- |
| active | Displays the active routes received from the specified peer. |
- |
| original-attributes | Displays the original attributes of a public network 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. | - |
| regular-expression as-regular-expression | Specifies the matched AS regular expression. |
The value is a string of 1 to 80 characters. |
| accepted-routes | Displays the public network routes that are received from the peer and filtered through a routing policy. |
- |
| time-range start-time end-time | Displays BGP4+ public network routes that flap within the specified time period. For example, the value 0d0h5m0s of start-time indicates five minutes before the current time. The value 0d0h10m0s of end-time indicates 10 minutes before the current time. All BGP4+ public network routes with the Keepalive time in the range of 5 to 10 minutes are displayed. |
The formats of start-time and end-time both are xxdxxhxxmxxs.
NOTE:
If the value of the d is 10000, the values of the h, m, and s can be only 0. |
You can specify different parameters to view the specific routing information.
You can run the display bgp ipv6 routing-table time-range start-time end-time command to view BGP4+ routes that flap within the specified time period. For example, if service traffic is abnormal or CPU usage of the device remains high within a certain time period, you can run this command to check whether route flapping occurs within the specified time period. The faulty route can be viewed in the command output, facilitating fault location.
# Display BGP4+ routing information.
<sysname> display bgp ipv6 routing-table
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
Total Number of Routes: 1
*> Network : 2001:db8:2000:: PrefixLen : 64
NextHop : 2001:db8:2000::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : i
# Displays BGP4+ routes that flap within the specified time period.
<sysname> display bgp ipv6 routing-table time-range 0d5h0m0s 1d5h0m0s
BGP Local router ID is 10.1.1.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*>i Network : 2001:db8:100::100 PrefixLen : 128
NextHop : 2001:db8:12::1 Duration : 05h46m16s
Peer : 2001:db8:12::1
Path/Ogn : ?
* i
NextHop : 2001:db8:112::1 Duration : 05h46m16s
Peer : 2001:db8:112::1
Path/Ogn : ?
*>i Network : 2001:db8:111::111 PrefixLen : 128
NextHop : 2001:db8:12::1 Duration : 05h46m16s
Peer : 2001:db8:12::1
Path/Ogn : ?
* i
NextHop : 2001:db8:112::1 Duration : 05h46m16s
Peer : 2001:db8:112::1
Path/Ogn : ?
*>i Network : 2001:db8:112::111 PrefixLen : 128
NextHop : 2001:db8:12::1 Duration : 05h46m16s
Peer : 2001:db8:12::1
Path/Ogn : ?
i
NextHop : 2001:db8:112::1 Duration : 05h46m16s
Peer : 2001:db8:112::1
Path/Ogn : ?
*>i Network : 2001:db8:112::113 PrefixLen : 128
NextHop : 2001:db8:12::1 Duration : 05h46m16s
Peer : 2001:db8:12::1
Path/Ogn : ?
i
NextHop : 2001:db8:112::1 Duration : 05h46m17s
Peer : 2001:db8:112::1
Path/Ogn : ?
*>i Network : 2001:db8:114::113 PrefixLen : 128
NextHop : 2001:db8:12::1 Duration : 05h46m17s
Peer : 2001:db8:12::1
Path/Ogn : ?
* i
NextHop : 2001:db8:112::1 Duration : 05h46m17s
Peer : 2001:db8:112::1
Path/Ogn : ?
Item |
Description |
|---|---|
Network |
Network address in the BGP4+ routing table |
PrefixLen |
Prefix length |
NextHop |
Next hop address of the packet |
LocPrf |
Local preference |
MED |
Multi-Exit discriminator |
PrefVal |
Preferred value of the protocol |
Label |
Label value |
Duration |
Route duration |
Peer |
Peer IP address |
Path/Ogn |
AS path number and the origin attribute |
# Display routes that match as-path-filter 20.
<sysname> display bgp ipv6 routing-table as-path-filter 20
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
Total Number of Routes: 1
*> Network : 2001:db8:10::10 PrefixLen : 128
NextHop : :: LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 1 2 3 ?
# Display the original attributes of 2001:db8:10::/64 from 2001:db8:10::2 before 2001:db8:10::/64 is filtered by the local import policy.
<sysname> display bgp ipv6 routing-table peer 2001:db8:10::2 received-routes 2001:db8:10:: 64 original-attributes
BGP local router ID : 1.1.1.1 Local AS number : 100 BGP routing table entry information of 2001:db8:10::/64: From: 2001:db8:10::2 (2.2.2.2) Route Duration: 00h00m09s Relay IP Nexthop: :: Relay IP Out-Interface: GigabitEthernet0/0/1 Original nexthop: 10::2 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, AIGP 123 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. |
BGP routing table entry information of 2001:db8:10::/64 |
The following information is about 2001:db8:10::/64 routing entries. |
From |
IP address of the router that sends the route. 2001:db8:10::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. |
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. |
internal |
The BGP route is an internal route. |
pre 255 |
The priority of the BGP route is 255. |
AIGP |
Accumulated interior gateway protocol metric attribute. |
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |