[英]How can I integrate OpenStack instances in my local network?
How can I integrate OpenStack instances in my local network? 如何在本地网络中集成OpenStack实例? I have Devstack Kilo running on a single Ubuntu VM that has its own IP different than the physical host. 我让Devstack Kilo运行在具有与物理主机不同的IP的单个Ubuntu VM上。 I assigned as floating IPs a set of IPs from the local network. 我为本地网络分配了一组IP作为浮动IP。 But I cannot ping neither the external network, nor the local network from the instances. 但是我无法从实例ping通外部网络或本地网络。
You need to set up the network on the devstack host to do ip and arp forwarding. 您需要在devstack主机上设置网络以进行ip和arp转发。 This ususally works: 这通常起作用:
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
This is for an Ubuntu host running devstack - your distro may be a little different, but the ideas are the same. 这是针对运行devstack的Ubuntu主机的-您的发行版可能有所不同,但是想法是相同的。
I wrote a post about doing this a while back. 我写了一篇关于这样做的帖子。 It's for Havana, but the principles are the same: https://barakme.wordpress.com/2013/12/23/openstack-in-a-box-setting-up-devstack-havana-on-your/ 适用于哈瓦那,但原理相同: https : //barakme.wordpress.com/2013/12/23/openstack-in-a-box-setting-up-devstack-havana-on-your/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.