[转载]ubuntu Atheros Communications Device 1083 驱动

Ubuntu 版本: Ubuntu server 10.10

在2016-03-26 上午时,拆开公司一台server电脑的CPU风扇不转,电源都烧掉了(潮湿的原因)。。。

在2016-03-28 打算把他弄好,于是和另外一个同事,把之前同事的电脑,拿来做server,可是闲置的只有一台可用了,换了硬盘,换了内存条。插上网线,网线灯不亮,因为是网卡坏了,要出钱买独立网卡,可是不想花钱去买,最后还是相信是驱动的原因。

在使用

lspci

查看网卡驱动,而且ifconfig命令只会,只有127.0.0.1这个。

在尝试了ubuntu Atheros Communications Device 1083 驱动 之后,

1 lspci -vv | grep Atheros #查看网卡型号
2 sudo modprobe atl1c #加载网卡驱动
3 sudo chmod a+w /sys/bus/pci/drivers/atl1c/new_id #增加文件写权限
4 sudo echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id #修改网卡驱动参数
5 sudo chmod a-x /sys/bus/pci/drivers/atl1c/new_id #恢复文件权限

在第一行输入的命令之后,网卡的型号对上了,

Ethernet controller: Atheros Communications Device 1083 (rev c0)

感觉是可行~~,输完所有上面命令之后,台式主机的网线灯终于一闪一闪亮晶晶的了。

看看机器ip,ifconfig之后,输出的只有127.0.0.1本地,尝试重启网络

sudo /etc/init.d/networking restart

就显示

Ubuntu:etho:Error while getting interface flags:No such device 的信息。

参考:eth0: ERROR while getting interface flags: No such device ,说需要删除起缓存文件

1 sudo cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rulesbackup #备份要删除的文件
2 sudo rm /etc/udev/rules.d/70-persistent-net.rules #删除缓存文件

使用sudo shutdown -r now 命令进行重启,再次登录Ubuntu,输入ifconfig输出的还是只有127.0.0.1,主机的网线灯和之前一样不闪了。再次尝试上面安装网卡驱动之后,主机的网线灯照常闪了,ifconfig输出的信息也有想要的eth0 ip了,yes!

感谢前辈在前面走的路,记录其走的路,让我这个后辈能在网上找到其解决方法!

原文地址:https://www.cnblogs.com/fsong/p/5328927.html