virtualbox 中没有eth0

Hello guys. I'm not sure if this is a VirtualBox issue or it's just that i'm doing something wrong when configuring the guest, but well,... here i go:

I have a CentOS 5.6 host running VirtualBox 4.0.10 in a box with two network cards (each one connected to a separate router). I have two guests (Ubuntu 10.04 Server -text mode only-) and what i want to do is just to bridge each network card to a guest:

Router0 -> host eth0 -> Ubuntu Guest 1 eth0
Router1 -> host eth1 -> Ubuntu Guest 2 eth0

So, In VirtualBox GUI, i select a VM, went on "configuration" -> "network" and set it in bridged mode (i need it to be bridged, not NAT). I check in "advanced" that the network card selected is the right one, and then start the Ubuntu guest, log in, and launch 'ifconfig', and all i can get is the loopback interface. There's no eth0. So... ¿What happens here?

Also, If i edit /etc/network/interfaces and include eth0 (static ip) and try to put it up ($sudo ifup eth0) all i get is the following:

虚拟机中的opensuse无法上网。

============================================

each time you give a new MAC address (in VBox guest settings) Debian and Ubuntu guests udev assigns a new eth number
edit /etc/udev/rules.d/70-persistent-net.rules or delete the file: it will be recreated @ next boot

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值