display bgp paths
Syntax
display bgp paths [ as-regular-expression | | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
as-regular-expression: AS path regular expression, a string of 1 to 80 characters.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display bgp paths to display information about BGP AS paths.
Examples
# Display information about BGP AS paths with AS number starting from 200.
<Sysname> display bgp paths ^200
Address
0x5917100
Table 44 Command output
Field
Address
Hash
Refcount
MED
Path
Origin
Hash
Refcount
11
1
Description
Route address in the local database, in dotted hexadecimal notation.
Hash index.
Count of routes that reference the path.
MED of the path.
AS_PATH attribute of the path, recording the ASs it has passed to avoid routing loops.
ORIGIN attribute of the path:
•
i—Indicates the route is interior to the AS.
•
Summary routes and routes defined using the network command are considered
IGP routes.
•
e—Indicates that a route is learned from the exterior gateway protocol (EGP).
•
?—Short for INCOMPLETE. It indicates that the origin of a route is unknown and
the route is learned by other means.
MED
Path/Origin
0
200 300i
201