Recently I have been doing some reworking on networking at work. One of the new requirements is that everything be network connection be a tagged VLAN. This is a pretty simple process in Red Hat Linux with multiple paths. Test files are my favorite way to make these changes so lets assume that I want the VLAN to be 455 with the nic eth0.
- Navigate to your networking scripts: /etc/sysconfig/network-scripts
- Copy your current eth0 configuration cp ifcfg-eth0 ifcfg-eth0.455
- Open the file:
- Modify the device name to read eth0.455
- Add the line VLAN=yes to the end of the file
- Save and exit
- Shutdown the old interface (make sure your on console)
- ifdown eth0
- Bring up new VLAN
- ifup eth0.455
- Delete old interface rm ifcfg-eth0
That’s all you have to do and your Operating system will be tagging all outbound traffic with VLAN 455 and only reading traffic from 455.
© 2010, Joseph Griffiths. All rights reserved.