openstack虚拟机不能访问外网
实验环境是centos7.1+kilo版本,已完成所有组件配置,云主机能创建,能自动分配IP、云主机能ping通内部网关。
但是,云主机、物理机都不能ping通路由器接口地址,经查询之前部署的情况看,正常情况下,port:qg是要连接到br-ex的,但是现在发现qg连接到了br-int里面,请问如何解决这种问题,谢谢。我感觉这种连接配置文件和网络生成命令是不能改变的,请问是不是kilo的BUG??
[root@neutron neutron]# ip netns list
qrouter-4fbb1ec5-0e2e-4022-95dc-ff8cf7525a60
qdhcp-56341081-7d42-49f1-851a-f51f96a6b207
[root@neutron neutron]# ovs-vsctl show|more
d9222f52-7891-4e8d-ace1-e84b443f0b3c
Bridge br-int
fail_mode: secure
Port "qg-b1bbe216-bc"
tag: 7
Interface "qg-b1bbe216-bc"
type: internal
Port br-int
Interface br-int
type: internal
Port int-br-ex
Interface int-br-ex
type: patch
options: {peer=phy-br-ex}
Port "tap9fc213b9-71"
tag: 6
Interface "tap9fc213b9-71"
type: internal
Port "qr-f1c7c43e-7c"
tag: 6
Interface "qr-f1c7c43e-7c"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-ex
Port "ens160"
Interface "ens160"
Port phy-br-ex
Interface phy-br-ex
type: patch
options: {peer=int-br-ex}
Port br-ex
Interface br-ex
type: internal
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port "gre-0a0a0ae0"
Interface "gre-0a0a0ae0"
type: gre
options: {df_default="true", in_key=flow, local_ip="10.10.10.216", out_key=flow, remote_ip="10.10.10.224"}
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
ovs_version: "2.3.1"
[root@neutron neutron]# ip netns exec qrouter-4fbb1ec5-0e2e-4022-95dc-ff8cf7525a60 ip add
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
19: qr-f1c7c43e-7c: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:45:ea:2c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global qr-f1c7c43e-7c
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe45:ea2c/64 scope link
valid_lft forever preferred_lft forever
20: qg-b1bbe216-bc: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:ff
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
使用flat网络与外部真实物理网络连通即可!配置可以参照:
http://www.cnblogs.com/gleaners/p/5632708.html
今天在装openstack kilo版本时遇到了同样的问题,不知道这位哥们儿解决了没有求指教
可以通过底层命令来改变网络配置。
参考这个系列的文章, neutron的原理讲的很清楚: https://blogs.oracle.com/ronen/entry/diving_into_openstack_network_architecture (有中文翻译的,但是现在没找到)
帖要沉了、大神在哪里~