VirtualBox中安装Ubuntu Server无法找到Host-Only网卡的问题


Ubuntu Server安装后,默认只有一块主网卡,所以其他的网卡就无法自动出现。解决办法如下:

  1. # 编辑配置文件   
  2. $ sudo vi /etc/network/interfaces   
  3.   
  4. # 加入配置项,保存退出   
  5. # 这里假设第二块网卡就是Host-Only   
  6. auto eth1   
  7. iface eth1 inet dhcp   
  8.   
  9. # 重启网卡   
  10. $ sudo /etc/init.d/networking restart  

相关内容