1-2
Description
Use the display ip routing-table command to display the summary information about the routing table.
This command displays the summary information about a routing table, with the items of a routing entry
contained in one line. The information displayed includes destination IP address/mask length, protocol,
preference, cost, next hop and outbound interface.
The display ip routing-table command only displays the routes currently in use, that is, the optimal
routes.
Example
# Display the summary information about the routing table.
<Sysname> display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost Nexthop Interface
127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0
Table 1-1 Description on the fields of the display ip routing-table command
Field Description
Destination/Mask Destination IP address/mask length
Protocol Routing protocol that discovers the route
Pre Route preference
Cost Route cost
Nexthop Next hop IP address of the route
Interface
Outbound interface, through which packets destined for the destination
network segment are to be transmitted
display ip routing-table acl
Syntax
display ip routing-table acl acl-number [ verbose ]
View
Any view
Parameter
acl-number: Number of a basic access control list (ACL), in the range of 2000 to 2999.
verbose: Displays the detailed information about the active and inactive routes that match the specified
ACL. If you do not specify this keyword, only the summary information about the active routes matching
the specified ACL is displayed.
Description
Use the display ip routing-table acl command to display the routes that match a specified basic ACL.