![Quanta Computer T1048-LB9 Use Manual Download Page 683](http://html1.mh-extra.com/html/quanta-computer/t1048-lb9/t1048-lb9_use-manual_770078683.webp)
UANTA COMPUTER INC.
Layer 2/3/4 Managed Switch
_____________________________________________________________________________
LB9
User’s Guide 683/1523
7.2.1.4
show ip route
This command displays the routing table. The <ip-address> specifies the network for which the route is
to be displayed and displays the best matching best-route for the address. The <mask> specifies the
subnet mask for the given <ip-address>. When you use the longerprefixes keyword, the <ip-address>
and <mask> pair becomes the prefix, and the command displays the routes to the addresses that match
that prefix. Use the
<protocol>
parameter to specify the protocol that installed the routes. The value for
<protocol>
can be
connected, ospf, rip, or static
. Use the all parameter to display all routes including
best and nonbest routes. If you do not use the all parameter, the command only displays the best route.
!
If you use the connected keyword for
<protocol>
, the all option is not available because
there are no best or non-best connected routes.
Syntax
show ip route [{<ip-address> [<protocol>] | {<ip-address> <mask> [longer-prefixes] [<protocol>] |
<protocol>} [all] | all}]
Default Setting
None
Command Mode
Privileged Exec
Display Message
Route Codes:
Displays the key for the routing protocol codes that might appear in the routing table
output.
The command displays the routing tables in the following format:
Code IP-Address/Mask [Preference/Metric] via Next-Hop, Interface
Code:
The codes for the routing protocols that created the routes.
IP-Address/Mask:
The IP-Address and mask of the destination network corresponding to this route.
Preference:
The administrative distance associated with this route. Routes with low values are
preferred over routes with higher values.
Metric:
The cost associated with this route.
via Next-Hop:
The outgoing router IP address to use when forwarding traffic to the next router (if
any) in the path toward the destination
Interface:
The outgoing router interface to use when forwarding traffic to the next destination