I am working on setting up a KVM environment and normally I just take it for granted that the networking has been set up. I am running into difficulty getting the public IPs accessible from the VMs. Node and VM are running CentOS 7
Here is the current state:
VM: 18.104.22.168 -> IP on physical node: 22.214.171.124 (pingable) VM: 126.96.36.199 -> Neighbouring physical node: 188.8.131.52 (pingable) VM: 184.108.40.206 -> Outside IP: 220.127.116.11 (network unreahable) Physical Node: 18.104.22.168 -> VM: 22.214.171.124 ( Destination Host Unreachable ) Physical Node: 126.96.36.199 -> Outside: 188.8.131.52 (pingable) Outside -> Physical Node: 184.108.40.206 (pingable)
I have the 220.127.116.11/28 Range configured on br1 on the physical node which has eth1 bound to it.
The VM has the bridge network added - and noteable arping from both the VM (18.104.22.168) and the Node (22.214.171.124) both get the correct answers as expected.
<interface type='bridge'> <mac address='52:54:00:84:e5:e1'/> <source bridge='br1'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </interface>
As per the DC I am working with guide, on the VM created an /etc/sysconfig/network-scripts/route-eth0 and rule-eth0 file:
# cat route-eth0 default via 126.96.36.199 dev eth0 table 125 # cat rule-eth0 from 188.8.131.52/28 table 125
# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 184.108.40.206 0.0.0.0 255.255.255.240 U 0 0 0 eth0
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 220.127.116.11 0.0.0.0 UG 0 0 0 br0 18.104.22.168 0.0.0.0 255.255.255.0 U 0 0 0 br0 22.214.171.124 0.0.0.0 255.255.255.240 U 0 0 0 eth1 126.96.36.199 0.0.0.0 255.255.255.240 U 0 0 0 br1 192.168.10.0 0.0.0.0 255.255.254.0 U 0 0 0 eth1 virbr0
Any pointers on what to check or where I may have gone wrong much appreciated.... and just to clarify - no those are not the real IPs, they are just made up for example sake.
Thanks in advance.