LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcpcd (https://www.linuxquestions.org/questions/linux-networking-3/dhcpcd-243442/)

rwescoat 10-16-2004 11:50 AM

dhcpcd
 
I have installed the REAL dhcpcd (not the Debian one) and uninstalled the Debian one. However, when I type in dhcpcd on the command line and then run ifconfig -a, I do not see that DHCP has given me an IP address. Can anyone help me find out what's going on?

I should also add that I am using interface wlan0 with linux-wlan-ng.

secesh 10-16-2004 12:00 PM

try:
Code:

dhcpcd -k
 dhcpcd wlan0


rwescoat 10-16-2004 12:10 PM

This is interesting. I used what you said, and then in the opposite order (knowing that it was not running at the moment).

I ran:
Code:

dhcpcd wlan0
dhcpcd -k

But, when I ran dhcpcd -k, here was its response:
Code:

****  dhcpcd:  not running
So, even after I summoned it, it still wasn't running. Is there a logfile that I can look at, or even better, a fix?

jev-bird 10-16-2004 12:16 PM

Well it would help probably if you actually bring the link up even if it already is. I would have similar issues when I used dhcp for network. i would do.

ifconfig 'device' down
dhcpcd
ifconfig 'device' up
ifconfig -a
in that sequence and voila I'd be up and running.

If not then try dhclient insead.

secesh 10-16-2004 12:22 PM

no... dhcpcd -k kills it...

i put them in order for a reason.. to flush and restart the service forcing a renewal of dhcp on wlan0... what happened the first time?

rwescoat 10-16-2004 12:22 PM

I will try dhclient, but it seems that I have another error. When I run
Code:

ifconfig wlan0 up
I get the error message
Code:

SIOCSIFFLAGS: No such device
Needless to say, I'm about to upgrade my system to a 2.4 (or better yet 2.6) kernel. Right now, I'm on the Debian vanilla 2.2 kernel (which works fine with the rest of my devices) because linux-wlan is too much trouble.

secesh 10-16-2004 12:24 PM

is wlan0 even configured on your system?

rwescoat 10-16-2004 12:30 PM

Explain to me how I would do that, and then I can tell you if I've done it or not.

rwescoat 10-16-2004 12:34 PM

Quote:

Originally posted by secesh
no... dhcpcd -k kills it...

i put them in order for a reason.. to flush and restart the service forcing a renewal of dhcp on wlan0... what happened the first time?

Oh, and just to let you know, I tried them in the order that you specified first.

secesh 10-16-2004 12:35 PM

hmm... you've never done it.

do you know if your wireless card is supported by linux? what card (make/model/version/any other info) is it?

have you ever compiled a kernel before?

do you know your full system hardware info?

-- you're getting into difficult ground here. it looks like you're going to need a new kernel, and people who haven't done that before don't like the idea. ready for the challenge?

rwescoat 10-16-2004 12:43 PM

Quote:

Originally posted by secesh
hmm... you've never done it.

do you know if your wireless card is supported by linux? what card (make/model/version/any other info) is it?

have you ever compiled a kernel before?

do you know your full system hardware info?

-- you're getting into difficult ground here. it looks like you're going to need a new kernel, and people who haven't done that before don't like the idea. ready for the challenge?

1. Netgear MA311 PCI Prism2.5 Chipset
2. Yes, I am using it right now.
3. Pretty much all of it. Enough to compile a kernel successfully.

But I don't think that I configured my wireless card correctly.

rwescoat 10-16-2004 12:45 PM

As a matter of fact, I now know that I did not configure it correctly because in the dhcpcd logs, I see the
Code:

SIOCGIFHWADDR: No such device
along with another No such device error. How do I fix this?

secesh 10-16-2004 12:45 PM

good.. you've done kernel compiles before -- did you get wireless support in your current build?

rwescoat 10-16-2004 12:47 PM

I didn't figure that I'd need it because I had linux-wlan. Should I compile it as a module or built-in?

EDIT: Cancel that. No choice.
EDIT AGAIN: It's compiling now.

rwescoat 10-16-2004 12:53 PM

I am now booted into the new (2.2.26 with wireless) kernel. Still have to use linux-wlan-ng though.


All times are GMT -5. The time now is 12:42 PM.