Skip to main content

Enabling VLAN for Linux

..raw:: html

<html><body><p>This is just to archive how to create a virtual interface for receiving tagged VLAN traffic as used by VLAN trunks

</p><pre>

modprobe 8021q

vconfig add eth0:vlanid

ifconfig eth0:vlanid ip_addr mtu 1496 up

echo 0 &gt; /proc/sys/net/ipv4/conf/eth0.vlan_id/rp_filter

echo 0 &gt; /proc/sys/net/ipv4/conf/all/rp_filter

</pre>

Now I can safely trow away that piece of paper....</body></html>