VLANs are created in either global configuration or VLAN Database
mode on most IOS-software based switches. Global configuration mode is the
preferred way of creating and managing VLANs because the user interface is
familiar. When a VLAN is created or deleted the change occurs as soon as the
user hits the Enter key on the VLAN configuration line. The commands in this
courseware will delineate VLAN creation and management using Global
configuration mode as shown in graphic
.
 |
NOTE:
Global configuration mode can be use to configure VLANs in the range
1-1005 and must be used to configure extended-range VLANs (VLAN IDs 1006 to
4094). The VTP configuration revision number is incremented each time a VLAN is
created or changed.
|
Alternately, VLANs can be created and managed using VLAN Database mode.

VLAN database mode is session oriented. When you add, delete, or modify VLAN
parameters, the changes are not applied until you enter the
apply or exit command. You can also
exit VLAN Database mode and not apply the changes by entering the
abort command.
To access this mode, the
vlan database command is executed from privileged EXEC
mode. From this mode, you can add, delete, and modify VLAN configurations for
VLANs in the range 1 to 1005.
Example: Creating a VLAN in VLAN Database Mode
Switch#vlan
database
Switch(vlan)#vlan 3
VLAN 3 added:
Name:
VLAN0003
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#
 |
NOTE:
This mode has been deprecated and will be removed in some future
release.
|