1. vlan config for RHEL 6 # cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:17:A4:
1. vlan config for RHEL 6
# cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:17:A4:77:04:1CTYPE=EthernetUUID=a03fe7a7-bade-4cbc-b38f-c46434104a2dONBOOT=yesNM_CONTROLLED=noBOOTPROTO=none# cat /etc/sysconfig/network-scripts/ifcfg-eth0.50 DEVICE=eth0.50BOOTPROTO=noneONBOOT=yesIPADDR=10.245.254.127PREFIX=24GATEWAY=10.245.254.1VLAN=yes
2. vlan config for ubuntu 16.04
# cat /etc/network/interfacesauto loiface lo inet loopback# Physical interface 1auto enp2s0f0iface enp2s0f0 inet manual bond-master bond0# Physical interface 2auto enp2s0f1iface enp2s0f1 inet manual bond-master bond0# Bond interface 0 (physical interfaces 1 and 2)auto bond0iface bond0 inet manual bond-mode 1 bond-miimon 100 bond-slaves enp2s0f0 enp2s0f1 bond-downdelay 200 bond-updelay 200 auto bond0.50iface bond0.50 inet static vlan-raw-device bond0 address 10.245.254.128 gateway 10.245.254.1 netmask 255.255.255.0 dns-nameservers 10.245.254.168