show ip interface

This topic explains the command that displays the Layer 3 routing interfaces, optionally for a single VLAN.

Syntax

show ip interface [vlan vlan-id]

Parameter

vlan vlan-id: As an option, specify the VLAN ID for which the Layer 3 routing interfaces must be displayed. The vlan-id parameter represents the VLAN ID.

Default

No default value.

Mode

User EXEC, Privileged EXEC

Usage

Use this command to show the L3 routing interfaces. As an option, you can specify a VLAN for which the routing interfaces must be displayed. If you do not specify a VLAN, all routing interfaces on the switch are displayed.

If the switch does not support static routing, or you did not configure any routing interfaces, the command does not work.

Example

This example shows how to display all routing interfaces:

CODE
Switch# show ip interface

IP Address         I/F        I/F Status Type    Status
                              admin/oper
------------------ ---------- ---------- ------- ------
192.168.1.1/24     VLAN 2     UP/DOWN    Static  Valid
192.168.2.1/24     VLAN 3     UP/DOWN    Static  Valid