eth0: error fetching interface information: Device not found

转载,原文出处:http://zh888.blog.51cto.com/1684752/775447

亲测有效,感谢作者!!!

----------------------------分割线----------------------------------------------------

eth0不见了的处理方法

1.刚开始运行ifconfig eth0发现网卡不见了。
[[email protected] ~]# ifconfig eth0
eth0: error fetching interface information: Device not found //但是network-scripts里的配置文件全部是eth0的,为什么获取不到也不知道为什么?
处理解决方法只能用eth1替换eth0了,自己创建modprobe.conf文件里面alias eth0 e1000e但是不能识别。

2.[[email protected] network-scripts]# mii-tool //查看网卡连接状态
   eth1: negotiated 100baseTx-FD, link ok

3.[[email protected] network-scripts]# ifconfig eth1//能发现eth1网卡

4.[[email protected] network-scripts]# mv ifcfg-eth0 ifcfg-eth1//修改eth0为eth1

5.[[email protected] network-scripts]# vi ifcfg-eth1
DEVICE=eth1//把eth1修改为eth0
ONBOOT=yes//启动激活
TYPE=Ethernet
BOOTPROTO=static//静态ip
IPADDR=192.168.xx.40
NETMASK=255.255.255.0
GATEWAY=192.168.xx.254

6.[[email protected] ~]# cd /etc/sysconfig/networking/ //进入networking目录
[[email protected] networking]# ls//里面有两个文件把里面的设备修改为ifcfg-eth1即可。
devices  profiles

7.[[email protected] devices]# /etc/rc.d/init.d/network restart //重新启动network守护进程。
Shutting down interface eth1:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth1:                                [  OK  sss]

8.[[email protected] devices]# ping www.baidu.com //最后ping 百度通了
PING www.a.shifen.com (220.181.111.148) 56(84) bytes of data.
64 bytes from 220.181.111.148: icmp_seq=1 ttl=52 time=33.1 ms
64 bytes from 220.181.111.148: icmp_seq=2 ttl=52 time=33.3 ms
64 bytes from 220.181.111.148: icmp_seq=3 ttl=52 time=33.4 ms

遇到的问题:
刚开始因为以为驱动问题,lsmod看了一下加载的驱动为e1000e,所以在 /etc/modprobe.d/里添加了modprobe.conf文件可是还是不行。
dmesg查看启动信息查看网卡信息为e1000: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
后来查看/lib/modules/2.6.32-71.el6.i686/modules.alias 添加alias eth0 e1000e 还是不行,只能用eth1代替eth0

时间: 2024-10-12 19:16:39

eth0: error fetching interface information: Device not found的相关文章

Linux Centos 6.5网络启动不起来Bringing up interface eth0: Error:Connection activation failed:Device not man

Just follow the below steps and everything will be ok... 1. Remove Network Manager from startup Services.#chkconfig NetworkManager off 2. Add Default Net Manager#chkconfig network on 3.Stop NetworkManager first#service NetworkManager stop 4.and then

Bringing up interface eth0: Error:Connection activation failed:Device not managed by NetworkManager

Just follow the below steps and everything will be ok... 1. Remove Network Manager from startup Services.#chkconfig NetworkManager off 2. Add Default Net Manager#chkconfig network on 3.Stop NetworkManager first#service NetworkManager stop 4.and then

eth0: ERROR while getting interface flags: No such device 没有eth0 有其他的eth

# sudo ifconfig eth0 down eth0: ERROR while getting interface flags: No such device 然后根据这个错误,查看当前的IP信息,结果如下: # ifconfig -a         结果没有发现eth0,倒是出现了eth4.顿时明白了出错的原因,是因为在用命令关闭eth0服务的时候,没有找到相关的设备.根据这些关键字,上网查找了相关的解决方案,而这里的解决方案是:移动/删除rules文件. 这是因为(Ubuntu)系

如何解决虚拟机克隆导致"Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'."

在VMware的虚拟机中克隆CentOS,在重启网卡的时候报错: Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'. Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: E

Bringing up interface eth0: Error: No suitable

Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'. 克隆虚拟机网卡启动中遇到的问题 1.重启网卡之后遇到如下错误 Bringing up interface eth0:  Error: No suitable device found: no device found for connection 'System eth0'. 2.i

retrying with upper case share name mount error 6 = No such device or address

今天想把windows下的资料共享给Linux系统用,日了,安装了samba之后,老是提示如图 气的牙疼,后来把用户名和密码加上之后就OK了. retrying with upper case share name mount error 6 = No such device or address,布布扣,bubuko.com

解决Jenkins上git出现的“ERROR: Error fetching remote repo 'origin'”问题

今天对清掉了Jenkins中项目的工作空间,结果构建出现“ERROR: Error fetching remote repo 'origin'”问题:网上各种找也没找到解决这个问题的方法. 后来看错误之前是“> git.exe config --local --remove-section credential # timeout=10”,不会是跟密码有关吧! 于是将url改成http://用户名:密码@ip/的格式,git配置改成不使用密码,结果OK了. 解决Jenkins上git出现的"

error: insufficient permissions for device(解决adb shell问题)

今天在linux下连接平板usb,试用adb shell时出现error: insufficient permissions for device, 而且我们输入adb devices显示: [email protected]:~$ adb devices List of devices attached ????????????    device 那么我们怎么解决它呢? 首先在终端查看usb的ID,输入lsusb命令,我们可以看到我们刚插如usb的ID号,如: [email protecte

qq2440启动linux后插入u盘出现usb 1-1: device descriptor read/64, error -110,usb 1-1: device not accepting address 8, error -110

上位机:ubuntu14.04 64bit 下位机:qq2440 交叉编译器:arm-linux-gcc 3.4.1 下位机使用的linux内核版本:kernel2.6.13 1.插入u盘时错误信息如下: [[email protected] /home]# usb 1-1: new full speed USB device using s3c2410-ohci and address 6usb 1-1: device descriptor read/64, error -110usb 1-1