【发布时间】:2013-01-07 06:36:29
【问题描述】:
我在我的 Vagrantfile 中使用以下行创建了一个仅主机网络
config.vm.network :hostonly, "10.1.1.15"
我可以看到它设置了 /etc/network/interfaces 文件
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet static
address 10.1.1.15
netmask 255.255.255.0
#VAGRANT-END
但是,当我运行 ifconfig 时,我只看到一个 eth0 和一个 lo 设备。为什么 vagrant 没有为 eth1 设置设备?有什么办法可以解决这个问题?
【问题讨论】: