CCNA · Lesson 2 of 13
VLAN Ranges: Normal, Extended and Reserved
An almost guaranteed exam question: which VLAN numbers you can use, which you cannot, and where they are stored.
In a nutshell
You can use VLANs 1 to 4094. Normal-range VLANs (1–1005) are stored in the vlan.dat file, not in the configuration.
In this lesson
Why are there 4096 numbers?
The VLAN number (VLAN ID) is stored in a 12-bit field. 12 bits give 212 = 4096 values, from 0 to 4095. Not all of them can be used.
Range table
| Range | Type | What you must know |
|---|---|---|
0 and 4095 | Reserved | System use. Cannot be used. |
1 | Default VLAN | Every port starts in VLAN 1. It cannot be deleted or renamed. |
2 – 1001 | Normal range | The ones you will use almost always in a company. |
1002 – 1005 | Reserved (legacy) | For Token Ring and FDDI. Pre-created and cannot be deleted. |
1006 – 4094 | Extended range | For large networks and service providers. |
The normal range is 1–1005 (it includes VLAN 1 and the reserved 1002–1005). The extended range is 1006–4094.
VLAN 1, the one that already exists
A new switch has all its ports in VLAN 1. That is why several PCs plugged into an unconfigured switch can all see each other. It is also, by default, the native VLAN of trunks. For security, do not use VLAN 1 for users.
SW1# show vlan brief
VLAN Name Status Ports
---- -------------------- --------- -------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 ...
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Where are VLANs stored?
Normal-range VLANs are stored in the vlan.dat file in flash, not in the startup-config. Extended-range VLANs are stored in the running-config (and then in the startup-config).
With VTP version 1 or 2, the switch must be in transparent mode to create extended-range VLANs.
Exam trap
If you run erase startup-config and reload, the VLANs are still there because they live in vlan.dat. To really delete them: delete flash:vlan.dat and reload.
What you must remember
- The VLAN ID has 12 bits: 0 to 4095.
- Normal: 1–1005. Extended: 1006–4094. 0 and 4095 are not usable.
- VLAN 1 is the default VLAN: it cannot be deleted or renamed.
- Normal-range VLANs are stored in flash:vlan.dat.
Check what you learned
4 exam-style questions. Some have one answer and others ask you to choose several. Answer them all to complete the lesson.