Enabling VLAN for Linux

This is just to archive how to create a virtual interface for receiving tagged VLAN traffic as used by VLAN trunks

modprobe 8021q

vconfig add eth0:vlanid

ifconfig eth0:vlanid ip_addr mtu 1496 up

echo 0 > /proc/sys/net/ipv4/conf/eth0.vlan_id/rp_filter

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter

Now I can safely trow away that piece of paper....

Comments

Comments powered by Disqus