Viewing VLAN information (CLI)

Show command

Output

show vlan
Lists:
  • Maximum number of VLANs to support

  • Existing VLANs

  • Status (static or dynamic)

  • Primary VLAN

show vlan <vlan-id>
For the specified VLAN, lists:
  • Name, VID, and status (static/dynamic)

  • Per-port mode (tagged, untagged, forbid, no/auto)

  • "Unknown VLAN" setting (Learn, Block, Disable)

  • Port status (up/down)

Example:

Suppose that your switch has the following VLANs:

Ports VLAN VID

A1-A12

DEFAULT_VLAN

1

A1, A2

VLAN-33

33

A3, A4

VLAN-44

44

The next three examples show how you could list data on the above VLANs.

Listing the VLAN ID (vid) and status for specific ports

Switch# show vlan ports A1-A2

 Status and Counters = VLAN Information - for ports A1,A2

  802.1Q VLAN ID Name         Status
  -------------- ------------ ------
  1              DEFAULT_VLAN Static
  33             VLAN-33      Static

Note: Because ports A1 and A2 are not members of VLAN-44, it does not appear in this listing.

VLAN listing for the entire switch

Switch# show vlan
 Status and Counters = VLAN Information

 VLAN support : Yes
 Maximum VLANs to support : 9
 Primary VLAN: DEFAULT_VLAN

 802.1Q VLAN ID Name         Status
 -------------- ------------ ------
 1              DEFAULT_VLAN Static
 33             VLAN-33      Static
 44             VLAN-44      Static

Port listing for an individual VLAN

switch(config)# show vlan 1
 
 Status and Counters - VLAN Information - VLAN 1

  VLAN ID : 1
  Name : DEFAULT_VLAN
  Status : Static
  Voice : Yes
  Jumbo : No

  Port Information Mode     Unknown VLAN Status
  ---------------- -------- ------------ ------
  A1               Untagged Learn        Up
  A2               Untagged Learn        Up
  A3               Untagged Learn        Up
  A4               Untagged Learn        Down
  A5               Untagged Learn        Up
  A6               Untagged Learn        Up
  A7               Untagged Learn        Up