7
Usage guidelines
Executing the command with different parameters yields different outputs:
•
display ip routing-table
ip-address
:
{
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 an entry, the entry is displayed.
•
display ip routing-table
ip-address
mask
:
{
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 an entry and the entry has a subnet mask less than
or equal to 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 one with 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 and the entries have a mask less than
or equal to the entered subnet mask, the one 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