Reference Guide
show ip route
View information, including how they were learned, about the IP routes on the switch.
S4820T
Syntax
show ip route [vrf vrf-name] hostname | ip-address [mask] 
[longer-prefixes] | list prefix-list | protocol [process-id | 
routing-tag] | all | connected | static | summary]
Parameters
vrf vrf-name (OPTIONAL) Enter the keyword vrf and then the name of 
the VRF to enable BGPv4 multicast mode for that VRF.
ip-address (OPTIONAL) Specify a name of a device or the IP address of 
the device to view more detailed information about the 
route.
mask (OPTIONAL) Specify the network mask of the route. Use this 
parameter with the IP address parameter.
longer-prefixes (OPTIONAL) Enter the keywords longer-prefixes to view 
all routes with a common prefix.
list prefix-list (OPTIONAL) Enter the keyword list and the name of a 
configured prefix list. For more information, refer to the 
show ip route list command.
protocol (OPTIONAL) Enter the name of a routing protocol (bgp, 
isis, ospf, rip) or the keywords connected or static.
NOTE: bgp, isis, ospf, and rip.
• If you enter bgp, you can include the BGP as-number .
• If you enter isis, you can include the ISIS routing-
tag.
• If you enter ospf, you can include the OSPF process-
id.
process-id (OPTIONAL) Specify that only OSPF routes with a certain 
process ID must be displayed.
routing-tag (OPTIONAL) Specify that only ISIS routes with a certain 
routing tag must be displayed.
connected (OPTIONAL) Enter the keyword connected to view only the 
directly connected routes.
all (OPTIONAL) Enter the keyword all to view both active and 
non-active routes.
static (OPTIONAL) Enter the keyword static to view only routes 
the ip route command configures.
summary (OPTIONAL) Enter the keyword summary. For more 
information, refer to the show ip route summary command.
898
IPv4 Routing










