User Manual

Table Of Contents
NETGEAR M4500 Series Switches CLI Command Reference Manual 648
6.2.1.6. 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 <longer-prefixes> 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, bgp, ospf, static, or kernel. 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 static as
<protocol>, a description option can be used to show the description of the static 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.
Format show ip route [vrf <vrf-name>] [{<ip-address> [<protocol>] | {<ip-address> <mask> [longer-prefixes]
[<protocol>] | <protocol>} [all] | all}]
Default None
Mode Privileged EXEC
Display Message
!
Fields
Definition
Route Codes
Displays the key for the routing protocol codes that might appear in the routing
table output.
Route Codes:
R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer
L - Leaked Route, K - Kernel, D - Database Route
State
Indicate the operational state of the routing interface.
IP Address
The IP address of the routing interface.
IP Mask
The IP mask of the routing interface.
Method
Is the way to get the IP Address. The possible value is “Manual”, “DHCP” or
“None”.
Netdir Bcast
Indicates if IP forwards net-directed broadcasts on this interface. Possible values
are Enable or Disable.