vlan
Syntax
vlan <VLAN-LIST>
no vlan <VLAN-LIST>
Description
Creates a VLAN and changes to the
config-vlan-id
context for the VLAN. By default, the VLAN is enabled. To disable a VLAN, use the
no shutdown
command.
If the specified VLAN exists, this command changes to the
config-vlan-id
context for the VLAN. If a range is specified, the context does not change.
no
form of this command removes a VLAN. VLAN 1 is the default VLAN and cannot be deleted.
Command context
config
Parameters
<VLAN-LIST>
Specifies the number of the VLAN to create or configure, or a series of numbers to create multiple VLANs, separated by commas (2, 3, 4), dashes (2-4), or both (2-4,6). Range: 1 - 4094.
Authority
Administrators
Examples
Creating VLAN 20:
switch(config)# vlan 20 switch(config-vlan-20)#
Removing VLAN 20:
switch(config)# no vlan 20
Creating VLANs 2 to 8 and 10:
switch(config)# vlan 2-8,10
Removing VLANs 2 to 8 and 10:
switch(config)# no vlan 2-8,10