简体   繁体   English

如何在本地网络中集成OpenStack实例?

[英]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.

相关问题 如何从外部网络访问本地计算机上的Openstack? - How to Access Openstack on my local machine from External network? 如何找到本地网络上活动服务器的实例? - How to find instances of active servers on the local network? 我如何从公共网络访问我的本地IP地址 - How can i access my local ip address from public network 如何对本地网络中的所有设备执行ping操作并获得响应? - How can I ping all devices which are in my local network and get responce from them? 如何在 python 中阻止本地网络中某个 IP 的 Internet 访问? - How can I block Internet access for a certain IP in my local network in python? 如何在没有 ssh 的本地计算机上托管在 ec2 实例上的集群上使用 kubectl 命令 - How can I use kubectl commands on my cluster hosted on ec2 instances from my local machine without ssh 我可以快速扫描本地网络中的特定开放端口吗? - Can I scan my local network for specific open ports quickly? 我可以将 Azure Kubernetes 节点连接到我的本地网络吗? - Can I Connect Azure Kubernetes Nodes to My Local Network? 如何在本地网络上找到服务器的所有正在运行的实例? - can I find all running instance of my server on the local network? 如何在我的本地网络上公开 Django 网站? - How do I make Django Website public on my local network?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM