Command:

show vlan

Mode:

Switch> (enable)


Syntax:

show vlan [trunk]

show vlan vlan [notrunk]

show vlan mapping

show vlan type


Syntax Description:

trunk

(Optional) Keyword that specifies to force the display to show information only on trunk ports.

vlan

Variable that specifies the number of the VLAN. If the VLAN number is not specified, all VLANs are displayed.

notrunk

(Optional) Keyword that specifies to force the display to show information only on nontrunk ports.

mapping

Keyword to display VLAN mapping table information.

type

Variable that specifies the type of VLAN. Valid values are Ethernet, FDDI, and FDDInet.

 


Command Description:
Use the show vlan command to display VLAN information. Each Ethernet switch port and Ethernet repeater group belong to only one VLAN. Trunk, FDDI/CDDI, and ATM ports can exist on multiple VLANs.


Examples:

This example shows how to display information for all VLANs:

Console> show vlan

VLAN Name                             Status    IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
1    default                          active    5       1/2
                                                        6/1-48
                                                        7/2-24
2    VLAN0002                         active    339
5    VLAN0005                         active    342
50   VLAN0050                         active    346
100  VLAN0100                         active    347
152  VLAN0152                         active    348
200  VLAN0200                         active    349
300  VLAN0300                         active    350
305  VLAN0305                         active    354
801  VLAN0801                         active    338     338     802
VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
1    enet  100001     1500  -      -      -      -    -        0      0
10   enet  100010     1500  -      -      -      -    -        0      0
901  enet  100901     1500  -      -      -      -    -        0      0
999  trbrf 100999     4472  -      -      0xe    ieee -        0      0
1002 fddi  101002     1500  -      0x0    -      -    -        0      0
1003 trcrf 101003     1500  0      0x0    -      -    -        0      0
1004 fdnet 101004     1500  -      -      0x0    ieee -        0      0
1005 trbrf 101005     1500  -      -      0x0    ibm  -        0      0

VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
1003 7       7       off
Console>
 

This example shows how to display information for all VLAN trunks:

Console> show vlan trunk

VLAN Name                             Status    IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
1    default                          active    5       2/1-2
                                                        6/4-8
10   VLAN0010                         active    18      6/1,6/3
11   VLAN0011                         active    19      6/2
20   VLAN0020                         active    20
21   VLAN0021                         active    21
30   VLAN0030                         active    22
31   VLAN0031                         active    23
1002 fddi-default                     active    6
1003 token-ring-default               active    9
1004 fddinet-default                  active    7
1005 trnet-default                    active    8       8

VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
1    enet  100001     1500  -      -      -      -    -        0      0
10   enet  100010     1500  -      -      -      -    -        0      0
11   enet  100011     1500  -      -      -      -    -        0      0
20   enet  100020     1500  -      -      -      -    -        0      0
21   enet  100021     1500  -      -      -      -    -        0      0
30   enet  100030     1500  -      -      -      -    -        0      0
31   enet  100031     1500  -      -      -      -    -        0      0
1002 fddi  101002     1500  -      -      -      -    -        0      0
1003 trcrf 101003     1500  0      0x0    -      -    -        0      0
1004 fdnet 101004     1500  -      -      0x0    ieee -        0      0
1005 trbrf 101005     1500  -      -      0x0    ibm  -        0      0


VLAN Inst DynCreated  RSPAN
---- ---- ---------- --------
1    1    static     disabled
10        static     disabled
11        static     disabled
20        static     disabled
21        static     disabled
30        static     disabled
31        static     disabled
1002 -    static     disabled
1003 1    static     disabled
1004 2    static     disabled
1005 -    static     disabled


VLAN AREHops STEHops Backup CRF 1q VLAN
---- ------- ------- ---------- -------
1003 7       7       off


Primary Secondary Secondary-Type Ports
------- --------- -------------- ------------
10      20        isolated       6/1,6/3
11      21        isolated       6/2
30      -         -
-       31        isolated
 

This example shows how to display the VLAN mapping table information:

Console> show vlan mapping

802.1q vlan     ISL vlan        Effective

------------------------------------------

3000            300             true

Console>

 

This example shows how to display information for a specific VLAN and type:

Console> show vlan 2 fddi

VLAN Name                             Status    IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
1002 fddi-default                     active    6


VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
2    fddi  101002     1500  -      -      -      -    -        0      0

VLAN Inst DynCreated  RSPAN
---- ---- ---------- --------
2    -    static     disabled
Console>
 

This example shows how to display information for nontrunk ports only on a specific VLAN:

Console> (enable) show vlan 2 notrunk

VLAN Name                             Status    IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
2    VLAN0002                         active    60


VLAN Type  SAID       MTU   Parent RingNo BrdgNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
2    enet  100002     1500  -      -      -      -    -        0      0


VLAN Inst DynCreated  RSPAN
---- ---- ---------- --------
2    -    static     disabled


VLAN AREHops STEHops Backup CRF 1q VLAN
---- ------- ------- ---------- -------

Console>
 

The table below describes the fields in the show vlan command output.

Table: show vlan Command Output Fields

Field Description

VLAN

VLAN number

Name

Name, if configured, of the VLAN

Status

Status of the VLAN (active or suspend)

IfIndex

Interface Index, assigned by SNMP

Mod/Ports, VLANs

Ports that belong to the VLAN

Type

Media type of the VLAN

SAID

Security association ID value for the VLAN

MTU

Maximum transmission unit size for the VLAN

Parent

Parent VLAN, if one exists

RingNo

Ring number for the VLAN, if applicable

BrdgNo

Bridge number for the VLAN, if applicable

Stp

Spanning-Tree Protocol type used on the VLAN

BrdgMode

Bridging mode for this VLAN. Possible values are SRB and SRT; the default is SRB.

Trans1

First translational VLAN used to translate FDDI or Token Ring to Ethernet

Trans2

Second translational VLAN used to translate FDDI or Token Ring to Ethernet

AREHops

Maximum number of hops for All-Routes Explorer frames. Possible values are from 1 through 13; the default is 7.

STEHops

Maximum number of hops for Spanning-Tree Explorer frames. Possible values are from 1 through 13; the default is 7.

Backup CRF

Status of whether the TrCRF is a backup path for traffic


Misconceptions:
None

Related commands:
set trunk
set vlan
show trunk

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)