You are not logged in.

#1 2010-06-29 21:47:49

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

[SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

I can't get my network running for the life of me on a new install.

network daemon fails at boot and if i try setting up the network as described in various places in the wiki, i get "dhcpcd: timed out".

I've double checked all of my settings. My Arch on my desktop works just fine. I just can't get the network to work on this laptop.

Any ideas? Thanks.

Last edited by trusktr (2010-07-28 20:14:07)


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-06-29 22:02:01

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Yup ... for starters you have to be more specific smile
What type of connection are you working on Wifi or wired?
What is the result of "ifconfig" what's the output of "route"

What type of physical card do you have?

R.

Offline

#3 2010-06-29 22:12:06

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

It's just the wired connection (eth0).

ifconfig eth0:

eth0      Link encap:Ethernet  HWaddr 00:30:67:5E:2C:72
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0x2000

It's clearly missing the inet addresses that should (it would seem) appear automatically with no problems straight out of the box with the correct settings (rc.conf, hosts, etc).

The card i'm using: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
The driver in use by the kernel: natsemi
module: natsemi

Last edited by trusktr (2010-06-29 22:12:59)


joe@trusktr.io - joe at true skater dot io.

Offline

#4 2010-06-29 22:21:38

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Can you connect with a static adress from command line? Any related messages in dmesg?


edit: if you suspect a bug in dhcpd, try dhclient. example for setting static IP:

#ifconfig eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255
#route add default gw 192.168.0.1

Last edited by hokasch (2010-06-29 23:03:26)

Offline

#5 2010-06-29 22:32:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

How do you connect to the internet? It can be a hardware problem - is the cable working? Try the one you use for your desktop.
What's the exact problem w/ dhcpcd - is it broadcasting for a lease and timing out or sth else?

Offline

#6 2010-06-29 22:43:25

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

ifconfig -a and iwconfig  output please.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2010-06-29 23:03:21

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

I had to increase timeout value from 2 to 30 in network script inside /etc/rc.d for dhcpcd to obtain an IP. I'm using wireless but u can try it too and see if it fixes your problem with ethernet connection.

In your case, you could try to add the following to /etc/conf.d/dhcpcd

DHCPCD_ARGS="-q -t 10"

Offline

#8 2010-06-29 23:17:34

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

That's the thing, I don't connect to the internet. This is a brand new install. There's no way for me to download dhclient or any other packages (like firmware for my wireless for example) without first having a connection. smile

There are only two messages in dmesg relating to eth0: one that shows the "natsemi" driver loaded, and the other that says "DSPCFG accepted after 0 usec".

Mr.Elendig, ifconfig is already shown above, i have only omitted the "lo" interface. iwconfig is not necessary because i'm not using wireless.

dhcpcd times out while "Broadcasting for a lease".

I'll try your suggestion combuster and see what happens.


joe@trusktr.io - joe at true skater dot io.

Offline

#9 2010-06-29 23:24:51

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

You clearly are not getting an address, as you well pointed out.
What's the output of  su -c 'mii-tool', that should tell us whether or not your card is negotiating for an address or not even connecting at all.

R.

Offline

#10 2010-06-29 23:32:33

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

hey ralvez, that command shows "eth0: no link"


joe@trusktr.io - joe at true skater dot io.

Offline

#11 2010-06-29 23:40:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

> This is a brand new install.
What was previously installed on this notebook? Any problems with the wired internet? If you've recently used it (before you've installed Arch) and it was fine, we're 99% sure it's not a hardware failure of the card. Maybe it's the ethernet cable - did you check it?

How 'bout

su -c 'mii-tool -vv'

Last edited by karol (2010-06-29 23:46:02)

Offline

#12 2010-06-29 23:51:02

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

trusktr wrote:

hey ralvez, that command shows "eth0: no link"

OK then... it may be a problem with your card.
Or the driver you are using does not work with the card or it could also be a cable problem.'

R.

Edit: BTW what's the configuration of your /etc/rc.conf?

Last edited by ralvez (2010-06-29 23:54:31)

Offline

#13 2010-06-29 23:59:36

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Hey karol, that command seems to show everything fine except for the "no link".

The previous OS was Windows XP and it worked with the same cable and card, no hardware difference. The cable also works on my other desktop.

If it happens to be the driver, ralvez, how would i go about installing the correct one with no connection? Would i have to add it to the install ISO?


joe@trusktr.io - joe at true skater dot io.

