You are not logged in.

#1 2011-03-08 17:40:50

Terkhen
Member
Registered: 2011-03-08
Posts: 6

[SOLVED] Problem with wired connection to router (using r8169)

Hello:

Connection fails when I try to connect my computer to my router using a cable. While the computer boots the router LED for the ethernet port being used will stay on until Arch Linux starts loading. After trying "/etc/rc.d/network restart", dmesg | grep eth0 outputs:

ADDRCONF(NETDEV_UP): eth00: link is not ready
r8169 0000:03:00.0: eth0: link down
ADDRCONF(NETDEV_UP): eth00: link is not ready

Using different network cables did not solve this issue. Other computers can connect to the same router using cable, and the computer with the issue can also connect to my laptop using cable.

Thanks in advance for any tips regarding this issue.

Last edited by Terkhen (2011-03-10 11:50:15)

Offline

#2 2011-03-08 18:20:51

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Problem with wired connection to router (using r8169)

try to up the device ...


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#3 2011-03-09 08:19:21

Terkhen
Member
Registered: 2011-03-08
Posts: 6

Re: [SOLVED] Problem with wired connection to router (using r8169)

After using "ifconfig eth0 up", the connection problem remains and I get the same errors.

Last edited by Terkhen (2011-03-09 08:19:54)

Offline

#4 2011-03-09 19:13:36

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Problem with wired connection to router (using r8169)

are you in the network group ?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#5 2011-03-10 04:36:14

ithil
Member
Registered: 2011-01-06
Posts: 11

Re: [SOLVED] Problem with wired connection to router (using r8169)

Make sure you run dhcpcd after you bring up eth0.

sudo ifconfig eth0 up
sudo dhcpcd eth0

Offline

#6 2011-03-10 10:58:02

Terkhen
Member
Registered: 2011-03-08
Posts: 6

Re: [SOLVED] Problem with wired connection to router (using r8169)

nTia89: After adding my user to the network group the error is still present.

ithil:

dhcpcd[1330]: version 5.2.11 starting
dhcpcd[1330]: eth0: waiting for carrier
dhcpcd[1330]: timed out

I have installed a different network interface card and it connects fine, both while booting and when using "ifconfig eth0 up" and "dhcpcd eth0". The card causing problems is the one integrated with the motherboard.

Offline

#7 2011-03-10 11:05:07

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] Problem with wired connection to router (using r8169)

if you search with google you will find many users with the same problem........

try this: http://adam.rosi-kessel.org/weblog/2008 … wn-problem


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#8 2011-03-10 11:49:07

Terkhen
Member
Registered: 2011-03-08
Posts: 6

Re: [SOLVED] Problem with wired connection to router (using r8169)

The "ethtool -s eth1 autoneg off" command certainly allows me to connect when using the problematic network interface card. Sadly, there is no "/etc/network/interfaces" file in Arch Linux and if the command is added to rc.local it won't be executed before the Network daemon tries to set up a connection.

To solve this, I followed this explanation to create a small daemon that executes the command. The file must be placed at /etc/rc.d (for example, (/etc/rc.d/ethtool).

#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
    start)
        ethtool -s eth1 autoneg off
        ;;
    stop)
    ;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

You need to give it the right permissions:

chmod 0755 /etc/rc.d/ethtool

Then I set it to run before network in DAEMONS at /etc/rc.conf:

DAEMONS=(... ethtool network ...)

At the next reboot, my computer connected correctly to the router.

Thank you for helping me with this issue!

Offline

Board footer

Powered by FluxBB