You are not logged in.

#1 2012-03-30 13:37:35

adieulot
Member
Registered: 2012-03-30
Posts: 4

dhcpcd works one time out of two

Hi, I have a fresh install of Arch and the network works one time out of two, via ethernet.

When it doesn’t work I saw that dhcpcd prints “waiting for carrier” in /var/log/messages.log, then nothing else, at startup the message “:: Setting network” shows during approximately 20 seconds.

When it does work /var/log/messages has a “carrier acquired” message printed by dhcpcd, and the message “:: Setting network” at startup shows during at least 5 seconds, which I find quite long…

I’m using eth0, and I have an eth1 that doesn’t work anymore, I don’t know if dhcpcd could be confusing the two of them randomly.

I had the same problem with old installations of Arch, but I was just switching distro to ”resolve” the problem at that time.

Help would be appreciated, I don’t want anything else than Arch.

Offline

#2 2012-03-30 14:47:25

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: dhcpcd works one time out of two

It could very well be eth0 and eth1 switching every so often (I have this problem myself).

Have a look around, there's been a good amount of talk about it:
https://wiki.archlinux.org/index.php/Ud … ork_device
http://axcoto.com/blog/article/537

Oh, and welcome to the forums! big_smile

Last edited by cesura (2012-03-30 14:48:17)

Offline

#3 2012-03-30 14:48:20

Farsk1
Member
From: Norway
Registered: 2010-08-14
Posts: 15

Re: dhcpcd works one time out of two

I suppose you're running dhcpcd like this:

dhcpcd eth0

What ethernet cards do you have, please post the output of:

lspci | grep Ethernet

And i suppose you have your ethernet-cable plugged into the right card?

Offline

#4 2012-04-01 12:01:26

adieulot
Member
Registered: 2012-03-30
Posts: 4

Re: dhcpcd works one time out of two

Thanks, in fact it was more like one time out of ten, I did not have the problem since last time.

itsbrad212 I’ve now done what was on the wiki, /var/log/messages.log shows that lan0 is used succesfully so I guess eths won’t switch anymore. However the startup time is still insane (I’ve recorded the time and it’s 12 seconds not 5). neutral

Farsk1 I have no idea how “I” am running dhcpcd.

$ lspci | grep Ethernet
00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Last edited by adieulot (2012-04-01 12:03:13)

Offline

Board footer

Powered by FluxBB