软件开发OpenStack

openstack M 中 云主机 ping 不通宿主机?

我3台物理服务器上分别安装了openstack的controller、compute、network节点,创建的外部网络(flat)和三个节点在同一个网段,内部网络(vxlan)是随便定义的,两个网络之间用路由器连接的,但路由器的端口的状态都是down的,现在是云主机不能ping 通 路由器节点,也不能ping 通宿主机,...显示全部

我3台物理服务器上分别安装了openstack的controller、compute、network节点,创建的外部网络(flat)和三个节点在同一个网段,内部网络(vxlan)是随便定义的,两个网络之间用路由器连接的,但路由器的端口的状态都是down的,现在是云主机不能ping 通 路由器节点,也不能ping 通宿主机,宿主机也ping 不通云主机,云主机是在计算节点上创建的

收起
参与10

查看其它 1 个回答Garyy的回答

GaryyGaryy  系统工程师 , 某保险

您好
请在网络节点运行如下的命令,并把结果发出来:
neutron router-port-list router
neutron port-list
neutron port-show 【port id--不通的ip那个】
ip netns exec 【device id---上面命令输出结果中查找】route -n

保险 · 2017-11-15
  • [此评论已删除]
    2017-11-16
  • [root@network-4 ~(keystone_admin)]# ip netns exec 0c5ec807-e63a-4f05-a70b-6dcb76f33bc7 route -n Cannot open network namespace "0c5ec807-e63a-4f05-a70b-6dcb76f33bc7": No such file or directory 执行最后一句报错了
    2017-11-16
  • [root@network-4 ~(keystone_admin)]# neutron router-port-list demo-router +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+ | 9f30a99c-f916-4aea-a13e-23d9a5bfb91f | | fa:16:3e:6c:32:7f | {"subnet_id": "9906c674-4dfe-46a5-b14e-efe3f1e9e66c", "ip_address": "4.1.20.102"} | | b9dd19e2-ec72-4273-a25c-86704ad5254e | | fa:16:3e:61:db:99 | {"subnet_id": "310ba523-8e1e-446d-9efd-cce5bbd6c82c", "ip_address": "192.168.1.1"} | +--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+ [root@network-4 ~(keystone_admin)]# neutron port-list +--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+ | 42efbde3-8136-4f85-a8da-abf93f2361a0 | | fa:16:3e:b4:18:3c | {"subnet_id": "310ba523-8e1e-446d-9efd-cce5bbd6c82c", "ip_address": "192.168.1.2"} | | 69a58fb1-0599-4f41-957d-f0e41cb92faa | | fa:16:3e:f3:13:0f | {"subnet_id": "310ba523-8e1e-446d-9efd-cce5bbd6c82c", "ip_address": "192.168.1.3"} | | 76c35707-7cf2-4d7f-8d2e-5d3ff3293701 | | fa:16:3e:1c:8d:f1 | {"subnet_id": "4af7b974-1cd8-412e-98c6-5d9464ca3ea3", "ip_address": "10.0.0.2"} | | 91fdfb28-7481-4ea5-9944-922f64649624 | | fa:16:3e:bc:fa:d0 | {"subnet_id": "4af7b974-1cd8-412e-98c6-5d9464ca3ea3", "ip_address": "10.0.0.1"} | | 9f30a99c-f916-4aea-a13e-23d9a5bfb91f | | fa:16:3e:6c:32:7f | {"subnet_id": "9906c674-4dfe-46a5-b14e-efe3f1e9e66c", "ip_address": "4.1.20.102"} | | b9dd19e2-ec72-4273-a25c-86704ad5254e | | fa:16:3e:61:db:99 | {"subnet_id": "310ba523-8e1e-446d-9efd-cce5bbd6c82c", "ip_address": "192.168.1.1"} | | cc2379c1-2afd-411c-9038-5d694b78c2da | | fa:16:3e:4c:33:d3 | {"subnet_id": "9906c674-4dfe-46a5-b14e-efe3f1e9e66c", "ip_address": "4.1.20.101"} | | f79c76ad-be48-4a4f-b5af-eb66372370e1 | | fa:16:3e:b2:27:7e | {"subnet_id": "af7e591b-93dc-4495-b1da-2e7410064084", "ip_address": "172.24.4.226"} | +--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
    2017-11-16
  • [root@network-4 ~(keystone_admin)]# neutron port-show 9f30a99c-f916-4aea-a13e-23d9a5bfb91f +-----------------------+-----------------------------------------------------------------------------------+ | Field | Value | +-----------------------+-----------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | | | binding:host_id | network-4.1.20.195 | | binding:profile | {} | | binding:vif_details | {} | | binding:vif_type | binding_failed | | binding:vnic_type | normal | | created_at | 2017-11-16T09:28:06 | | description | | | device_id | 0c5ec807-e63a-4f05-a70b-6dcb76f33bc7 | | device_owner | network:router_gateway | | dns_name | | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "9906c674-4dfe-46a5-b14e-efe3f1e9e66c", "ip_address": "4.1.20.102"} | | id | 9f30a99c-f916-4aea-a13e-23d9a5bfb91f | | mac_address | fa:16:3e:6c:32:7f | | name | | | network_id | 6189f23f-fded-4f60-9c77-3cfac7cc29cd | | security_groups | | | status | DOWN | | tenant_id | | | updated_at | 2017-11-16T09:28:07 | +-----------------------+-----------------------------------------------------------------------------------+
    2017-11-16

回答者

Garyy
Garyy0410
系统工程师某保险
擅长领域: 云计算存储容器

Garyy 最近回答过的问题

回答状态

  • 发布时间:2017-11-15
  • 关注会员:3 人
  • 回答浏览:2781
  • X社区推广