< Home

display bgp ipv6 routing-table

Function

The display bgp ipv6 routing-table command displays BGP IPv6 routes.

Format

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 regular-expression as-regular-expression

display bgp ipv6 routing-table peer ipv6-address { accepted-routes | advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] }

display bgp ipv6 routing-table peer ipv6-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]

display bgp ipv6 routing-table peer ipv4-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]

display bgp ipv6 routing-table time-range start-time end-time

Parameters

Parameter Description Value

verbose

Displays detailed information about BGP4+ public network routes.

-

ipv6-address

Specifies the IPv6 address of the peer.

The value 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 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 routing table.

-

community-number

Specifies the community number.

The value is an integer that ranges from 0 to 4294967295.

aa:nn

Specifies the community attribute number.

Both aa and nn are integers ranging from 0 to 65535.

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.

-

whole-match

Indicates the exact matching.

-

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 a basic community filter.

The value is an integer that ranges from 1 to 99.

advanced-community-filter-number

Specifies the number of an advanced community filter.

The value is an integer that ranges from 100 to 199.

different-origin-as

Displays routes that have the same destination address but different source ASs.

-

peer

Displays the routing information for the specified BGP peer.

-

ipv4-address

Specifies the IPv4 address of the peer.

NOTE:

The parameter is not supported on S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720S-SI, and S6720-SI.

The value is in dotted decimal notation.

advertised-routes

Displays the routes advertised to the specified peer.

-

dest-ipv6-address

Specifies the destination IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

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 public 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 routes that are received from the peer and filtered through a routing policy.

-

time-range start-time end-time

Displays IPv6 BGP routes that flap within the specified time period. For example, the value 0d0h5m0s of start-time indicates 5 minutes before the current time. The value 0d0h10m0s of end-time indicates 10 minutes before the current time. All IPv6 BGP routes with the Keepalive time in the range of 5 to 10 minutes are displayed.

The value ranges of start-time and end-time both are 0d0h0m0s-10000d23h59m59s.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# Display BGP IPv6 routes.

<HUAWEI> display bgp ipv6 routing-table

 BGP Local router ID is 10.1.1.1
 Status codes: * - valid, > - best, d - damped, x - best external,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 1
 *>  Network  : FC00:0:0:2000::                          PrefixLen : 64
     NextHop  : FC00:0:0:2000::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : i         

# Displays BGP IPv6 routes that flap within the specified time period.

<HUAWEI> 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  : FC00:0:0:100::100                        PrefixLen : 128
     NextHop  : FC00:0:0:12::1                           Duration  : 05h46m16s
     Peer     : FC00:0:0:12::1
     Path/Ogn : ?
 * i
     NextHop  : FC00:0:0:112::1                          Duration  : 05h46m16s
     Peer     : FC00:0:0:112::1
     Path/Ogn : ?
 *>i Network  : FC00:0:0:111::111                        PrefixLen : 128
     NextHop  : FC00:0:0:12::1                           Duration  : 05h46m16s
     Peer     : FC00:0:0:12::1
     Path/Ogn : ?
 * i
     NextHop  : FC00:0:0:112::1                          Duration  : 05h46m16s
     Peer     : FC00:0:0:112::1
     Path/Ogn : ?
Table 1 Description of the display bgp ipv6 routing-table command output

Item

Description

BGP Local router ID

Indicates the router ID of the local BGP device.

Network

Indicates the network address in the BGP routing table.

PrefixLen

Indicates the prefix length.

NextHop

Indicates the next-hop address of the packet.

LocPrf

Indicates the local preference.

MED

Indicates the MED of the route.

PrefVal

Indicates the preferred value.

Label

Indicates the label value.

Duration

Route duration

Peer

Peer IP address

Path/Ogn

Indicates the AS_Path number and the Origin attribute.

# Display detailed information about the specified invalid BGP4+ routes.
<HUAWEI> display bgp ipv6 routing-table FC00::1
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Paths:   1 available, 0 best, 0 select
 BGP routing table entry information of FC00::1/128
 From: 10::2 (10.1.1.2)
 Route Duration: 00h17m46s  
 Relay IP Nexthop: ::
 Relay IP Out-Interface: 
 Original nexthop: FC00::2
 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
Table 2 Description of the display bgp ipv6 routing-table command output

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 FC00::1/128

The following information is about FC00::1/128 routing entries.

From

IP address of the router that sends the route. 10.1.1.2 is the source interface IP address of the peer with which the BGP connection is established, and 10::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 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:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

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 priority of the BGP route is 255.

invalid for IP unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

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