H3C S5120-SI Series Command Reference Manual page 339

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

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.
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.
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.
Use the display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask }
command to display route entries with destination addresses within a specified range.
Examples
# Display route entries for the destination IP address 11.1.1.1.
[Sysname] display ip routing-table 11.1.1.1
Routing Table : Public
Summary Count : 4
Destination/Mask
0.0.0.0/0
11.0.0.0/8
11.1.0.0/16
11.1.1.0/24
For detailed description about the output, see
# Display route entries by specifying a destination IP address and the longer-match keyword.
[Sysname] display ip routing-table 11.1.1.1 longer-match
Routing Table : Public
Summary Count : 1
Destination/Mask
11.1.1.0/24
# Display route entries by specifying a destination IP address and mask.
[Sysname] display ip routing-table 11.1.1.1 24
Routing Table : Public
Summary Count : 3
Proto
Pre
Cost
Static 60
0
Static 60
0
Static 60
0
Static 60
0
Table
Proto
Pre
Cost
Static 60
0
1-8
NextHop
Interface
0.0.0.0
NULL0
0.0.0.0
NULL0
0.0.0.0
NULL0
0.0.0.0
NULL0
1-1.
NextHop
Interface
0.0.0.0
NULL0

Advertisement

Table of Contents
loading

Table of Contents