1

我已经搜索过这个但无法解决这个问题。我正在使用 vagrant 脚本在 Ubuntu 14.04 上设置 devstack。我克隆了 stable/juno 分支并运行 ./stack.sh 命令。但是,当我启动一个 cirros 实例时,我无法从 VM 内部 ping 它。cirros 实例的 IP 为 10.0.0.2。VM 有一个 br100 接口,IP 为 10.0.0.1。但是,当我使用 Web 界面登录 cirros 时,我得到的 IP 为 10.0.2.16。这没有任何意义,因为仪表板显示了不同的 IP。在你提出这个问题之前,我已经启用了 ICMP。我还分配了一个以 172.24.4.1 开头的浮动 IP。我在我的虚拟机上看不到任何具有相似 IP 的接口,因此也无法使用该 IP 进行 ping 操作。

4

2 回答 2

0

It looks you're using Virtualbox. My suggestion, set mode bridge to the NIC and use a simple local.conf, some thing like:

IP_VERSION=4
HOST_IP=192.168.1.100
FLOATING_RANGE="192.168.1.224/27"
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.226,end=192.168.1.254

The others VirtualBox modes are more complex to configure traffic in/out.

于 2019-12-07T05:41:47.973 回答
0

这可能有助于解决问题:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
于 2016-04-11T13:35:54.207 回答