虚拟机单网卡安装openstack无法ping 虚拟机的浮动ip

Asked by microchu

笔记本,在vmware虚拟机上安装ubuntu12.04+ openstack havana版本.
虚拟机桥接模式接入笔记本物理网卡。
外网地址段192.168.2.0, openstack创建的虚拟机地址段20.20.20.0,
笔记本IP192.168.2.100,ubuntu主机ip 192.168.2.107,虚拟机cirros 浮动IP192.168.2.23
使用namespace方式可以ping通创建的虚拟机:
root@controller:~# ip netns exec qdhcp-80804505-2368-4cd1-bed1-6c653ebe8903 ping 192.168.2.23
PING 192.168.2.23 (192.168.2.23) 56(84) bytes of data.
64 bytes from 192.168.2.23: icmp_req=1 ttl=63 time=3.45 ms
64 bytes from 192.168.2.23: icmp_req=2 ttl=63 time=0.579 ms
64 bytes from 192.168.2.23: icmp_req=3 ttl=63 time=0.734 ms
去掉namespace方式则不能ping通创建的虚拟机
root@controller:~# ping 192.168.2.23
PING 192.168.2.23 (192.168.2.23) 56(84) bytes of data.
From 192.168.2.107 icmp_seq=1 Destination Host Unreachable
From 192.168.2.107 icmp_seq=2 Destination Host Unreachable
From 192.168.2.107 icmp_seq=3 Destination Host Unreachable

ovs_neutron_plugin.ini里的租户网络类型:
tenant_network_type = local

root@controller:/etc/neutron/plugins/openvswitch# ovs-vsctl show
ba560c94-7510-40d8-91a5-06ecc7ebd972
    Bridge br-int
        Port "qvo15a1a496-8e"
            tag: 1
            Interface "qvo15a1a496-8e"
        Port "qvo5a00abb3-3f"
            tag: 1
            Interface "qvo5a00abb3-3f"
        Port "qr-8255bd87-03"
            tag: 1
            Interface "qr-8255bd87-03"
                type: internal
        Port "tapc04180c4-a7"
            tag: 2
            Interface "tapc04180c4-a7"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "tapf1b9f597-8f"
            tag: 1
            Interface "tapf1b9f597-8f"
                type: internal
    Bridge br-ex
        Port "qg-0ec34f29-6e"
            Interface "qg-0ec34f29-6e"
                type: internal
        Port br-ex
            Interface br-ex
                type: internal
        Port "eth0"
            Interface "eth0"
    ovs_version: "1.10.2"

root@controller:~# nova list
+--------------------------------------+--------+--------+------------+-------------+-----------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+--------+------------+-------------+-----------------------------+
| 4ecaa633-9e62-407f-bc1d-42f7b5b4c72a | cirros | ACTIVE | None | Running | 鍐呯綉=20.20.20.2, 192.168.2.23 |
+--------------------------------------+--------+--------+------------+-------------+-----------------------------+

Question information

Language:
Chinese (Simplified) Edit question
Status:
Answered
For:
neutron Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1

have u enabled icmp in security group?

Revision history for this message
Bo Lin (linb) said :
#2

If your VM can ping outside world, It would be probably the Security Group problem. You can refer to https://www.dropbox.com/s/asl3mha5kt5ujfx/Security%20Group%20with%20all%20pass%20through.png to edit your security group rules.

Revision history for this message
Dong Liu (liudong78) said :
#3

Maybe you could check configuration in l3-agent.ini. Fix "router_id" and "gateway_external_network_id".

Can you help with this problem?

Provide an answer of your own, or ask microchu for more information if necessary.

To post a message you must log in.