You are not logged in.

#1 2012-05-23 16:29:36

Zenogias
Member
Registered: 2011-02-24
Posts: 10

eth0 link down on fresh arch install (r8169)

Hey guys so I've searched the forums as well as googled my problem with no success. It seems to detect my card...
I have a built in Realtek NIC RTL8111/8168B PCI Express Gigabit Ethernet Controller
Kernel driver in use: r8169
Kernel modules: r8169

I tried:
# modprobe 8169

Then I added r8169 to MODULES array in rc.conf

lsmod shows:
r8169 42643 0
nii 3995 1 r8169

dhcpcd times out as well.

I checked my cable connection. It worked fine on my Ubuntu but not on fresh arch install. I've read all manner of solutions out there, but one I can't apply is the downloading for drivers since I have no connection.

Please help me with this problem. I've been struggling for 8 hours already....

Offline

#2 2012-05-23 16:53:55

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: eth0 link down on fresh arch install (r8169)

The correct order would be:

* modprobe r8169
* ip link set dev eth0 up
* dhcpcd eth0

If this doesn't work, tell us wat dmesg shows after inserting the module. Is an interface detected?

Offline

#3 2012-05-23 17:09:29

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: eth0 link down on fresh arch install (r8169)

This thread might help: https://bbs.archlinux.org/viewtopic.php?id=132795

You can download r8168 from aur using a livecd if necessary?

Offline

#4 2012-05-23 17:35:15

palegray
Member
Registered: 2011-10-25
Posts: 2

Re: eth0 link down on fresh arch install (r8169)

THANK YOU SPIDER.007!

I just got on to ask about this. I read through https://bbs.archlinux.org/viewtopic.php?id=141420 but wasn't able to get it working; I'd been installing from a CD instead of a net install. Much appreciated! So odd that Arch's wired net doesn't work out of the box.

Offline

#5 2012-05-23 20:47:44

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: eth0 link down on fresh arch install (r8169)

It should work out of the box really from CD with that NIC and driver, but some PCs seem to have odd troubles with the card. Take it out of the rc.conf modules array again though.

You need to give more information of what is not working as Spider.007 asked.
AFter booting execute the commands Spider.007 said like this:

rmmod r8169
modprobe r8169
ip link set dev eth0 up
dhcpcd eth0

and then look at the output of

dmesg | grep eth

and

less /var/log/everything.log | grep eth

Give details about errors here or if you are unsure about the output then please.

Offline

#6 2012-05-23 21:18:30

palegray
Member
Registered: 2011-10-25
Posts: 2

Re: eth0 link down on fresh arch install (r8169)

Is there anyway to set the machine up so that it runs --

ip link set dev eth0 up
dhcpcd eth0

-- right after the machine boots? Because it fixes the network, but the configuration doesn't stay through a reboot.

Offline

#7 2012-05-23 22:39:14

Zenogias
Member
Registered: 2011-02-24
Posts: 10

Re: eth0 link down on fresh arch install (r8169)

I've essentially tried the commands shown but I tried it again since certain commands seem to have different.
I also read the post that palegray mentioned.

I invoked:
# modprobe -r r8169
# modprobe r8169
# ip link set dev eth0 up
# dhcpcd eth0

Output:

dhcpcd[845]: version 5.2.12 starting
dhcpcd[845]: eth0: waiting for carrier
dhcpcd[845]: timed out

So I invoked:
# dmesg | grep eth0

Output:
[    3.661496} r8169 0000:02:00.0: eth0: RTL8168c/8111c at 0xffffc9000037e000, 00:24:1d:8e:78:db, XID 1c4000c0 IRQ 42
[    7.411390] r8169 0000:02:00.0: eth0: link down
[    7.411398] r8169 0000:02:00.0: eth0: link down
[ 100.370326} r8169 0000:02:00.0: eth0: RTL8168c/8111c at 0xffffc9000037e000, 00:24:1d:8e:78:db, XID 1c4000c0 IRQ 42
[ 100.332749] r8169 0000:02:00.0: eth0: link down
[ 100.332761] r8169 0000:02:00.0: eth0: link down

Tried # less /var/log/everything.log | grep eth0 and the output is the same as above. (only difference being the time showing of when it happened)

@stryder
Thanks for the link but i don't see how it helps me because i STILL don't have internet access after i blacklist r8169..

Last edited by Zenogias (2012-05-23 22:55:00)

Offline

#8 2012-05-23 23:47:06

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: eth0 link down on fresh arch install (r8169)

If you blacklist r8169 it is only to use r8168 which you can get from aur (though now that I checked they seem to be all for special kernels). I was suggesting that perhaps you can use a livecd and chroot.

Offline

#9 2012-05-24 00:48:07

Zenogias
Member
Registered: 2011-02-24
Posts: 10

Re: eth0 link down on fresh arch install (r8169)

Thanks.
I tried to get connection in the live environment right before I read your post and i'm still receiving same errors when i do:
# dhcpcd eth0
even after
# ip link set eth0 up...

I really hate my problem...

Offline

#10 2012-05-24 02:06:04

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: eth0 link down on fresh arch install (r8169)

I thought ubuntu worked? You could install another network card and save yourself some trouble. Anyway hopefully someone else can help.

Offline

#11 2012-05-24 02:17:54

Zenogias
Member
Registered: 2011-02-24
Posts: 10

Re: eth0 link down on fresh arch install (r8169)

I've used my ubuntu for almost 4 years now, I had absolutely no problems detecting the card and it's worked fine until now.
Your solution is the easy way out, but at this point, I'm really tempted to do that because I fear that there is no solution to my issue.

Offline

#12 2012-05-24 09:13:04

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: eth0 link down on fresh arch install (r8169)

Yes, I thought you would have an ubuntu livecd lying around. FYI I have the same builtin gigabit ethernet controller. I use the LTS kernel. Works fine with r8169.

Offline

#13 2012-05-24 09:55:04

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: eth0 link down on fresh arch install (r8169)

Recetly I had a problem with my PCI adapter which I couldn't  figure out the reason at first.
later, it turned out to be a problem with the speed and duplex setting of the interface.

if you have mii-tool or ethtool  check

#mii-tool <iface>    (or)
#ethtool <iface>

See man mii-tool for a list of the speed and duplex settings available.
the settings can be changed by

# mii-tool -F <setting> <iface>   (or)
#ethtool -s <iface> speed < > duplex < > autoneg < >

see ethtool -h

Offline

Board footer

Powered by FluxBB