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 09-28-2011, 06:38 AM   #1
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Rep: Reputation: 221Reputation: 221Reputation: 221
Question DHCP lease only obtainable with dhcpcd; wicd won't grab it for whatever reason.


This is just a question of curiosity, really; I'm seeing a behavior which to me doesn't make a lot of sense, so I'm assuming that I lack some crucial piece of information for understanding.

I am running Slackware 13.37 on my work machine. For whatever reason, the wicd GUI experiences a timeout when trying to obtain a DHCP lease over my wired connection at the office. The odd part is, invoking dhcpcd from the command line gets a lease every time, without issue.

At home, or on any other network I've encountered with this machine, wicd will pull a DHCP lease just fine, over the wired interface or wifi.

Are the timeouts different? I've always thought that both methods were essentially the same. I would have even guessed that wicd was invoking dhcpcd, but I suppose that it isn't, or it is doing so with a different set of options than the defaults. There doesn't seem to be an option to adjust the timeout length in wicd. Of course, you can with dhcpcd, but the default in this case seems to work just fine.

Invoking dhcpcd from the command line is actually faster than bringing up the wicd GUI anyway, so this isn't really a problem, but I wouldn't mind knowing what the difference between the two is, if anybody can shed light on it.
 
Old 09-28-2011, 10:06 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by foodown View Post
Are the timeouts different? I've always thought that both methods were essentially the same. I would have even guessed that wicd was invoking dhcpcd, but I suppose that it isn't, or it is doing so with a different set of options than the defaults. There doesn't seem to be an option to adjust the timeout length in wicd. Of course, you can with dhcpcd, but the default in this case seems to work just fine.

Invoking dhcpcd from the command line is actually faster than bringing up the wicd GUI anyway, so this isn't really a problem, but I wouldn't mind knowing what the difference between the two is, if anybody can shed light on it.
Seems to be a known bug:
http://wicd.sourceforge.net/moinmoin/FAQ

wicd doesn't get the address, it depends on the default program dhclient to get it. dhcpd is a DHCP server which can be used as a client.
Weirdly, ISC (the authors of dhcpd) suggest that if you can't get an address with dhcpd, then use dhclient.
 
Old 09-29-2011, 06:42 AM   #3
foodown
Member
 
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611

Original Poster
Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by smallpond View Post
Seems to be a known bug:
http://wicd.sourceforge.net/moinmoin/FAQ

wicd doesn't get the address, it depends on the default program dhclient to get it. dhcpd is a DHCP server which can be used as a client.
Weirdly, ISC (the authors of dhcpd) suggest that if you can't get an address with dhcpd, then use dhclient.
Thanks for the reply!

I was actually talking about dhcpcd, the DHCP Client Deamon, and not dhcpd or dhclient.

Nonetheless, the fact that you point out that wicd uses dhclient makes this slightly more strange, because when I invoke dhclient directly from the CLI, it too is able to obtain a lease, whereas wicd is not.

Hmmmm .... There is clearly still something that I don't get. Oh, well.
 
Old 09-29-2011, 01:01 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by foodown View Post
Thanks for the reply!

I was actually talking about dhcpcd, the DHCP Client Deamon, and not dhcpd or dhclient.
Whoops. Missed that.
Quote:
Nonetheless, the fact that you point out that wicd uses dhclient makes this slightly more strange, because when I invoke dhclient directly from the CLI, it too is able to obtain a lease, whereas wicd is not.
In that case maybe dhclient is not your default dhcp client, because the wicd site says it uses the default. Also, check the order that services are started to make sure that it makes sense.
 
  


Reply

Tags
dhcp, dhcpcd, lease, timeout, wicd



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
[SOLVED] dhcpcd: eth0: renewing lease w1k0 Linux - Networking 4 10-05-2010 09:47 PM
dhcpcd fails to use offered lease subdriver Linux - Networking 5 05-10-2009 10:00 PM
What does dhcpcd do when it fails to lease an IP address? bulldozer Linux - Networking 2 11-26-2006 04:57 PM
DHCP won't renew lease without reset of router! amped Linux - Networking 9 03-23-2004 10:37 PM
DHCP won't grab IP for either NIC's. mrsolo Linux - Networking 4 12-31-2003 03:10 PM

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

All times are GMT -5. The time now is 01:08 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