Ubuntu version: Ubuntu Server 10.10
In the morning of 2016-03-26, the CPU fan of a server computer was not turned on and the power was burnt out (damp reason) ...
In 2016-03-28 intends to fix him, so and another colleague, the former colleague's computer, to do server, but only one of the idle, replaced the hard disk, changed the memory. Plug in the network cable, the network cable light is not bright, because the NIC is bad, to pay to buy a separate network card, but do not want to spend money to buy, and finally believe that is the cause of the drive.
When using
Lspci
Check the NIC driver, and ifconfig command only, only 127.0.0.1 this.
After trying the Ubuntu Atheros Communications Device 1083 driver ,
1 lspci-vv | grep Atheros #查看网卡型号 2 sudo modprobe atl1c #加载网卡驱动 3 sudo chmod a+w/sys/bus/pci/drivers/atl1c/new_id #增加文件写权限 4"1969 1083 " >/sys/bus/pci/drivers/atl1c/new_id #修改网卡驱动参数 5 sudo chmod a-x/sys/bus/pci/ drivers/atl1c/new_id #恢复文件权限
After the command entered in the first line, the model of the NIC is on,
Ethernet Controller:atheros Communications Device 1083 (rev C0)
Feel is feasible ~ ~, after losing all the above commands, the desktop computer network cable lights finally flashed a twinkle.
After looking at the machine ip,ifconfig, the output is only 127.0.0.1 local, try to restart the network
sudo/etc/init.d/networking restart
is displayed
Ubuntu:etho:Error while getting interface flags:no such device information.
Reference: Eth0:error while getting interface flags:no such device, saying that the cache file needs to be deleted
1 sudo cp/etc/udev/rules.d/-persistent-net.rules/etc/udev/rules.d/-persistent- net.rulesbackup #备份要删除的文件 2 sudo rm/etc/udev/rules.d/-persistent-net.rules #删除缓存文件
Use the sudo shutdown-r now command to restart, re-login to Ubuntu, the input ifconfig output or only 127.0.0.1, the host's network cable light and before the same flash. Once again try to install the above network card driver, the host network cable lights as usual, ifconfig output information also has the desired eth0 IP, yes!
Thank the predecessors in front of the road, record its way, let me this younger generation can find its solution on the internet!
[Reprint]ubuntu Atheros Communications device 1083 Driver