R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

11
3.3.3.0/24 Direct 0 0 3.3.3.1 Eth1/2
3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0
4.4.4.0/24 Direct 0 0 4.4.4.1 Eth1/1
4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0
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 [ 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
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: Specifies an IP prefix list by its name, a string of 1 to 19 characters.
verbose: Displays detailed information about both active and 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 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
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface