User Tools

Site Tools


informatica:linux:red:vlan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
informatica:linux:red:vlan [2014/10/13 15:38] – created javiinformatica:linux:red:vlan [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 http://serverfault.com/questions/490703/vconfig-not-tagging-outgoing-packets-with-vlan-tag-ubuntu 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 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
  
 <code> <code>
-sudo aptitude install vlan +sudo vconfig add wlan0 2 
-sudo modprobe 8021q + 
-add wlan0 2+Added VLAN with VID == 2 to IF -:wlan0:-
 </code> </code>
 +
 +Comprobar:
 +
 +<code>
 +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:
 +          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 +</code>
 +
 +4. Configurar IP
 +
 +<code>
 +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:
 +          RX bytes:0 (0.0 B)  TX bytes:9018 (8.8 KiB)
 +</code>
 +
 +
 +
 +  * Eliminar VLAN
 +
 +  sudo vconfig rem wlan0.2
informatica/linux/red/vlan.1413214690.txt.gz · Last modified: 2015/04/13 20:19 (external edit)