Virtual Lan install
A virtual LAN, commonly known as a VLAN, is a group of hosts with a common set of requirements that communicate as if they were attached to the same broadcast domain, regardless of their physical location. A VLAN has the same attributes as a physical LAN, but it allows for end stations to be grouped together even if they are not located on the same network switch. Network reconfiguration can be done through software instead of physically relocating devices.
Lets show you how to add vlan to a physical network on Fedora
copy file /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0.2
- eth0 – Your regular network interface
- eth0.2 - Your virtual interface that use untagged frames
replace DEVICE=ifcfg-eth0 with DEVICE=ifcfg-eth0.2
Save the file. Remove gateway entry from all other network config files. Only add gateway to /etc/sysconfig/network file. Save and close the file. Restart network:
restart the network services
#service network restart
And is done!