show routing

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]

Syntax Description

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:

•mgmt—Management interface. The default management interface is 0.

•vlan—VLAN interface. The VLAN interface number is from 1 to 4094.

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:

•vrf-name—VRF name. The name can be any case-sensitive, alphanumeric string up to 32 characters.

•all—Specifies all VRFs.

•default—Specifies the default VRF.

•management—Specifies the management VRF.


Command Default

None

Command Modes

Any command mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Examples

This example shows how to display the route table:

switch(config)# show ip routing

Related Commands

Command
Description

clear ip route

Clears entries in the route table.