show interface vlan

To display brief descriptive information about specified VLANs, use the show interface vlan command.

show interface vlan vlan-id [brief | private-vlan mapping]

Syntax Description

vlan-id

Number of the VLAN. The range is from 1 to 4094.

brief

(Optional) Displays a summary information for the specified VLAN.

private-vlan mapping

(Optional) Displays the private VLAN mapping information, if any, for the specified VLAN.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Usage Guidelines

You must enable interface VLANs by using the feature interface-vlan command. The commands for configuring interface VLANs are not visible until you enable this feature.

This command displays descriptive information for the specified VLAN, including private VLANs.

The switch displays output for the show interface vlan vlan-id private-vlan mapping command only when you specify a primary private VLAN. If you specify a secondary private VLAN, the output is blank.

Examples

This example shows how to display information about the specified VLAN:

switch# show interface vlan 10 
Vlan10 is up, line protocol is up
  Hardware is EtherSVI, address is  0005.9b78.6e7c
  MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

switch#

This example shows how to display a brief description for the specified VLAN:

switch# show interface vlan 10 brief 

-------------------------------------------------------------------------
Interface Secondary VLAN(Type)                    Status Reason
-------------------------------------------------------------------------
Vlan10    --                                      up     --
switch#

This example shows how to display the private VLAN mapping information, if any, for the VLAN:

switch# show interface vlan 10 private-vlan mapping 

When you specify a primary VLAN, the switch displays all secondary VLANs mapped to that primary VLAN.

Related Commands

Command
Description

show interface switchport

Displays information about the ports, including those in private VLANs.

show vlan

Displays summary information for all VLANs.

show vlan private-vlan

Displays summary information for all private VLANs.