LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2004, 11:50 AM   #1
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Rep: Reputation: 15
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.
 
Old 10-16-2004, 12:00 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
try:
Code:
 dhcpcd -k
 dhcpcd wlan0
 
Old 10-16-2004, 12:10 PM   #3
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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?

Last edited by rwescoat; 10-16-2004 at 12:11 PM.
 
Old 10-16-2004, 12:16 PM   #4
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
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.
 
Old 10-16-2004, 12:22 PM   #5
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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?
 
Old 10-16-2004, 12:22 PM   #6
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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.
 
Old 10-16-2004, 12:24 PM   #7
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
is wlan0 even configured on your system?
 
Old 10-16-2004, 12:30 PM   #8
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
Explain to me how I would do that, and then I can tell you if I've done it or not.
 
Old 10-16-2004, 12:34 PM   #9
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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.
 
Old 10-16-2004, 12:35 PM   #10
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
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?
 
Old 10-16-2004, 12:43 PM   #11
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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.
 
Old 10-16-2004, 12:45 PM   #12
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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?
 
Old 10-16-2004, 12:45 PM   #13
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
good.. you've done kernel compiles before -- did you get wireless support in your current build?
 
Old 10-16-2004, 12:47 PM   #14
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
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.

Last edited by rwescoat; 10-16-2004 at 12:49 PM.
 
Old 10-16-2004, 12:53 PM   #15
rwescoat
LQ Newbie
 
Registered: Oct 2004
Location: /dev/null
Distribution: Gentoo
Posts: 28

Original Poster
Rep: Reputation: 15
I am now booted into the new (2.2.26 with wireless) kernel. Still have to use linux-wlan-ng though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpcd afruscione Linux - Networking 3 03-21-2007 03:33 AM
dhcpcd starting twice Wynd Linux - Networking 0 06-28-2004 12:14 PM
Help with dhcpcd jamescov Slackware 3 11-21-2003 04:25 PM
dhcpcd chrismiceli Linux - Networking 2 10-21-2002 11:09 AM
Please help, dhcpcd! majon96 Linux - Newbie 3 05-19-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration