http://serverfault.com/questions/490703/vconfig-not-tagging-outgoing-packets-with-vlan-tag-ubuntu

http://serverfault.com/questions/544651/vlan-tags-not-shown-in-packet-capture-linux-via-tcpdump

1. Instalar paquete

sudo aptitude install vlan

2. Habilitar modulo

sudo modprobe 8021q

3. Crear VLAN

sudo vconfig add wlan0 2

Added VLAN with VID == 2 to IF -:wlan0:-

Comprobar:

sudo ifconfig 

wlan0.2   Link encap:Ethernet  HWaddr 00:24:d7:24:31:20  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

4. Configurar IP

sudo ifconfig wlan0.2 10.0.1.105 netmask 255.255.255.0 up

wlan0.2   Link encap:Ethernet  HWaddr 00:24:d7:24:31:20  
          inet addr:10.0.1.105  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:d7ff:fe24:3120/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:9018 (8.8 KiB)
sudo vconfig rem wlan0.2