VLAN Commands 799
vlan (Global Config)
Use the vlan command in Global Configuration mode to configure a VLAN.
To delete a VLAN, use the no form of this command.
Syntax
vlan {
vlan–id
|
vlan–range
}
no vlan {
vlan–id
|
vlan–range
}
Parameter Description
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration (Config)
User Guidelines
This command has no user guidelines.
Example
The following example shows how to create (add) VLAN of IDs 22, 23, and
56.
console(config)#vlan 22,23,56
console(config-vlan)#
Parameter Description
vlan–id A valid VLAN ID. (Range: 2–4093)
vlan–range A list of valid VLAN IDs. List separate, non-consecutive VLAN
IDs separated by commas (without spaces). Use a hyphen to
designate a range of IDs. (Range: 2–4093)
2CSPC4.XCT-SWUM2XX1.book Page 799 Monday, October 3, 2011 11:05 AM