so true

心怀未来,开创未来!
随笔 - 160, 文章 - 0, 评论 - 40, 引用 - 0
数据加载中……

eth0 is not ready

final solution:
http://ubuntuforums.org/showthread.php?t=1022411
This is guidance for those with integrated Realtek RTL8111 series gigabit Ethernet, built in to motherboards such as the ASRock G41M-LE.

Ubuntu 8.10 (and may other versions) have been reporting problems with connectivity. Here is the solution in a walk-through format. You must be root (sudo su -).

1) Check to see if the r8169 module is loaded
-> lsmod | grep r816
r8168 41104 0 
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8169
Kernel modules: r8169

2) Download the official Realtek driver
Realtek RTL8111/RTL8168

3) Remove the r8169 module
-> rmmod r8169
-> mv /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko ~/r8169.ko.backup

( the ` is a backtick, it is not an apostrophe or single quote )

4) Build the new r8168 module for the kernel
-> bzip2 -d r8168-8.009.00.tar.bz2
-> tar -xf r8168-8.009.00.tar
-> cd r8168-8.009.00
-> make clean modules
-> make install


5) Rebuild the kernel module dependencies
-> depmod -a
-> insmod ./src/r8168.ko


6) Remove the r8169 module from initrd
-> mv /initrd.img ~/initrd.img.backup
-> mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`


7) Add r8168 module to /etc/modules
-> echo "r8168" >> /etc/modules

8) Reboot, You are done!

9) Examine that ONLY the r8168 module is loaded for the interface
-> lspci -v
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: ASRock Incorporation Device 8168
Kernel driver in use: r8168
Kernel modules: r8168

Actions as needed in fact:
1. download driver;
2. untar and ./autorun.sh
Ok, it's all done.


sudo /etc/init.d/networking restart
sudo ifconfig eth0 down/up
nm-tool
cat /var/log/message
cat /var/log/syslog
dmesg
lspci
lsmod
lshw
dmidecode
biosdecode
cat /proc/cpu
vi /etc/network/interfaces
auto eth0
The solution
- Boot up Windows
- Right click on My Computer
- Click on Properties -> Hardware -> Device Manager
- Expand your network card section and double click on your Realtek network card
- Set "Wake-on-lan after shutdown" to enabled
i removed r8169 and installed r8168
this can be done by downloading it from the realtek-website.
the problem afterwards was that r8169 was coming back after a restart. The solution for this problem can be found here :
http://ubuntuforums.org/showthread.php?t=936379
thanx for the answer.
I had the same problem. I had to use Google for a long time, till i found a solution in a german forum (i am from germany; sorry for my english if it's too bad). Here are the instructions:
First, you need to rename the r8169 driver, because it won't work with this one.
> mv /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko.old
> depmod -a
To save the current ramdiscimage and make a new one:
> mv /boot/initrd.img-`uname -r` /boot/initrd.img-`uname -r`.old
> mkinitramfs -o /boot/initrd.img-`uname -r`
Now you have to reboot. After this, it worked for me. To see weather the right module is loaded, you can use this:
> lsmod | grep r81*
There it showed me the right module, r8168.
==============
The device eth0 is not ready!
记得我的电脑是在一次升级之后出现的这种情况,之前都使用得非常好,觉得可能是安装了一些中文汉化升级包,防火墙的一些英文参数发生了变化。不过还好,本人从网上找到了一些相关的帖子,解决了问题,本人验证过。
在终端中输入: sudo gedit /etc/firestarter/firestarter.sh 
在 # External network interface data
这行注释的上面,添加一行: 
LANG=en_US 
保存后(不须重启),firestarter就可以顺利启动,正常工作了,再也没有那烦人的提示。
注意:在加入LANG=en_US之后,如果再运行firestarter的运行向导,则先前加入的LANG=en_US会消失,错误问题会和以前一样出现,防火墙不能用,你须要再一次加入LANG=en_US
eth0      Link encap:Ethernet  HWaddr 00:24:E8:5F:EF:85  
          inet addr:192.168.1.88  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:e8ff:fe5f:ef85/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2322 errors:0 dropped:906 overruns:0 frame:0
          TX packets:1188 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:215275 (210.2 KiB)  TX bytes:518134 (505.9 KiB)
          Interrupt:169 Memory:dfdf0000-dfe00000 
========
sudo restart network-manager
=============
Suspend causes eth0 to disconnect intermittently
    Install WICD (System > Administration > Synaptic Package Manager; install wicd).
    Uninstall network manager (mark for complete removal network-manager and network-manager-gnome).    Reboot.  

posted on 2013-01-22 10:18 so true 阅读(1096) 评论(0)  编辑  收藏 所属分类: Linux


只有注册用户登录后才能发表评论。


网站导航: