Command Manual – IP Routing Overview
H3C S7500E Series Ethernet Switches
Chapter 1 Routing Overview Commands
1-10
mask-length
: IP address mask length in the range 0 to 32.
mask
: IP address mask in dotted decimal format.
longer-match
: Displays the route with the longest mask.
verbose
: Displays detailed routing table information, including that for inactive routes.
With this argument absent, the command displays only summary information about
active routes.
Description
Use the
display ip routing-table ip-address
command to
display information about
routes to a specified destination address.
Executing the command with different parameters yields different output:
z
display ip routing-table
ip-address
The system ANDs the input destination IP address with the subnet mask in each route
entry; and ANDs the destination IP address in each route entry with its corresponding
subnet mask.
If the two operations yield the same result for an entry and this entry is active, it is
displayed.
z
display ip routing-table
ip-address
mask
The system ANDs the input destination IP address with the input subnet mask; and
ANDs the destination IP address in each route entry with the input subnet mask.
If the two operations yield the same result for an entry and the entry is active with a
subnet mask less than or equal to the input subnet mask, the entry is displayed.
Only route entries that exactly match the input destination address and mask are
displayed.
z
display ip routing-table
ip-address
longer-match
The system ANDs the input destination IP address with the subnet mask in each route
entry; and ANDs the destination IP address in each route entry with its corresponding
subnet mask.
If the two operations yield the same result for multiple entries that are active, the one
with longest mask length is displayed.
z
display ip routing-table ip-address mask
longer-match
The system ANDs the input destination IP address with the input subnet mask; and
ANDs the destination IP address in each route entry with the input subnet mask.
If the two operations yield the same result for multiple entries with a mask less than or
equal to the input subnet mask, the one that is active with longest mask length is
displayed.