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 ]
display bgp multicast paths [ as-regular-expression ]
| Parameter | Description | Value |
|---|---|---|
as-regular-expression |
Displays the regular express of the matching AS_Path. |
The name is a string of 1 to 80 characters. |
vpnv4 |
Displays the path attributes of BGP Virtual Private Network version 4 (VPNv4). |
- |
all |
Displays the AS_Path of all routes. |
- |
vpn-instance vpn-instance-name |
Displays the AS_Path of the specified VPN 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. |
ipv6 |
Displays the path attributes of BGP4+ routes in the local BGP database. |
- |
vpnv6 |
Displays the path attributes of BGP Virtual Private Network version 6 (VPNv6). |
- |
multicast |
Displays the path attributes of Multicast BGP (MBGP).
|
- |
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.
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.
# Display information about BGP paths.
<sysname> display bgp paths
Total Number of Routes: 9
Total Number of Paths: 14
Address Refcount MED Path/Origin
0xFCB3E84 1 0 i
0xFCB44E4 1 0 65002i
0xFCB3EE4 1 0 i
0xFCB3FA4 1 0 65002i
0xFCB4124 2 0 ?
0xFCB4004 1 0 65002?
0xFCB4064 1 0 ?
0xFCB4424 1 0 65002?
0xFCB4244 1 0 ?
0xFCB4304 1 0 65002?
0xFCB4484 1 0 ?
0xFCB45A4 1 4589 ?
0xFCB41E4 1 4589 65002?
0xFCB40C4 1 0 ?
Item |
Description |
|---|---|
Address |
Address of the path attribute node in the local database in the hexadecimal format |
Refcount |
The count that the route has been referenced |
MED |
Multi-Exit discriminator |
Path |
List of AS_Path (s) through which the packet has to pass through |
Origin |
Origin of routes |
# Display information about BGP4+ paths.
<sysname> display bgp ipv6 paths
Total Number of Routes: 6
Total Number of Paths: 4
Address Refcount MED Path/Origin
0x41036F0 1 0 i
0x4103758 1 0 i
0x41037C0 1 0 i
0x41038F8 3 0 200i
# Display information about BGP4+ paths of VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 paths
Total number of routes of IPv6-family for vpn-instance vpn1: 2
Total Number of Paths: 3
Address Refcount MED Path/Origin
0xF9E4120 1 100?
0xF9E42EC 1 0 65410?
0xF9E40C4 1 0 ?
# Display the BGP4+ paths, including AS_Path 65420, of VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 paths 65420*
Total number of routes of IPv6-family for vpn-instance vpn1: 1
Address Refcount MED Path/Origin
0xF9E42EC 1 0 65420?
# Display the information about MBGP paths.
<sysname> display bgp multicast paths 1
Total Number of Routes: 17
Total Number of Paths: 1
Address Refcount MED Path/Origin
0x54169A4 17 0 1?