Command Manual – Routing Protocol
H3C S3100-52P Ethernet Switches Chapter 1 IP Routing Table Display Commands
1-3
Description
Use the display ip routing-table ip-address command to display the routing
information of the specified destination address.
With different arguments provided, the command output is different. The following is the
command output with different arguments provided:
z display ip routing-table ip-address
If the destination address ip-address corresponds to a route in the natural mask range,
this command displays the route that is the longest match of the destination address
ip-address and is active.
z display ip routing-table ip-address mask
This command only displays the routes exactly matching the specified destination
address and mask.
z display ip routing-table ip-address longer-match
This command displays all destination address routes matching the specified
destination address in the natural mask range.
z display ip routing-table ip-address mask longer-match
This command displays all destination address routes matching the specified
destination address in the specified mask range.
Example
# There is a corresponding route in the natural mask range. Display the summary.
<H3C> display ip routing-table 169.0.0.0
Destination/Mask Protocol Pre Cost Nexthop Interface
169.0.0.0/16 Static 60 0 2.1.1.1 LoopBack1
For detailed description of the output information, see Table 1-1.
# There is no corresponding route (only the longest matching route is displayed) in the
natural mask range. Display the summary.
<H3C> display ip routing-table 169.253.0.0
Destination/Mask Protocol Pre Cost Nexthop Interface
169.0.0.0/8 Static 60 0 2.1.1.1 LoopBack1
# There are corresponding routes in the natural mask range. Display detailed
information.
<H3C> display ip routing-table 169.0.0.0 verbose
Routing tables:
+ = Active Route, - = Last Active, # = Both * = Next hop in use
Summary count: 1
**Destination: 169.0.0.0 Mask: 255.255.255.0
Protocol: #STATIC Preference: 60