Viewing VLAN configuration information

Prerequisites
At least one defined VLAN.
Procedure
  1. View a summary of VLAN configuration information with the command show vlan summary.
  2. View VLAN configuration settings with the command show vlan.
  3. View VLANs configured for a specific layer 2 interface with the command show vlan port.
  4. View the commands used to configure VLAN settings with the command show running-config interface.

Example

This example displays a summary of all VLANs.

switch# show vlan summary

Number of existing VLANs: 11
Number of static VLANs:   11
Number of dynamic VLANs:  0

This example displays configuration information for all defined VLANs.

switch# show vlan

-----------------------------------------------------------------------------------
VLAN  Name             Status  Reason          Type      Interfaces
-----------------------------------------------------------------------------------
1     DEFAULT_VLAN_1     up      ok              static    1/1/3-1/1/4
2     UserVLAN1          up      ok              static    1/1/1,1/1/3,1/1/5
3     UserVLAN2          up      ok              static    1/1/2-1/1/3,1/1/5-1/1/6
5     UserVLAN3          up      ok              static    1/1/3
10    TestNetwork        up      ok              static    1/1/3,1/1/5
11    VLAN11             up      ok              static    1/1/3
12    VLAN12             up      ok              static    1/1/3,1/1/6,lag1-lag2
13    VLAN13             up      ok              static    1/1/3,1/1/6
14    VLAN14             up      ok              static    1/1/3,1/1/6
20    ManagementVLAN     down    admin_down      static    1/1/3,1/1/10

This example displays configuration information for VLAN 2.

switch# show vlan 2
-----------------------------------------------------------------------------------
VLAN  Name                     Status  Reason          Type      Interfaces
-----------------------------------------------------------------------------------
2     UserVLAN1                up      ok              static    1/1/1,1/1/3,1/1/5

This example displays the VLANs configured on interface 1/1/3.

switch# show vlan port 1/1/3
------------------------------------------------------
VLAN  Name                            Mode
------------------------------------------------------
1     DEFAULT_VLAN_1                  native-untagged
2     UserVLAN1                       trunk
3     UserVLAN2                       trunk
5     UserVLAN3                       trunk
10    TestNetwork                     trunk
11    VLAN11                          trunk
12    VLAN12                          trunk
13    VLAN13                          trunk
14    VLAN14                          trunk
20    ManagementVLAN                  trunk

This example displays VLAN configuration commands for interface 1/1/16.

switch#  show running-config interface 1/1/16
interface 1/1/16
   no routing
   vlan trunk native 108
   vlan trunk allowed all
   exit