I want to get my tags , ( 802.1q ) to the Guest
I do not want KVM or CENT stripping the TAG and presenting untagged traffic.
I will be having 600 Plus vlans on the switches port, and I need the Guests to handle the traffic. i can not create 600 bridges in /network-interfaces as the 600 vlans will grow to 2045 vlans.
Simular to ESX 4095 method where the esx passes all traffic to the guest.
I am running Centos 7
KVM is installed and running well
If possible I may need to know the following.
Should i leave Network Manager installed on the Cent?
Is there a Gui that can perform this for my networking, as many users will be managing these systems and we need something simple. can it be done through the network manager in gnome…
Thanks
john inmontreal
Best Answer
I don't use 802.3q (QnQ) on the host server to transmit vlans to guest virtual machines. Simply use bridge interface on real network interface or link aggregation group of them (bonding). Bridge inteface mustn't have any ip configuration. All vlans will be present on bridge inteface and available for guest machines. Don't forget to change switch port (ports) to vlan tagged mode (trunk mode) and allow needed vlans access on it (them).
You must create vlan interface on the host server to have access to it via network. By example br0.12, where 12 is your management vlan. Configure ip address and other network properties on this interface.
I usually disable NetworkManager service on host server, because it's comfortable for dynamic configuration of network Interfaces, not for static config.
Example: eth0 - management interface, eth1 - for all VM's, br0 - will be assigned to VM with all vlans, br31 - will be assigned to Windows VM's, witch can't use vlans, but needed to access to vlan 31 untagged. On the switch all vlans must be tagged.
/etc/sysconfig/network-scripts/ifcfg-eth0 file:
/etc/sysconfig/network-scripts/ifcfg-eth1 file:
/etc/sysconfig/network-scripts/ifcfg-br0 file:
/etc/sysconfig/network-scripts/ifcfg-br0.31 file:
/etc/sysconfig/network-scripts/ifcfg-br31 file:
To disable NetworkManager in Centos 6 and less:
To disable NetworkManager in Centos 7 and less:
Add to /etc/sysctl.conf next several lines and apply by command
sysctl -p /etc/sysctl.conf
Check your firewall (iptables) that it allows forwarding.