[英]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:
只有一个虚拟路由器,然后您可以在局域网中的每台计算机上创建一条静态路由,例如:
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.