Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Debian / grml / ....

http://www.microhowto.info/howto/configure_an_ethernet_interface_as_a_vlan_trunk_on_debian.html

https://askubuntu.com/questions/660506/how-to-setup-and-save-vlans-on-ethernet


1- install the package
2- add new inteface like eth0.50  ( /etc/network/interfaces)


sudo apt-get install vlan

#sudo modprobe 8021q
#sudo su -c 'echo "8021q" >> /etc/modules'        #to make it permanent
sudo ip addr add 10.0.0.1/24 dev eth0.100


or:   /etc/network/interfaces
auto eth0.50
iface eth0.2 inet static
 address 192.168.2.1
 netmask 255.255.255.0


CentOS / Fedora / RedHat

...