798 VLAN Commands
Example
console(config-if-Gi1/0/1)#switchport trunk allowed
vlan 1-1024
console(config-if-Gi1/0/1)#switchport trunk allowed
vlan except 1,2,3,5,7,11,13
vlan
Use the vlan command in VLAN Database mode to configure a VLAN. To
delete a VLAN, use the no form of this command.
Syntax
vlan
vlan-range
no vlan
vlan-range
vlan-range
— A list of valid VLAN IDs to be added. List separate, n on-
consecutive VLAN IDs separated by commas (without spaces); use a
hyphen to designate a range of IDs. (Range: 2–4093)
Default Configuration
This command has no default configuration.
Command Mode
VLAN Database mode
User Guidelines
Deleting the VLAN for an access port will cause that port to become unusable
until it is assigned a VLAN that exists.
Example
The following example shows how to create (add) VLAN of IDs 22, 23, and
56.
console(config-vlan)#vlan 22,23,56
console(config-vlan)#
2CSPC4.XCT-SWUM2XX1.book Page 798 Monday, October 3, 2011 11:05 AM