Aerosol Posted March 23, 2015 Report Posted March 23, 2015 This will be the shortest tut made by me because need only few changes. On the begin we will install VLAN packet. This will be done using command:# apt-get install vlan -yAfter this we will load 8021q module into the kernel using command;# sh -c 'grep -q 8021q /etc/modules || echo 8021q >> /etc/modules'Now the only thing required is to add VLANs into the /etc/network/interfaces file as next example:auto eth1iface eth1 inet staticaddress 192.168.0.101netmask 255.255.255.0network 192.168.0.0broadcast 192.168.0.255gateway 192.168.0.254dns-nameserver 8.8.8.8# VLAN 69auto vlan69iface vlan69 inet staticaddress 172.16.69.25netmask 255.255.255.248network 172.16.69.24broadcast 172.16.69.31vlan_raw_device eth2# VLAN 96auto vlan96iface vlan96 inet staticaddress 10.10.96.1netmask 255.255.255.0network 10.10.96.0broadcast 10.10.96.255mtu 1500vlan_raw_device eth2Now for the job to be done we will restart networking and all will be done# /etc/init.d/networking restart* Reconfiguring network interfaces...ssh start/running, process 1400Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/configAdded VLAN with VID == 69 to IF -:eth2:-ssh stop/waitingssh start/running, process 1465Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/configAdded VLAN with VID == 96 to IF -:eth2:-ssh stop/waitingssh start/running, process 1530[ OK ]To check if are up we will read file vlan/config using command # cat /proc/net/vlan/config. The output will be the next if all is good. VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_PLUS_VID_NO_PAD vlan69 | 69 | eth2 vlan96 | 96 | eth2Author: razvan1@hy Quote