Offline

#14 2010-06-30 00:35:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

According to http://hardware4linux.info/component/19239/ natsemi is the correct driver for your card.
http://hardware4linux.info/module/natsemi/ show almost not problems w/ the driver.

If you're using a hub/switch/router, try inserting the cable into another another socket.

Post your /etc/resolv.conf.

Offline

#15 2010-06-30 00:39:03

harryNID
Member
From: P3X-1971
Registered: 2009-06-12
Posts: 117

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Hi trusktr

This might seem stupid but are you sure you are using "eth0" and not "eth1" etc.? As an example I have two on-board lans and I'm plugged into eth1. I had to change rc.conf as it defaults to using eth0.

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="dhcp"
INTERFACES=(eth1)

Since I am using eth1 and not eth0 here is what I get when I try:

ifconfig eth0:

eth0    Link encap:Ethernet  HWaddr 00:04:4B:00:88:0E 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:23 Base address:0x6000

Look familiar?

I'm not saying this is the case but it could be something as simple as that.

ifconfig -a

should show you how many lans you have.

Thought I would drop the obvious first in case that's all it is.


In solving a problem of this sort, the grand thing is to be able to reason backward. That is a very useful accomplishment, and a very easy one, but people do not practice it much. In the everyday affairs of life it is more useful to reason forward, and so the other comes to be neglected. There are fifty who can reason synthetically for one who can reason analytically.  --Sherlock Holmes

Offline

#16 2010-06-30 00:48:37

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

My resolv.conf is empty:

# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line

I only have one socket to connect to on the back of the laptop.

I also tried using eth1 in rc.conf but that didn't work and it said the interface was not detected. ifconfig -a shows only eth0.

This is so strange!


joe@trusktr.io - joe at true skater dot io.

Offline

#17 2010-06-30 00:51:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

> I only have one socket to connect to on the back of the laptop.
I meant the socket in your hub/switch/router if you're using one.

What kind of notebook is that?

Last edited by karol (2010-06-30 00:53:06)

Offline

#18 2010-06-30 00:56:32

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Oh, lol, let me try that Karol, although the router light is on for that socket.

The notebook is a Compaq (hp) Presario 2182.

I also tried increasing the timeout for dhcpcd (-t 30) but that didn't work.

Last edited by trusktr (2010-06-30 01:11:22)


joe@trusktr.io - joe at true skater dot io.

Offline

#19 2010-06-30 00:59:41

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Changing the socket didn't seem to work.


joe@trusktr.io - joe at true skater dot io.

Offline

#20 2010-06-30 01:50:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

What kind of notebook is that?
Post your rc.conf.

trusktr wrote:

There's no way for me to download dhclient or any other packages (like firmware for my wireless for example) without first having a connection.

You can use your desktop. A bit tedious but doable.


Is it possible that eth0 is the wireless interface?

Offline

#21 2010-06-30 02:12:46

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Assuming your driver is not corrupted or something then post your /etc/rc.conf
You should have it configured to run DHCP like this:

eth0="dhcp"
INTERFACES=(eth0)

gateway="default gw 192.168.1.1"
ROUTES=(!gateway)  <-- Notice the ! before gateway (DHCP will configure the gateway and your /etc/resolv.conf)

R.

Offline

#22 2010-06-30 02:14:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

> Assuming your driver is not corrupted or something
Checksum the iso you downloaded and maybe "simply" reinstall the system.

Offline

#23 2010-06-30 02:29:58

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Yeah, my rc.conf looks exactly like that, trust me, but thanks for the advice ralvez. big_smile

Seems like there is some bug or error somewhere. I'll check the sums when i get home in a bit. good idea Karol. I don't think that eth0 is the wireless device though because dmesg shows it as wlan0.

So far this is the 4th install of Arch i've ever performed. The last all worked just fine with no problems.


joe@trusktr.io - joe at true skater dot io.

Offline

#24 2010-06-30 02:42:40

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Well ... one thing you can do for a test is download Linux Mint live CD and run it.
If it connects and works fine in general then take a look at what driver it's using.
I've done things like that in the past when I find a problem that seem lacking in "logical solutions" so I have a new "point of reference".

Hope this helps.

R

Offline

#25 2010-06-30 02:54:11

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: [SOLVED] "dhcpcd: timed out" on a new Arch Install. Very wierd... Bug?

Cool, good idea ralvez. I'll try it when I get home. smile


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB