使用 vagrant up
或者 vagrant reload
运行的结果
D:workspacevagrantdocker>vagrant reload
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Available bridged network interfaces:
1) Realtek RTL8192FU Wireless LAN 802.11n USB 2.0 Network Adapter
2) Hyper-V Virtual Ethernet Adapter
==> default: When choosing an interface, it is usually the one that is
==> default: being used to connect to the internet.
==> default:
default: Which interface should the network bridge to?
上面已经列出提供选择的桥接界面名称,我这里输入 1
或者 2
就可以。
在 Virtualbox 中单个虚拟机中,设置
-> 网络
,连接方式桥接网卡
,可以看到 界面名称有多个,如上图。