Below is the table providing details on how to assign a VLAN ID

VLANsRangeUsagePropagated
by VTP
0, 4095ReservedFor system use only. You cannot see or use these VLANs.N/A
1NormalCisco default. You can use this VLAN but you cannot delete it.Yes
2-1001NormalUsed for Ethernet VLANs; you can create, use, and delete these VLANs.Yes
1002-1005NormalCisco defaults for FDDI and Token Ring. You cannot delete VLANs 1002-1005.Yes
1006-4094ExtendedFor Ethernet VLANs only. When configuring extended-range VLANs, note the following:•Layer 3 ports and some software features require internal VLANs. Internal VLANs are allocated from 1006 and up. You cannot use a VLAN that has been allocated for such use. To display the VLANs used internally, enter the show vlan internal usage command.•Switches running Catalyst product family software do not support configuration of VLANs 1006-1024.No

VLAN Parameters

  • VLAN name
  • VLAN type
  • VLAN state (active or suspended)

Command Syntax to create VLAN:

Enters global configuration mode.
Switch# configure terminal 

Adds an Ethernet VLAN.
Switch(config)# vlan vlan_ID
Switch(config-vlan)#
Switch(config-vlan)# end

Verifies the VLAN configuration
Switch# show vlan [id | name] vlan_name
  • Configuration example for the above commands:

Switch# configure terminal

Switch(config)# vlan 3

Switch(config-vlan)# end

Switch# show vlan id 3

VLAN Name                             Status    Ports

—- ——————————– ——— ——————————-

3    VLAN0003                         active

VLAN    Type   SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2
—- —– ———- —– —— —— ——– —- —— ——
3 enet  100003  1500 – – – – 0 0

Switch#

(All details are not shown in the above output)

  • Configuring VLANs in VLAN Database Mode

When the switch is in VTP server or transparent mode, you can configure VLANs in the VLAN database mode. When you configure VLANs in VLAN database mode, the VLAN configuration is saved in the vlan.dat file, not the running-config or startup-config files. To display the VLAN configuration, enter the show running-config vlan command.

NOTE: Database mode supports the configuration of IDs from 1 to 1001, but not the extended addresses from 1006 to 4094. 

Command Syntax to create VLAN in Database mode:

Enters VLAN database mode.
Switch# vlan database

Adds an Ethernet VLAN.
Switch(vlan)# vlan vlan_ID Switch(vlan)# exit Verifies the VLAN configuration. Switch# show vlan [id | name] vlan_name
  • Configuration example for the above commands:

Switch# vlan database

Switch(vlan)# vlan 3

VLAN 3 added:

    Name: VLAN0003

Switch(vlan)# exit

APPLY completed.

Exiting….

Switch# show vlan name VLAN0003
VLAN Name Status Ports
---- -------------------------------- --------- ---------------------
3 VLAN0003 active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- ------ ------
3 enet 100003 1500 - - - - 0 0
Switch#