display bgp ipv6 routing-table

Function

The display bgp ipv6 routing-table command displays BGP4+ public network routes.

The display bgp ipv6 routing-table label command displays the labeled routes in the BGP routing table.

Format

display bgp ipv6 routing-table label

display bgp ipv6 routing-table [ peer { ipv4-address | ipv6-address } { received-routes | advertised-routes } ] time-range start-time end-time

display bgp ipv6 routing-table route-filter route-filter-name

Parameters

Parameter Description Value
ipv6

Displays BGP4+ labeled routes.

-

peer ipv6-address

Specifies an IPv6 peer address.

The value is in the X:X:X:X:X:X:X:X format.

ipv4-address

Specifies an IPv4 peer address.

The value is in dotted decimal notation.

received-routes

Displays the BGP4+ public network routes received from the specified peer.

-

advertised-routes

Displays the BGP4+ public network routes advertised to a specified peer.

-

time-range start-time end-time

Displays BGP public network routes that flap within the specified 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 BGP 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.

The d indicates days. The value is an integer ranging from 0 to 10000.

The h indicates hours. The value is an integer ranging from 0 to 23.

The m indicates minutes. The value is an integer ranging from 0 to 59.

The s indicates seconds. The value is an integer ranging from 0 to 59.

route-filter route-filter-name

Specifies the route-filter used to filter routes.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To display BGP4+ public network routes, run display bgp ipv6 routing-table. To display the labeled routes in the BGP routing table, run display bgp ipv6 routing-table label.

Precautions

If you want to run the display bgp ipv6 routing-table route-filter command to check the result of BGP simulating route filtering based on a specified XPL route-filter, you need to run the xpl simulate enable command first.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display BGP4+ 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, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found

 *>i Network  : 2001:DB8:100::100                    PrefixLen : 128
     NextHop  : 2001:DB8:12::1                       Duration  : 0d05h46m16s
     Peer     : 2001:DB8:12::1
     Path/Ogn : ?
 * i
     NextHop  : 2001:DB8:112::1                      Duration  : 0d05h46m16s
     Peer     : 2001:DB8:112::1
     Path/Ogn : ?
 *>i Network  : 2001:DB8:111::111                    PrefixLen : 128
     NextHop  : 2001:DB8:12::1                       Duration  : 0d05h46m16s
     Peer     : 2001:DB8:12::1
     Path/Ogn : ?
 * i
     NextHop  : 2001:DB8:112::1                      Duration  : 0d05h46m16s
     Peer     : 2001:DB8:112::1
     Path/Ogn : ?
 *>i Network  : 2001:DB8:112::111                    PrefixLen : 128
     NextHop  : 2001:DB8:12::1                       Duration  : 0d05h46m16s
     Peer     : 2001:DB8:12::1
     Path/Ogn : ?
   i
     NextHop  : 2001:DB8:112::1                      Duration  : 0d05h46m16s
     Peer     : 2001:DB8:112::1
     Path/Ogn : ?
 *>i Network  : 2001:DB8:112::113                    PrefixLen : 128
     NextHop  : 2001:DB8:12::1                       Duration  : 0d05h46m16s
     Peer     : 2001:DB8:12::1
     Path/Ogn : ?
   i
     NextHop  : 2001:DB8:112::1                      Duration  : 0d05h46m17s
     Peer     : 2001:DB8:112::1
     Path/Ogn : ?
 *>i Network  : 2001:DB8:114::113                    PrefixLen : 128
     NextHop  : 2001:DB8:12::1                       Duration  : 0d05h46m17s
     Peer     : 2001:DB8:12::1
     Path/Ogn : ?
 * i
     NextHop  : 2001:DB8:112::1                      Duration  : 0d05h46m17s
     Peer     : 2001:DB8:112::1 
     Path/Ogn : ?
# Display the BGP routes whose prefixes match 2001:DB8:1::1/128 based on a route-filter.
<HUAWEI> display bgp ipv6 routing-table route-filter a

 BGP Local router ID is 2.2.2.2
 Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found


 Total Number of Routes: 1
 *>     Network  : 2001:DB8:1::1                            PrefixLen : 128
        NextHop  : ::                                       LocPrf    :
        MED      : 0                                        PrefVal   : 0
        Label    :
        Path/Ogn :  ?
# Display BGP4+ labeled routes.
<HUAWEI> display bgp ipv6 routing-table label
Total Number of Routes: 3

  Network              Prefix     NextHop           Label
  2001:DB8:1::4        128     ::FFFF:10.0.0.2      1024
  2001:DB8:1::5        128     ::FFFF:10.0.0.2      1025
  2001:DB8:1::6        128     ::FFFF:10.0.0.2      1026
Table 1 Description of the display bgp ipv6 routing-table command output
Item Description
BGP Local router ID is

Router ID of the local BGP device.

Network

Network address in the BGP4+ public network routing table.

PrefixLen

Prefix length.

NextHop

Next hop address of the packet.

Duration

Route duration.

Peer

IP addresses of the peer.

Path/Ogn

AS_Path and Origin.

LocPrf

Local preference.

MED

MED of the route.

PrefVal

PrefVal of a protocol.

Label

Tag Value.

Prefix

Addresss prefix.

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