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

2
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.
verbose: Displays detailed routing table information about both active and inactive routes. With this
keyword 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 displays brief information about a routing table, with a routing entry contained in one line.
The information displayed includes destination IP address/mask length, protocol, priority, cost, next hop
and outgoing interface. This command displays only the optimal routes in use.
This command displays detailed information about all active and inactive routes, including the statistics
of the entire routing table and information for each route.
Examples
# Display brief information about active routes in the routing table.
<Sysname> display ip routing-table
Routing Tables: Public
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
1.1.2.0/24 Direct 0 0 1.1.2.1 Eth1/1
1.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 OSPF 10 2 1.1.2.2 Eth1/2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 Direct 0 0 192.168.0.1 VT1
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
Table 1 Command output
Field Description
Destinations Number of destination addresses.
Routes Number of routes.
Destination/Mask Destination address/mask length.
Proto Protocol that presents the route.
Pre Preference of the route.
Cost Cost of the route.
NextHop Address of the next hop on the route.