DEVICE=eth1 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes
4. Configure the VLAN interface script in /etc/sysconfig/network-scripts. The configuration filename must be the physical interface plus a “.” character plus the VLAN id number. For example, if the VLAN id is 10, and the physical network interface is eth1, then the configuration filename should be ifcfg-eth1.10, as the example below:
DEVICE=eth1.10 BOOTPROTO=none ONBOOT=yes IPADDR=14.1.1.31 NETMASK=255.255.255.0 USERCTL=no NETWORK=14.1.1.0 VLAN=yes
For more VLANs required on the same interface, add a new file with the name as in the example above and the VLAN configuration details, for example eth0.20
5. Restart the networking service, in order for the changes to take effect
# service network restart