146
C
6: U
HAPTER
SING
Routing Table Display
Commands
display ip routing-table
R
P
C
OUTING
ROTOCOL
OMMANDS
if-match tag
■
ip ip-prefix
■
route-policy
■
Route Capacity Configuration Commands
display memory
■
display memory limit
■
memory auto-establish disable
■
memory auto-establish enable
■
memory { safety | limit }
■
This section describes the commands you can use to display routing table
information.
When the Switch runs a routing protocol, it is able to perform the functions of a
router. The term router in this section can refer either to a physical router, or to the
Switch running a routing protocol.
Syntax
display ip routing-table
View
All views
Parameter
None
Description
Use the
display ip routing-table
table information
Each line in the table represents one route. The displayed information includes
destination address/mask length, protocol, preference, cost, next hop and output
interface.
Only the currently used route, that is the best route, is displayed.
Example
To view a summary of routing table information, enter the following:
<SW5500>display ip routing-table
The information displays in the following format:
Routing Table: public net
Destination/Mask Proto
1.1.1.0/24
1.1.1.1/32
2.2.2.0/24
2.2.2.1/32
command to view a summary of routing
Pre Cost
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
DIRECT
0
0
Nexthop
Interface
1.1.1.1
Vlan-interface1
127.0.0.1
InLoopBack0
2.2.2.1
Vlan-interface2
127.0.0.1
InLoopBack0