Use the show vlan command to display VLAN information.
show vlan [vlan] [trunk | notrunk]
Syntax Description
vlan (Optional) Number of the VLAN. If the VLAN number is not specified, all VLANs are displayed. trunk (Optional) Keyword that forces the display to show information only on trunk ports. notrunk (Optional) Keyword that forces the display to show information only on nontrunk ports. Default
This command has no default setting.
Command Type
Switch command.
Command Mode
Normal.
Usage Guideline
Each Ethernet switch port and Ethernet repeater group belong to only one VLAN. Trunk, FDDI/CDDI, and ATM ports can be on multiple VLANs.
Example
This example shows how to display information for all VLANs:Console> show vlan VLAN Name Status Mod/Ports, Vlans ---- -------------------------------- --------- ---------------------------- 1 default active 1/2 2/1-48 10 ether-test suspend 901 ether-test2 suspend 999 brf-999 suspend 1002 fddi-default active 1003 token-ring-default active 3/7-8,3/10-16 1004 fddinet-default active 1005 trnet-default active 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>Table 6-45 describes the fields in the show vlan command output.
Table 6-45: 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). 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 1 through 13; the default is 7. STEHops Maximum number of hops for Spanning-Tree Explorer frames. Possible values are 1 through 13; the default is 7. Backup CRF Status of whether the TrCRF is a backup path for traffic. Related Commands
set trunk
set vlan
show trunk