R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference

11
4.4.4.0/24 Direct 0 0 4.4.4.1 GE2/1/1
4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0
For command output, see Table 1.
display ip routing-table ip-prefix
Use display ip routing-table ip-prefix to display information about routes permitted by a specified prefix
list.
Syntax
display ip routing-table [ multiple-topology topology-name | vpn-instance vpn-instance-name ] ip-prefix
ip-prefix-name [ verbose ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to
31 characters.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. 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 information about all 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 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.
Usage guidelines
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