linuxvlantagging
Linux VLAN tagging
The information below is largely based on the following articles from Red Hat Knowledge Base:
VLAN Tagging Architecture
Ultimately this is the configuration we are creating. Two (or more) ethernet connections, bonded together to create a highly-available and possibly also a high-bandwidth connection. Then virtual instances are created on the bond for each VLAN needed, a VLAN is paired with a Bridge. The Bridge is what is given to each guest OS as its network connection.
KVM Quick Reference Setup
- Make sure that the 8021q kernel module is loaded
- Configure bonding interfaces normally
- To create a VLAN virtual instance:
- Copy ifcfg.bondX to ifcfg.bondX.N where N is the VLAN number
- Change DEVICE to bondX.N where N is the VLAN number
- Add VLAN=yes to file
- Add BRIDGE=bridge_name to file
- Add ifcfg script for bridge:
- Named ifcfg.bridgeN where N is the VLAN number
- Add TYPE=Bridge to file (case-sensitive!)
Xen Quick Reference Setup
The setup is the same as KVM with the following exceptions:
- Remove network-script syntax from xend-config.sxp
linuxvlantagging.txt · Last modified: 2017/11/10 00:54 by mark