32
488
32.2
vlan
Use the vlan VLAN Configuration mode command to create a VLAN. Use the no
form of this command to delete the VLAN(s).
To assign the VLAN a name, use the Interface Configuration (VLAN) mode
command.
Syntax
vlan-range
vlan
vlan-range
no vlan
Parameters
•
vlan-range—Specifies a list of VLAN IDs to add. Separate nonconsecutive
VLAN IDs with a comma and no spaces. Use a hyphen to designate a range
of IDs (range: 2-4094).
Default Configuration
VLAN 1 exists by default.
Command Mode
VLAN Configuration mode
Example
The following example creates VLANs 100 and 1972.
switchxxxxxx(config)#
switchxxxxxx(config-vlan)#
switchxxxxxx(config-vlan)#
32.3
show vlan
Use the show vlan Privileged EXEC mode command to display the following VLAN
information for all VLANs or for a specific VLAN:
•
VLAN ID
•
VLAN name
Virtual Local Area Network (VLAN) Commands
vlan database
vlan
100,1972
78-21075-01 Command Line Interface Reference Guide
name