一个虚拟机的网络很莫名其妙,请大家帮忙。
发表于 : 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又不怎么熟练,请大伙儿指点一下,多谢啦!
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又不怎么熟练,请大伙儿指点一下,多谢啦!