I am seeking a procedure list with examples on how to configure VLAN networking for a CentOS7 KVM host that has two RHEL7 guests. I would post ALL of the myriad of things I have tried, but that would only waste lots of time and space. I am having problems finding the ideal example.
I have the two guests built and working. The host machine has only two ethernet interfaces. We have connected 802.1q trunks to both of them. When I employ traditional ifcfg networking with a ifcfg-em1 and ifcfg-em2 with all info in place and a single gateway in ifcfg-em2, all works out to the internet.
em1 has the private vlans, with the native vlan for host use only, and VLAN 2 and 3 will be the other two private vlans that I want my two guests to use.
em2 has the public vlans, somewhat similar configuration - native vlan (101) for both the host and the first guest, and VLAN 103 for the second guest. I would like the host and the first guest to use different IPs on the same subnet on the native vlan.
I started by trying to build a bridge for the public connections. I removed all the ip address info from the ifcfg's of the physical em interfaces. Then I built a br2 interface in /etc/sysconfig/network-scripts and populated it with an IP address and subnet that would be for the host. There I also set GATEWAY=123.1.2.3 (sanitized IP) as the only gateway in the system, and I have added DEFROUTE=yes. With this set, from the kvm host I can ping the gateway at 123.1.2.3, but nothing beyond. (using 'ping 123.1.2.3 -I br2').
I know I need to build a virtual network in kvm virt-manager under the connections for each guest, but when I do, nothing changes. There the fog starts and I have about 4 ways, none of which work, to try bridges or taps to get the guest to connect to the host bridge.
So it appears I have a basic networking problem at the host where I can't get past the default gateway, and then other problems between the guests and the host where they don't appear to be on the bridge and can't see anything but their own IP addresses.
I am sure someone has configured a scenario like this before, and if they could just give a detailed example broken into steps, I would greatly appreciate it.