[英]Openstack VM is not accessible on LAN
I am facing issue with accessing Open stack VM's on LAN. 我在LAN上访问Open stack VM时面临问题。
System information of the Openstack Machine is as below: Openstack Machine的系统信息如下:
Memory usage: 19% IP address for virbr0: 192.168.122.1 内存使用情况:virbr0:192.168.122.1的19%IP地址
Swap usage: 0% IP address for br100: 10.0.0.1 交换使用:br100的0%IP地址:10.0.0.1
Below works fine 下面工作正常
But LAN machine 192.168.2.16 is not able to ping VM1(10.0.0.2) 但是LAN机器192.168.2.16无法ping VM1(10.0.0.2)
So please suggest how can it be achieved ? 那么请建议如何实现? And Please consider me as very new to Openstack and networking.
请认为我是Openstack和网络的新手。
Thanks !!! 谢谢 !!!
You need to assign a floating IP to the VMs you create if you want a host from outside the openstack network to connect to it. 如果希望从openstack网络外部的主机连接到您,则需要为您创建的VM分配浮动IP。 The internal IPs are only accessible from inside the openstack network.
内部IP只能从openstack网络内部访问。
See how to assign a floating IP to a VM here: http://docs.openstack.org/user-guide/content/floating_ip_allocate.html 了解如何在此处为VM分配浮动IP: http : //docs.openstack.org/user-guide/content/floating_ip_allocate.html
To access the VM's floating IP from another host (that is not the devstack host) you should make sure that the devstack host is configured to forward packets. 要从其他主机(不是devstack主机)访问VM的浮动IP,您应确保将devstack主机配置为转发数据包。 You can do this with:
你可以这样做:
sudo bash
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
See more details here: http://barakme.tumblr.com/post/70895539608/openstack-in-a-box-setting-up-devstack-havana-on-your 点击此处查看更多详情: http : //barakme.tumblr.com/post/70895539608/openstack-in-a-box-setting-up-devstack-havana-on-your
添加到客户端计算机的路由到openstack VM,帮助了我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.