分享

云主机能ping出去,但回不来

Kevin517 发表于 2015-12-28 19:23:21 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 3 9343
我的情况:
VMware安装 双节点安装openstack(应该是i版本)
网卡.png
controller/network节点:eth0:20.0.0.10    eth1:192.168.100.10
compute节点:eth0:20.0.0.20    eth1:192.168.100.20

隧道网络/管理网络:20.0.0../24
外网:192.168.100.0/24

现在的网络是这样的
[root@controller bin]# neutron agent-list
+-----------------------------------------------------+------------------------+----------------+-------+------------------+
| id                                                                 | agent_type            | host             | alive | admin_state_up |
+-----------------------------------------------------+-------------------------+---------------+-------+-------------------+
| 3017d58f-0211-4df2-9445-4687be76870b | Metadata agent       | compute     | :-)   | True                    |
| 4c2686b4-6327-42a9-9959-ab5e3d25b58f | Metadata agent       | controller    | :-)   | True                     |
| 4c72a50a-a67d-4689-8c5c-f3e541f6d2f4   | L3 agent                  | controller    | :-)   | True                    |
| 7f575fbd-6e6d-497d-b5ce-d9b2111ce939  | DHCP agent            | controller    | :-)   | True                    |
| 942bec27-6efe-4203-9f1f-62ab9e1e8673   | Open vSwitch agent | controller   | :-)   | True                     |
| f9881f1c-84d3-496c-94cf-09a79fd39208   | Open vSwitch agent | compute    | :-)   | True                    |
+-----------------------------------------------------+-------------------------+--------------+-------+--------------------+


网络.png


==============================================================================


现在说一下我遇到的情况,

外网创建成功,

租户网络创建成功,

路由创建成功,

网络连接成功,

云主机正常。


唯一不行的就是外网ping 内网进不去,ping 外部网关可以,ping 内部网关不行。但是云主机可以出来。
控制台.png



=======================================================================

ssh.png

通过控制台 ssh  controller节点能成功,再ssh 云主机就不行了。

==========================================================
后来想到绑定一个浮动 ip
发现可以通过浮动 ip 进入云主机。

crt-ssh.png



=========================================================



不知道有没有什么方法解决外网进不去的情况,还是我哪里出错了。

在说明一点,我在创建网络后查看 l3-agent 的日志发现有个提示:
WARNING neutron.openstack.common.loopingcall [-] task run outlasted interval by 0.147629 sec


已有(3)人评论

跳转到指定楼层
goldtimes 发表于 2015-12-28 20:51:55
用一些工具,看下包的情况。
回复

使用道具 举报

Kevin517 发表于 2015-12-28 21:54:10
goldtimes 发表于 2015-12-28 20:51
用一些工具,看下包的情况。

能具体说一下嘛,用什么工具,看那些内容
回复

使用道具 举报

goldtimes 发表于 2015-12-28 21:56:39
Kevin517 发表于 2015-12-28 21:54
能具体说一下嘛,用什么工具,看那些内容

网络抓包工具
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条