一个虚拟机的网络很莫名其妙,请大家帮忙。

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
fishfree
帖子: 53
注册时间: 2007-04-20 11:05

一个虚拟机的网络很莫名其妙,请大家帮忙。

#1

帖子 fishfree » 2009-05-12 16:52

ubuntu 8.04

ifconfig -a的结果是 eth2 和 lo,eth2没得到IP;

sudo vi /etc/network/interfaces的结果是lo和 eth1,且auto eth1, iface eth1 inet dhcp。这也是我要的DHCP获取IP的方式。

然后我sudo ifup eth1,结果是:
eth1:ERROR while getting interfaces flags: No such device
there is already a pid file /var/run/dhclient.eth1.pid with pid 134519072
…………
Bind socket to interfaces: No such device

然后我sudo ifup eth2,结果是:
Ignoring unknown interfaces eth2=eth2.

我实在是很晕,对linux又不怎么熟练,请大伙儿指点一下,多谢啦!
头像
libralibra
帖子: 401
注册时间: 2008-02-23 17:31
联系:

Re: 一个虚拟机的网络很莫名其妙,请大家帮忙。

#2

帖子 libralibra » 2009-05-12 20:00

你是谁虚拟谁啊?如果是windows虚拟ubuntu,请看

http://52xenos.blogspot.com/search/label/vmware
My Blog: matlab, ubuntu, python
http://goo.gl/GDIO
fishfree
帖子: 53
注册时间: 2007-04-20 11:05

Re: 一个虚拟机的网络很莫名其妙,请大家帮忙。

#3

帖子 fishfree » 2009-05-13 8:32

libralibra 写了:你是谁虚拟谁啊?如果是windows虚拟ubuntu,请看

http://52xenos.blogspot.com/search/label/vmware
是在XP中用vmware workstation6.5虚拟ubuntu的,虚拟机是一个virtual appliance,人家都已经配好了,我直接打开即可的。但却出现这个问题。后来我把虚拟机中的网卡删除掉手动再添加一个,仍然同样问题。晕
fishfree
帖子: 53
注册时间: 2007-04-20 11:05

Re: 一个虚拟机的网络很莫名其妙,请大家帮忙。

#4

帖子 fishfree » 2009-05-13 17:01

大伙儿帮帮我啊!
回复