9
If the two operations yield the same result for an entry with a subnet mask not greater than the
entered subnet mask, the entry is displayed.
•
display ip routing-table
ip-address
longer-match
:
{
The system ANDs the entered destination IP address with the subnet mask in each active route
entry.
{
The system ANDs the destination IP address in each active route entry with its own subnet mask.
If the two operations yield the same result for multiple entries, the entry with the longest mask length
is displayed.
•
display ip routing-table
ip-address mask
longer-match
:
{
The system ANDs the entered destination IP address with the entered subnet mask.
{
The system ANDs the destination IP address in each active route entry with the entered subnet
mask.
If the two operations yield the same result for multiple entries with a mask not greater than the
entered subnet mask, the entry with the longest mask length is displayed.
•
display ip routing-table
ip-address1
to
ip-address2
:
The system displays active route entries with destinations in the range of
ip-address1
/32 to
ip-address2
/32.
Examples
# Display brief information about the routes to the destination IP address 11.0.0.1.
<Sysname> display ip routing-table 11.0.0.1
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
11.0.0.0/24 Static 60 0 0.0.0.0 NULL0
# Display brief information about the routes to the destination IP address 11.0.0.1 and mask length 20.
<Sysname> display ip routing-table 11.0.0.1 20
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
# Display brief information about the most specific route to the destination address 11.0.0.1.
<Sysname> display ip routing-table 11.0.0.1 longer-match
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/24 Static 60 0 0.0.0.0 NULL0
# Display brief information about the most specific route to the destination IP address 11.0.0.1 and mask
length 20.
<Sysname> display ip routing-table 11.0.0.1 20 longer-match