Friday, October 7, 2016

VLAN in Linux - permanent solution

VLAN's in Linux - permanent solution



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 frame

edit ifcfg-eth0.2
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0.2

replace 
DEVICE=ifcfg-eth0  


with
DEVICE=ifcfg-eth0.2

add
VLAN=yes

Remove gateway entry from all other network config files. Only add gateway to /etc/sysconfig/network

service  network   restart

No comments:

Post a Comment

Thank you for your comment. Will try to react as soon as possible.

Regards,

Networ King