在openstack上启动的实例无法连接到局域网上的任何东西,但他们愉快地到达互联网(谷歌,雅虎等)
Openstack设置:
服务器上的双以太网卡。 eth0在局域网上,eth1在私有局域网上。
实例获得浮动ip在以下范围内:10.0.253.0/24
一个浮动ip的实例可以从办公室局域网到达。 实例无法直接到达办公室局域网(ping 10.0.0.2失败)
我认为这是计算主机上缺less的转发规则。
计算路由表:
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface default firewall001.hq. 0.0.0.0 UG 0 0 0 eth0 10.0.0.0 * 255.255.0.0 U 0 0 0 eth0 10.2.0.0 * 255.255.255.224 U 0 0 0 br100 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
实例路由表:
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.2.0.4 UGS 2 184 vtnet0 10.2.0.0/27 link#1 U 3 162 vtnet0 plum.novalocal link#1 UHS 0 0 lo0 localhost link#2 UH 0 0 lo0
原来是一个路由问题。
实际的修复是未知的,但移动所有虚拟机到一个192.168.0.0/16让我去。