eth0 or dhcpcd not working

Post Reply
Message
Author
mobybit
Posts: 19
Joined: Mon 03 Mar 2008, 02:24

eth0 or dhcpcd not working

#1 Post by mobybit »

I had my Puppy 3.01 NOP system working with a Belkin USB wireless adapter. During the time I was getting the WLan config worked out I did have eth0 working as well. But after using it only with a wireless connection for a couple of months, I can't get the eth0 connection to work now that I moved the computer to where I only have wired access.

Doing ifconfig eth0 up followed by ifconfig -a shows eth0 present with Link and UP status, small (1-4) RX & TX counts, but no IP address.

Then checking for and deleting any /etc/dhcpc/dhcpcd-eth0.* followed by dhcpcd -d eth0 seems to fail in getting an IP address. Furthermore, doing ifconfig -a at this point shows Link, NO UP status, larger (10-40) RX & TX counts, and still no IP address.


What should I look at here to find out what's failing ?

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

Re: eth0 or dhcpcd not working

#2 Post by erikson »

mobybit wrote:What should I look at here to find out what's failing ?
First thing to check is whether the i/f is connected to a running dhcp server.
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

mobybit
Posts: 19
Joined: Mon 03 Mar 2008, 02:24

How ?

#3 Post by mobybit »

Yes, I'm pretty sure that there is a DHCP server on the line.

Short of digging out a network sniffer, is there a way to check for protocol activity from the Puppy UI or command line ?

Is there a Dhcpcd log ?

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

Re: How ?

#4 Post by erikson »

mobybit wrote:Short of digging out a network sniffer, is there a way to check for protocol activity from the Puppy UI or command line ?
For testing, you could assign some static IP address

Code: Select all

ifconfig eth0 192.168.x.y
with appropriate x and y (assuming you're on subnet 192.168.x.0/24). Then check if you can ping other machines on the subnet, and the dhcp server in particular.
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

mobybit
Posts: 19
Joined: Mon 03 Mar 2008, 02:24

#5 Post by mobybit »

Yes, assigning a static IP enables the network communications to work.

So, it's just that Dhcpd is not working for some reason.

I noted that dhcpcd gives a result code of 14 when run in /etc/rc.d/rc.network . What is result code 14 ?

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#6 Post by Sage »

Router settings?

User avatar
erikson
Posts: 735
Joined: Wed 27 Feb 2008, 09:22
Location: Ghent, Belgium
Contact:

#7 Post by erikson »

mobybit wrote:So, it's just that Dhcpd is not working for some reason.
Obviously. I don't know result code meanings.

I also don't know the configuration of your network. How many machines are connected on the same subnet? How many of these are configured for dhcp? What kind of machine provides the dhcp server function? Do you have access to this machine?

Just to exclude potential corruption of your Puppy install, did you try to boot from a pristine Puppy live-CD (with pfix=ram), and see if dhcp works then?
[size=84][i]If it ain't broke, don't fix it.[/i] --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
[url]http://www.desonville.net/[/url]
Puppy page: [url]http://www.desonville.net/en/joere.puppy.htm[/url][/size]

Post Reply