VLANs – Why is 4096 the Max Value?

ethernetprotocol-theoryvlan

The Tag Protocol Identifier is set to 16 bits.
In the CCNA certification it is said that it's not possible to have more than 4096 VLANs.
4096 in binary is 1000000000000000.
Since 16 bits are allocated anyway, the limit could be 65535(1111111111111111)…

Why is that limit set to 4096?

Best Answer

Only 12 bits are used for VLANs in 802.1q, so you can only use VLANs from 0-4095 (=4096* different VLANs).

*actually 2 less, 0 and 4095 are reserved

http://en.wikipedia.org/wiki/IEEE_802.1Q#Frame_format

PS:

4096(DEC) is 1000000000000(BIN)
4095(DEC) is  111111111111(BIN)