show ip route

This topic explains the command that displays the route entries on the switch.

Syntax

show ip route

Parameter

None

Default

No default value.

Mode

User EXEC, Privileged EXEC

Usage

Use this command to show the route entries on the switch. If the switch does not support static routing, the command does not work.

Example

This example shows how to display the route entries on the switch:

CODE
Switch# show ip route

Codes: > - best, C - connected, S - static

C>  192.168.0.0/24 is directly connected, MGMT VLAN