从本地网络上的设备访问vagrant

时间:2015-03-23 16:09:07

标签: linux vagrant vagrantfile

我更新了设备A中的vagrantfile

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
config.vm.network :public_network, ip: "192.168.10.121"

然后在设备B的/ etc / hosts中更新

192.168.10.121 test.localhost

然后我尝试使用浏览器'test.localhost'访问设备B,但没有结果

0 个答案:

没有答案