< Home

display bgp paths

Function

The display bgp paths command displays the AS_Path information of BGP routes.

Format

display bgp paths [ as-regular-expression ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } paths [ as-regular-expression ]

display bgp ipv6 paths [ as-regular-expression ]

display bgp vpnv6 { all | vpn-instance vpn-instance-name } paths [ as-regular-expression ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

Parameters

Parameter Description Value

as-regular-expression

Specifies the regular expression used to match the AS_Path information.

The name is a string of 1 to 80 characters.

vpnv4

Displays the AS_Path information of the routes of a VPNv4 instance.

-

vpnv6

Displays the AS_Path information of the routes of a VPNv6 instance.

-

all

Displays the AS_Path information of all VPNv4 routes.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value must be an existing VPN instance name.

ipv6

Displays the path attributes of IPv6-BGP routes in the local BGP database.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bgp paths command displays the path attributes of BGP stored in the system.

BGP usually has a large number of path attributes. The display bgp paths command displays a lot of BGP path information for viewing. After configuring as-regular-expression, the display bgp paths command displays only the path attributes of BGP that match as-regular-expression. For details on a regular expression, see Filtering Output Information Based on the Regular Expression in "CLI Overview" in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - Basic Configuration.

Precautions

BGP has a number of address families and the path attributes of BGP in each address family is stored independently. By default, the display bgp paths command displays only the path attributes of BGP in the IPv4 unicast address family. The path attributes of BGP in other address families can be displayed by specifying address family parameters.

Example

# Display the AS_Path information.

<HUAWEI> display bgp paths
                                                                                
 Total number of routes of IPv4-family for vpn-instance _public_: 6             
 Total Number of Paths: 1                                                       
                                                                                
 Address            Refcount         MED  Path/Origin                           
 1282430404                6           0  N?                                    
Table 1 Description of the display bgp paths command output

Item

Description

Address

Indicates the address of the route in the local database, in hexadecimal notation.

Refcount

Indicates the number of times that the route is referenced.

MED

Indicates the MED of the route.

Path

Indicates the list of ASs through which the packet has to pass through.

Origin

Indicates the origin of the route.

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