星空网 > 软件开发 > 操作系统

eth0: error fetching interface information: Device not found

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

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

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

eth0不见了的处理方法
 
1.刚开始运行ifconfig eth0发现网卡不见了。
[root@localhost ~]# ifconfig eth0
eth0: error fetching interface information: Device not found //但是network-scripts里的配置文件全部是eth0的,为什么获取不到也不知道为什么?
处理解决方法只能用eth1替换eth0了,自己创建modprobe.conf文件里面alias eth0 e1000e但是不能识别。
 
2.[root@localhost network-scripts]# mii-tool //查看网卡连接状态
   eth1: negotiated 100baseTx-FD, link ok
 
3.[root@localhost network-scripts]# ifconfig eth1//能发现eth1网卡
 
4.[root@localhost network-scripts]# mv ifcfg-eth0 ifcfg-eth1//修改eth0为eth1
 
5.[root@localhost 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.[root@localhost ~]# cd /etc/sysconfig/networking/ //进入networking目录
[root@localhost networking]# ls//里面有两个文件把里面的设备修改为ifcfg-eth1即可。
devices  profiles
 
7.[root@localhost 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.[root@localhost 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



原标题:eth0: error fetching interface information: Device not found

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

国家海外仓:https://www.goluckyvip.com/tag/95972.html
海外仓的案例:https://www.goluckyvip.com/tag/95975.html
国外的仓储式超市:https://www.goluckyvip.com/tag/95976.html
仓储式超市国外:https://www.goluckyvip.com/tag/95977.html
国外仓储超市:https://www.goluckyvip.com/tag/95979.html
海外仓手表:https://www.goluckyvip.com/tag/95981.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流