Ubuntu 12.04LTS 找不到eth0网卡
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu 12.04LTS 找不到eth0网卡
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我的機器是DELL 14R INSPRION 7420 筆記本。試了好多方法都不行,比如這個教程:
1. sudo ifconfig -a //查看所有網卡現狀,看eth0是否存在,在結果列表應該找不到eth0網卡的,除了lo之外,正常應該還有一個ethX2. vim /etc/network/interfaces //修改內容如下 auto ethXiface ethX inet dhcp//或 www.2cto.com auto ethXiface ethX inet staticaddress 192.168.0.101netmask 255.255.255.0gateway 192.168.0.13. sudo /etc/init.d/networking restart //重新啟動網卡,問題可解決。?
因為我的網卡根本沒有驅動進來,所以這些都是胡鬧。
?
正確做法:
先查看一下網卡信息:
wy@wy-Inspiron-7420:~$ lspci -k|grep -i -A2 net 02:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)Subsystem: Intel Corporation Centrino Wireless-N 2230 BGNKernel driver in use: iwlwifi -- 03:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)Subsystem: Dell Device 055fKernel driver in use: alx從上可見我的有線網卡是AR8161 Gigabit Ethernet。然后去找這個型號的網卡驅動并安裝(如果是其它網卡的,在百度谷歌里去搜它的驅動)。
sudo -i #進root權限wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-03-12-p.tar.bz2 tar xvf compat-wireless-2012-03-12-p.tar.bz2 cd compat-wireless-2012-03-12-p ./scripts/driver-select alx make make install ./scripts/alx-enable atl1c ./scripts/alx-enable alx modprobe alxok,eth0出來啦。
?
?
轉載于:https://www.cnblogs.com/duanguyuan/p/3673265.html
總結
以上是生活随笔為你收集整理的Ubuntu 12.04LTS 找不到eth0网卡的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CentOS下系统时间同步和时区的修改和
- 下一篇: Adroid真机调试