HP VPN Firewall Appliances Network Management Command Reference
464
display bgp routing-table
Use display bgp routing-table to display specified BGP routing information in the BGP routing table.
Syntax
display bgp routing-table [ ip-address [ { mask | mask-length } [ longer-prefixes ] ] ] [ | { begin | exclude
| include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
ip-address: Specifies a destination IP address.
mask: Specifies a network mask, in dotted decimal notation.
mask-length: Specifies a mask length, in the range of 0 to 32.
longer-prefixes: Displays the routing entries selected through the following steps:
1. AND the specified destination IP address with the specified mask.
2. AND the destination IP address of each route with the specified mask.
3. Find the calculation results of 2 that match the result of 1 and display the rou
te with the longest
mask among the matching routes that have a mask shorter than or equal to the specified mask.
|: Filter
s command output by specifying a regular expression. For more information about regular
expressions, see Getting Started 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.
Examples
# Display BGP routing table information.
<Sysname> display bgp routing-table
Total Number of Routes: 1
BGP Local router ID is 10.10.10.1
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? – incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 40.40.40.0/24 20.20.20.1 0 0 200 300i