Chapter 10 Install and System Administration for FortiOS 5.0 : VLANs : VLANs in NAT mode : Adding VLAN subinterfaces : VLAN ID
  
VLAN ID
The VLAN ID is part of the VLAN tag added to the packets by VLAN switches and routers. The VLAN ID is a number between 1 and 4094 that allow groups of IP addresses with the same VLAN ID to be associated together. VLAN ID 0 is used only for high priority frames, and 4095 is reserved.
All devices along a route must support the VLAN ID of the traffic along that route. Otherwise, the traffic will be discarded before reaching its destination. For example, if your computer is part of VLAN_100 and a co-worker on a different floor of your building is also on the same VLAN_100, you can communicate with each other over VLAN_100, only if all the switches and routers support VLANs and are configured to pass along VLAN_100 traffic properly. Otherwise, any traffic you send your co-worker will be blocked or not delivered.
See Also
Adding VLAN subinterfaces
Physical interface
IP address and netmask
VDOM
Configuring security policies
Configuring routing