VirtualBox Host-Only Network #2中怎么虚拟网卡中的#2删掉?

请问新安装的虚拟机VirtualBox 中怎么虚拟网卡中的#2删掉?

在安装baiVirtualBox 之后,会在系统中添加一块虚拟网du卡,如:
VirtualBox Host-Only Ethernet Adapter
在zhi安装DOCKER时,会自动在WINDOWS中安装VBOX,再添加一块虚拟网dao卡,如:
VirtualBox Host-Only Ethernet Adapter#
通过 控制面板\网络和 Internet\网络连接 是不能删除这块网卡的。通过vboxmanage可以,过程如下:
C:\win2k\Oracle\VirtualBox>vboxmanage list hostonlyifs
Name: VirtualBox Host-Only Ethernet Adapter
GUID: 0163434e-3166-495e-8479-929e0ed55eca
DHCP: Enabled
IPAddress: 169.254.101.179
NetworkMask: 255.255.0.0
IPV6Address: fe80:0000:0000:0000:d424:19b3:c960:65b3
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
Name: VirtualBox Host-Only Ethernet Adapter #2
GUID: 035d4337-4e5d-49b1-9edf-32081ae480a9
DHCP: Disabled
IPAddress: 192.168.99.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:fdff:2cf4:465d:f860
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2
-- remove #2 hostonly
vboxmanage hostonlyif remove "VirtualBox Host-Only Ethernet Adapter #2"
完成。
其他参考命令:
--ifname
VBoxManage dhcpserver modify --ifname "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0 --lowerip 192.168.56.100 --upperip 192.168.56.101
--netname
VBoxManage dhcpserver modify --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter" --ip 192.168.56.1 --netmask 255.255.255.0 --lowerip 192.168.56.100 --upperip 192.168.56.101
温馨提示:答案为网友推荐,仅供参考
相似回答