To display routing information, use the show routing command.
show routing [ip | ipv4] [address | hostname | prefix | route-type | clients | hidden-nh interface type number | next-hop addr | recursive-next-hop [addr]] [vrf vrf-name]
address |
(Optional) IPv4 address. IPv4 address format is x.x.x.x. |
hostname |
Hostname. The name can be any case-sensitive, alphanumeric string up to 80 characters. |
prefix |
(Optional) IPv4 prefix. IPv4 prefix format is x.x.x.x/length. |
route-type |
(Optional) Type of route. Use ? to see the list of types. |
clients |
(Optional) Displays the routing clients. |
hidden-nh |
(Optional) Displays hidden next-hop information. |
interface type number |
(Optional) Displays the routes for an interface. The interface can be one of the following: • • |
next-hop addr |
(Optional) Displays routes with this next-hop address. The format is x.x.x.x. |
recursive next-hop addr |
(Optional) Displays routes with this recursive next-hop address. The format is x.x.x.x. |
vrf vrf-name |
(Optional) Specifies the virtual router context (VRF) name. The VRF can be one of the following: • • • • |
None
Any command mode
Release |
Modification |
5.0(3)N1(1) |
This command was introduced. |
This example shows how to display the route table:
switch(config)# show ip routing
Command |
Description |
---|---|
clear ip route |
Clears entries in the route table. |