简体   繁体   English

无法从外部计算机连接到Openstack实例

[英]Not able to connect to a Openstack Instance from external machine

The IP of of an instance created through Openstack is 10.0.0.2. 通过Openstack创建的实例的IP为10.0.0.2。 But when I tried to ping this IP from other machine, it was not successful, however I am able to ping this IP from the machine on which Openstack(Devstack) is installed. 但是,当我尝试从其他计算机上ping通此IP时,它并不成功,但是我能够从安装了Openstack(Devstack)的计算机上ping通此IP。 What could be the reason and how to resolved this? 可能是什么原因以及如何解决这个问题?

This may help you: http://www.liquidstate.net/blog/technology/openstack-havana-home-lab-on-centos6-with-external-networking/ 这可能对您有帮助: http : //www.liquidstate.net/blog/technology/openstack-havana-home-lab-on-centos6-with-external-networking/

Basically, you need a virtual router to connect from you LAN to OpenStack private network. 基本上,您需要一个虚拟路由器才能从您的LAN连接到OpenStack专用网络。

I think, you don't need a Floating IP exactly on each instance. 我认为,您不需要在每个实例上都完全有一个浮动IP。 Only a virtual router, then you can create a static route on each machine in you LAN, for example: 只有一个虚拟路由器,然后您可以在局域网中的每台计算机上创建一条静态路由,例如:

ip route add 10.0.0.0/8 via 192.168.1.100 dev em1 IP路由通过192.168.1.100 dev em1添加10.0.0.0/8

Good Luck! 祝好运!

This IP is a private one, by default, when you deploy a new instance it is deployed with a private IP. 默认情况下,当您部署新实例时,此IP是私有IP。

If you want to have a public IP, you need to create a floating IP for your project and afterward, you should assign one IP from this pool to the server instance that you have created previously. 如果要使用公共IP,则需要为您的项目创建一个浮动IP,然后,您应该从该池中为先前创建的服务器实例分配一个IP。

After that you could access to your server instance without any problem. 之后,您可以毫无问题地访问服务器实例。

I hope that it could help you. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OpenStack实例与外部Internet连接 - OpenStack Instance connect with External internet 如何从外部网络访问本地计算机上的Openstack? - How to Access Openstack on my local machine from External network? 无法从外部网络 ping OpenStack 机器的实例 - Cannot ping instances of OpenStack machine from external net 如何从VM访问外网的openstack vm实例 - How to access the openstack vm instance from external network from VM 通过路由器通过互联网连接到 OpenStack 实例 - Connect to OpenStack instance via the internet through the router 如何从另一个实例CURL OpenStack的一个实例 - How to CURL an instance of OpenStack from another Instance 在本地托管 mongoDB 数据库,并能够从外部网络连接 - Hosting mongoDB database locally, and being able to connect from an external network 如何从GCP VM实例连接到端口3459上的外部代理? - How to connect to external proxy on port 3459 from GCP VM Instance? 将外部网络添加到 openstack - Add external network to openstack 一体机 Openstack 实例网络无法与 LAN 网络通信 - 外部虚拟机 ping 正常 - 虚拟机外部/互联网 ping 不正常 - All-in-One Openstack instance network not communicate to LAN network - External-VM ping OK - VM-External/Internet ping NOT OK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM