R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
491
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies a VPN. vpn-instance-name is a case-sensitive string of 1 to 31
characters. If no VPN is specified, the information of the public network is displayed.
ip-prefix-name: IP prefix list name, a string of 1 to 19 characters.
verbose: Displays detailed routing table information, including inactive routes. With this argument
absent, the command displays only brief information about active routes.
|: Filters 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.
Description
Use display ip routing-table ip-prefix to display information about routes permitted by a specified prefix
list.
This command is usually used together with routing policy display commands. If the specified prefix list
is not configured, detailed information about all routes (with the verbose keyword) or brief information
about all active routes (without the verbose keyword) is displayed.
Examples
# Configure a prefix list named test, permitting routes with a prefix of 2.2.2.0 and a mask length between
24 and 32.
<Sysname> system-view
[Sysname] ip ip-prefix test permit 2.2.2.0 24 less-equal 32
# Display brief information about active routes permitted by the prefix list test.
[Sysname] display ip routing-table ip-prefix test
Routes Matched by Prefix list : test
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
2.2.2.1/32 Direct 0 0 127.0.0.1 InLoop0
For description of the output, see Table 103.
# Display detailed information about both active and inactive routes permitted by IP prefix list test.
[Sysname] display ip routing-table ip-prefix test verbose
Routes Matched by Prefix list test :
Summary Count : 2
Destination: 2.2.2.0/24
Protocol: Direct Process ID: 0