分享

neutron 搭建完成后 无法ping通 router gateway

fxsundp 发表于 2015-6-28 20:56:50 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 10 49137
本帖最后由 fxsundp 于 2015-6-28 21:49 编辑

本人在esxi 虚拟机上搭建neutron,创建网络后,无法ping通 external router gateway但是在个人笔记本上使用wmare workstation创建虚拟机,使用相同配置neutron却可以ping通
唯一不同的是wmare workstation使用的全部是虚拟卡,esxi vm 连接external net 是物理卡
注:wmare workstation和esxi虚拟机上,连接external net的网卡都没有配置promisc,也没有使用ethtool -K INTERFACE_NAME gro off 命令,后来在esxi虚拟机的网卡上配置了promisc,使用ethtool -K INTERFACE_NAME gro off 后,也无法平通 router gateway
希望大神指点一下

补充一下,所有虚拟机都关闭了iptables和selinux,系统版本rhel 7.0,openstack juno
下面附上配置命令和状态
source admin-openrc.sh
neutron net-create ext-net --router:external True --provider:physical_network external --provider:network_type flat
neutron subnet-create ext-net --name ext-subnet --allocation-pool start=10.0.1.200,end=10.0.1.220 --disable-dhcp --gateway 10.0.1.254 10.0.1.0/24

source demo-openrc.sh
neutron net-create demo-net
neutron subnet-create demo-net --name demo-subnet --gateway 10.10.7.1 10.10.7.0/24
neutron router-create demo-router
neutron router-interface-add demo-router demo-subnet
neutron router-gateway-set demo-router ext-net


下面是一些状态:
controller 节点:
# neutron net-list
+--------------------------------------+----------+---------------------------------------------------+
| id                                   | name     | subnets                                           |
+--------------------------------------+----------+---------------------------------------------------+
| b4d63277-a71f-46d2-af60-8fd773424b1a | ext-net  | 5311e27f-b83e-4a7e-81f9-7e885ef622b4 10.0.1.0/24  |
| d12ed8d5-0baa-430e-ba12-7cdf96f46964 | demo-net | ca1e0720-8cb0-4992-8346-7a64b48bd6f7 10.10.7.0/24 |
+--------------------------------------+----------+---------------------------------------------------+


# neutron subnet-list
+--------------------------------------+-------------+--------------+----------------------------------------------+
| id                                   | name        | cidr         | allocation_pools                             |
+--------------------------------------+-------------+--------------+----------------------------------------------+
| 5311e27f-b83e-4a7e-81f9-7e885ef622b4 | ext-subnet  | 10.0.1.0/24  | {"start": "10.0.1.200", "end": "10.0.1.220"} |
| ca1e0720-8cb0-4992-8346-7a64b48bd6f7 | demo-subnet | 10.10.7.0/24 | {"start": "10.10.7.2", "end": "10.10.7.254"} |
+--------------------------------------+-------------+--------------+----------------------------------------------+


# neutron router-list
+--------------------------------------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id                                   | name        | external_gateway_info                                                                                                                                                                  | distributed | ha    |
+--------------------------------------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 595af3ba-0c9f-4805-80bd-5d40d4a2a59c | demo-router | {"network_id": "b4d63277-a71f-46d2-af60-8fd773424b1a", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "5311e27f-b83e-4a7e-81f9-7e885ef622b4", "ip_address": "10.0.1.200"}]} | False       | False |
+--------------------------------------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+

就是无法ping 通 10.0.1.200

network 节点信息:
补充下network节点的配置:

eth0: 10.0.1.2
eth1: 10.0.2.2
eht2: 与eth0使用相同虚拟网卡,配置同一网段
eth0 为管理网段,eht1 为连接compute节点的tunnel网段,eth2为连接外网网卡
# ip netns exec qrouter-595af3ba-0c9f-4805-80bd-5d40d4a2a59c ip a
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
11: qr-0f422db6-1b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:07:96:64 brd ff:ff:ff:ff:ff:ff
    inet 10.10.7.1/24 brd 10.10.7.255 scope global qr-0f422db6-1b
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe07:9664/64 scope link
       valid_lft forever preferred_lft forever
12: qg-d3aae1ef-18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:05:fa:32 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.200/24 brd 10.0.1.255 scope global qg-d3aae1ef-18
       valid_lft forever preferred_lft forever
    inet6 fe80::f816:3eff:fe05:fa32/64 scope link
       valid_lft forever preferred_lft forever
在esxi虚拟机上
在network节点上ping router gateway 地址 10.0.1.200 无法平通
但是使用 ip netns exec qrouter-595af3ba-0c9f-4805-80bd-5d40d4a2a59c ping 10.0.1.200 可以ping 通

在论坛里看了很多类似的帖子,但是没有遇到wmare workstation虚拟机正常,esxi虚拟机无法ping通的情况,希望大神指点一下


已有(10)人评论

跳转到指定楼层
fxsundp 发表于 2015-6-28 21:23:57
补充一下,所有虚拟机都关闭了iptables和selinux,系统版本rhel 7.0,openstack juno
回复

使用道具 举报

fxsundp 发表于 2015-6-28 21:28:10
补充下network节点的配置: 123.png
eth0: 10.0.1.2
eth1: 10.0.2.2
eht2: 与eth0使用相同虚拟网卡,配置同一网段
回复

使用道具 举报

fxsundp 发表于 2015-6-28 21:37:13
eth0 为管理网段,eht1 为连接compute节点的tunnel网段,eth2为连接外网网卡
回复

使用道具 举报

leo_1989 发表于 2015-6-28 21:40:59
fxsundp 发表于 2015-6-28 21:28
补充下network节点的配置:
eth0: 10.0.1.2
eth1: 10.0.2.2

external net 物理网卡网段多少,能否上网
回复

使用道具 举报

fxsundp 发表于 2015-6-28 21:45:29
leo_1989 发表于 2015-6-28 21:40
external net 物理网卡网段多少,能否上网

10.0.1.2/24, 只能上公司办公网,从公司办公网也不能ping通router gateway
回复

使用道具 举报

Alkaloid0515 发表于 2015-6-28 21:59:05
fxsundp 发表于 2015-6-28 21:45
10.0.1.2/24, 只能上公司办公网,从公司办公网也不能ping通router gateway



看下ovs,openFlow还有路由防火墙等信息
推荐个资料:
openstack (2015)neutron最新英文资料【推荐】
回复

使用道具 举报

fxsundp 发表于 2015-6-28 22:13:32
Alkaloid0515 发表于 2015-6-28 21:59
看下ovs,openFlow还有路由防火墙等信息
推荐个资料:
openstack (2015)neutron最新英文资料【推荐 ...

能帮我定位下问题么
回复

使用道具 举报

Alkaloid0515 发表于 2015-6-28 22:19:19
本帖最后由 Alkaloid0515 于 2015-6-28 22:21 编辑
fxsundp 发表于 2015-6-28 22:13
能帮我定位下问题么

ovs中,看看外网网卡是否挂到了ovs的集成网桥中

1.png


看下路由ip是多少



看下路由信息.png
回复

使用道具 举报

fxsundp 发表于 2015-6-29 09:17:24
已解决,在esxi 虚拟机上配置neutron时,需要在连接external net的虚拟网卡的网络标签上开启接受混杂模式 esxi.png
回复

使用道具 举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条