如何使用控制台中的 vboxmanage 在 VirtualBox 机器中配置网络设置?
How to configure the network settings in VirtualBox machine using the vboxmanage in console?
创建新虚拟机后,我select使用控制台的适配器:
vboxmanage modifyvm VMNAME --nic1 bridged --bridgeadapter1 eth0
如何使用控制台设置 TCP/IPv4 的下一个设置:
- 静态IP,
- 面具,
- 默认网关,
- DNS 服务器?
谢谢!
您需要使用下一个实用程序:vboxmanage guestcontrol。
然后输入 "netsh interface ip add address name="Local Area Connection" 192.168.1.20 255.255.255.0"。这是我们在 cmd 中执行命令到 windows vbox.
创建新虚拟机后,我select使用控制台的适配器:
vboxmanage modifyvm VMNAME --nic1 bridged --bridgeadapter1 eth0
如何使用控制台设置 TCP/IPv4 的下一个设置:
- 静态IP,
- 面具,
- 默认网关,
- DNS 服务器?
谢谢!
您需要使用下一个实用程序:vboxmanage guestcontrol。 然后输入 "netsh interface ip add address name="Local Area Connection" 192.168.1.20 255.255.255.0"。这是我们在 cmd 中执行命令到 windows vbox.