Debian OpenStack上虚拟机上的虚拟接口

Debian OpenStack上虚拟机上的虚拟接口,debian,virtual-machine,replication,load-balancing,openstack,Debian,Virtual Machine,Replication,Load Balancing,Openstack,我有4个虚拟机,Debian7S.O.,是在openstack上创建的 第一个是Web服务器,第二个和第三个是带有多主副本(MySQL)的2 db,最后一个是配置了ldirectord的负载平衡器 在loadbalancer上,我有一个物理接口(eth0)和一个虚拟接口(eth0:0)。 在每个数据库上,我都有一个lo:0,它具有通过loadbalancer创建的虚拟接口的相同ip。从每个数据库中,我都可以ping loadbalancer的虚拟接口,没有问题,但是当我尝试从web服务器ping

我有4个虚拟机,Debian7S.O.,是在openstack上创建的

第一个是Web服务器,第二个和第三个是带有多主副本(MySQL)的2 db,最后一个是配置了ldirectord的负载平衡器

在loadbalancer上,我有一个物理接口(eth0)和一个虚拟接口(eth0:0)。 在每个数据库上,我都有一个lo:0,它具有通过loadbalancer创建的虚拟接口的相同ip。从每个数据库中,我都可以ping loadbalancer的虚拟接口,没有问题,但是当我尝试从web服务器ping该虚拟接口时,我得到了以下结果:

PING 172.29.12.13(172.29.12.13)56(84)字节的数据。 从172.29.12.4 icmp_seq=1目标主机无法访问

如果我尝试连接到MySQL(使用负载平衡器),它将无法工作

如果我尝试从Web服务器发送ARP-n命令,则无法获取loadbalancer虚拟接口的mac地址(eth0:0)

我的桌面上有4台使用VMWare创建的虚拟机,配置相同,我没有任何问题

VMWare和OpenStack之间有什么区别

有什么建议吗

非常感谢,我的英语很抱歉

这是loadbalancer的/etc/网络/接口

# The loopback network interface
auto lo
iface lo inet loopback

# The normal eth0
auto eth0
iface eth0 inet static
        address         172.29.12.5
        netmask         255.255.255.0
        broadcast       172.29.12.255
        network         172.29.12.0
        gateway         172.29.12.1

# Maybe the VM has 2 NICs?
allow-hotplug eth1
iface eth1 inet dhcp

# Maybe the VM has 3 NICs?
allow-hotplug eth2
iface eth2 inet dhcp

# Virtual Interface for ldirectord
auto eth0:0
iface eth0:0 inet static
        address         172.29.12.13
        netmask         255.255.255.0
        broadcast       172.29.12.255
这是数据库的/etc/网络/接口

# The loopback network interface
auto lo
iface lo inet loopback

# The normal eth0
auto eth0
iface eth0 inet static
        address         172.29.12.11
        netmask         255.255.255.0
        broadcast       172.29.12.255
        gateway         172.29.12.1

# Maybe the VM has 2 NICs?
allow-hotplug eth1
iface eth1 inet dhcp

# Maybe the VM has 3 NICs?
allow-hotplug eth2
iface eth2 inet dhcp

# Virtual interface for loadbalancer
auto lo:0
iface lo:0 inet static
        address 172.29.12.13
        netmask 255.255.255.255
        pre-up sysctl -p > /dev/null
        post-up route add -host 172.29.12.13 dev lo:0