3Com 4500 26-PORT Switch User Manual


 
140 CHAPTER 6: USING ROUTING PROTOCOL COMMANDS
View
All views
Parameters
ip_address Enter the destination IP address.
mask Enter either the IP subnet mask (in x.x.x.x format), or the subnet mask length
(in the range 0 to 32). Optional.
longer-match Enter to display an address route that matches the destination IP
address in natural mask range. Optional.
verbose Enter to display verbose information about both active and inactive
routes. Without this parameter, this command only displays a summary of active
routes. Optional.
Description
Use the display ip routing-table ip_address command to view routing
information for a specific IP address, and you can also choose the type of
information to display. If the destination address,
ip_address, has a
corresponding route in natural mask range, this command will display all subnet
routes or only the route best matching the destination address,
ip_address, is
displayed. And only the active matching route is displayed.
Use the display ip routing-table ip_address mask command to display the
route that matches the specified IP destination address and subnet mask.
Use the display ip routing-table ip_address longer-match command to
display all destination address routes that match destination IP addresses in natural
mask range.
Use the display ip routing-table ip_address verbose command to display
verbose information about both active and inactive routes.
Example
There is corresponding route in natural mask range. Display the summary.
<4500>display ip routing-table 169.0.0.0
Destination/Mask Proto Pre Cost Nexthop Interface
169.0.0.0/16 Static 60 0 2.1.1.1 LoopBack1
There are corresponding routes in the natural mask range. Display the detailed
information.
<4500>display ip routing-table 169.0.0.0 verbose
Routing tables:
+ = Active Route, - = Last Active, # = Both* = Next hop in use
Summary count:2
**Destination: 169.0.0.0 Mask: 255.255.255.0
Protocol: STATIC Preference: 60
*NextHop: 2.1.1.1 Interface: 2.1.1.1(LoopBack1)
Vlinkindex: 0
State: <Int ActiveU Gateway Static Unicast>
Age: 3:47 Cost: 0/0
**Destination: 169.0.0.0 Mask: 255.254.0.0