Command Manual – IP Routing Overview
H3C S7500E Series Ethernet Switches
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
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
# 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
Routing Table : Public
Summary Count : 3
Destination/Mask
11.0.0.0/8
11.1.0.0/16
11.1.1.0/24
# Display route entries by specifying a destination IP address and mask and the
longer-match keyword.
<Sysname> display ip routing-table 11.1.1.1 24 longer-match
Routing Table : Public
Summary Count : 1
11.1.1.1
Proto
Pre
Cost
Static 60
0
Static 60
0
Static 60
0
Static 60
0
Proto
Pre
Cost
Static 60
0
11.1.1.1 24
Proto
Pre
Cost
Static 60
0
Static 60
0
Static 60
0
1-11
Chapter 1 Routing Overview Commands
NextHop
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
NextHop
0.0.0.0
NextHop
0.0.0.0
0.0.0.0
0.0.0.0
Interface
NULL0
NULL0
NULL0
NULL0
Interface
NULL0
Interface
NULL0
NULL0
NULL0