<div dir="ltr"><br><br><div>I am running Debian testing (amd64) and after running an aptitude update/upgrade my wired network stopped working. I get a cable unplugged message. The cable is OK and the router is OK and the link pulses are there. My wireless is still working.</div>
<div><br></div><div>My system:</div><div>Linux version 3.1.0-1-amd64 (Debian 3.1.8-2) (<a href="mailto:ben@decadent.org.uk">ben@decadent.org.uk</a>) (gcc version 4.6.2 (Debian 4.6.2-11) ) #1 SMP Tue Jan 10 05:01:58 UTC 2012<br>
</div><div><br></div><div>My onboard NIC is </div><div>Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)</div><div><br></div><div>I get this from dmesg</div>
<div>[ 1.325223] eth0: Identified chip type is 'RTL8168D/8111D'.<br>[ 19.611230] r8168: eth0: link down<br>[ 19.611925] ADDRCONF(NETDEV_UP): eth0: link is not ready<br></div><div><br></div><div>i tried downloading the latest drivers (r8168-8.035.00) from Realtek, compiled them and installed (./autorun) and got these messages:</div>
<div><br></div><div>root@orca:~/REALTEK/r8168-8.035.00# ./autorun.sh <br><br>Check old driver and unload it.<br>rmmod r8168<br>Build the module and install<br>Warning: you may need to install module-init-tools<br>See <a href="http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt">http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt</a><br>
DEPMOD 3.1.0-1-amd64<br>WARNING: could not open /lib/modules/3.1.0-1-amd64/modules.builtin: No such file or directory<br>load module r8168<br>Updating initramfs. Please wait.<br>update-initramfs: Generating /boot/initrd.img-3.1.0-1-amd64<br>
WARNING: could not open /var/tmp/mkinitramfs_H9e5XM/lib/modules/3.1.0-1-amd64/modules.builtin: No such file or directory<br>Completed.<br></div><div><br></div><div>I read the reference on codemonkey, but it only talks about 2.4 and 2.6 kernels, so not sure if it is relevant. There was a bug in March regarding the missing file/directory, but the maintainers claim it was fixed. It is also just a warning, so not sure if it is relevant.</div>
<div><br></div><div>lsmod shows:<br>Module Size Used by<br>r8168 235362 0 <br></div><div><br></div><div>ifup eth0 gives<br>RTNETLINK answers: File exists<br>Failed to bring up eth0.<br></div>
<div><br></div><div>ifconfig -a<br>eth0 Link encap:Ethernet HWaddr 00:24:e8:fa:3a:aa <br> inet addr:192.168.25.150 Bcast:192.168.25.255 Mask:255.255.255.0<br> UP BROADCAST MULTICAST MTU:1500 Metric:1<br>
RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br>
Interrupt:45 Base address:0x8000 <br><br>lo Link encap:Local Loopback <br> inet addr:127.0.0.1 Mask:255.0.0.0<br> inet6 addr: ::1/128 Scope:Host<br> UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
RX packets:992 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:992 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:0 <br> RX bytes:79712 (77.8 KiB) TX bytes:79712 (77.8 KiB)<br>
<br>wlan0 Link encap:Ethernet HWaddr 00:24:d6:4d:f4:5c <br> inet addr:192.168.25.206 Bcast:192.168.25.255 Mask:255.255.255.0<br> inet6 addr: fe80::224:d6ff:fe4d:f45c/64 Scope:Link<br> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
RX packets:369882 errors:0 dropped:0 overruns:0 frame:0<br> TX packets:200219 errors:0 dropped:0 overruns:0 carrier:0<br> collisions:0 txqueuelen:1000 <br> RX bytes:238476416 (227.4 MiB) TX bytes:61312210 (58.4 MiB)<br>
<br></div><div>/etc/network/interfaces</div><div># The loopback network interface<br>auto lo<br>iface lo inet loopback<br><br># The primary network interface<br>#allow-hotplug eth0<br>NetworkManager#iface eth0 inet dhcp<br>
auto eth0<br>iface eth0 inet static<br> address 192.168.25.150<br> netmask 255.255.255.0<br> gateway 192.168.25.1<br> dns-search <a href="http://tc.ph.cox.net">tc.ph.cox.net</a><br> dns-nameservers 68.2.16.25 68.2.16.30<br>
</div><div><br></div><div>Thanks for any suggestions you may have.</div><div><br></div><div>Mark</div></div>