You can create a VLAN on Linux by executing the following commands:
vconfig add
ifconfig . netmask
ifconfig . up
For example:
vconfig add eth0 6
ifconfig eth0.5 192.168.1.6 netmask 255.255.255.0
ifconfig eth0.6 up
You can view the traffic of that VLAN by executing the following command:
cat /proc/net/vlan/eth0.6
like you can configure 2048 VLANs for one physical interface.