最新消息:

VirtualBox网卡添加

Linux ZmmFly 2207浏览 2评论

先在VirtualBox设置里配置完,再到虚拟机中修改配置

#编辑
vim /etc/udev/rules.d/70-persistent-net.rules
##添加
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="[MAC Adress]", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth[N]"
:wq
#修改网络配置
vim /etc/network/interfaces
##添加
auto eth1
iface eth1 inet dhcp
:wq
#添加默认网关
route add default gw eth1
##重启网络
/etc/init.d/networking restart

转载请注明:神奇海域 » VirtualBox网卡添加

发表我的评论
取消评论

Protected by WP Anti Spam

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (2)

  1. 来串串门[酷]
    musk100评论于10年前 (2014-07-05)回复
    • 欢迎~~!真巧。。。这个我刚刚发出来。。。
      惜颜评论于10年前 (2014-07-05)回复