display bgp instance vpnv4 routing-table (time-range/label)

Function

The display bgp instance vpnv4 all routing-table time-range command displays information about BGP VPNv4 routes.

Format

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

display bgp instance instance-name vpnv4 route-distinguisher route-distinguisher routing-table label

Parameters

Parameter Description Value
all

Displays all BGP VPNv4 routes.

-

peer ipv4-address

Specify an IPv4 peer address.

It is in dotted decimal notation.

received-routes

Displays the routes learned from a specified peer.

-

advertised-routes

Displays the routes advertised to a specified peer.

-

time-range start-time

Displays BGP VPNv4 routes that flap within the specified period. Starting time (<0-10000>d<0-23>h<0-59>m<0-59>s).

The value is an integer ranging from 0 to 4294967295.

time-range end-time

Displays BGP VPNv4 routes that flap within the specified period. Ending time (<0-10000>d<0-23>h<0-59>m<0-59>s).

The value is an integer ranging from 0 to 4294967295.

instance instance-name

Specifies a BGP multi-instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

route-distinguisher route-distinguisher

Displays BGP routes of the specified Route Distinguisher (RD).

The RD formats are divided into the following types:

  • 2-byte AS number:4-byte user-defined number, for example, 101:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0.
  • 4-byte AS number in dotted notation is in the format of x.y, wherex and y are integers that range from 0 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.
  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.
label

Labeled route information.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

The display bgp instance vpnv4 all routing-table time-range command displays information about BGP VPNv4 routes.

If service traffic is abnormal or CPU usage of the device remains high within a period, you can run this command to check whether route flapping occurs within the specified period. The faulty route can be viewed in the command output, facilitating fault location.

Example

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

# Display BGP instance VPNv4 routes that flap within the specified period.
<HUAWEI> display bgp instance aaa vpnv4 all routing-table time-range 0d0h5m0s 0d8h0m3s
 BGP Local router ID is 192.168.1.1
 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
 Route Distinguisher: 4:4
        Network            NextHop         Peer            Duration              Path/Ogn
 *>   2.2.2.0/24         0.0.0.0            0.0.0.0         0d06h17m08s      ?
 *>   7.7.7.7/32         0.0.0.0            0.0.0.0         0d06h17m08s      ?
 VPN-Instance vrf4, Router ID 192.168.1.1
:
        Network            NextHop         Peer            Duration              Path/Ogn
 *>   2.2.2.0/24         0.0.0.0            0.0.0.0         0d06h17m08s      ?
 *>   7.7.7.7/32         0.0.0.0            0.0.0.0         0d06h17m08s      ?
Table 1 Description of the display bgp instance vpnv4 routing-table (time-range/label) command output
Item Description
BGP Local router ID

Router ID of the local device, in the format of an IPv4 address.

Route Distinguisher

Route distinguisher (RD) of a route.

Network

Network address in the BGP routing table.

NextHop

IP address of the reachable next hop.

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