LinuxQuestions.org
Visit Jeremy's Blog.
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-07-2005, 08:08 PM   #1
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Rep: Reputation: 15
dhcpcd annoyance.


Can someone assist me with a dhcpcd annoyance? I have my own wireless network scripts that setup my iwconfig params, and then call dhcpcd to start the interface. When I go from one wireless lan to another, I never get an IP address on the first try. dhcpcd acts like it got an IP address, but it doesn't. I have to kill dhcpcd and restart it to get an IP address. I have tested this on my wired lan and get the same results.

For example: While at work, my IP address is 172.20.1.34. I turn off my laptop, go home and log into my wireless lan. My home lan is 192.168.0.X. The first time I run dhcpcd I don't get an address, so I "killall dhcpcd" and then re-run my wlan script. Now I get an IP address.

Is there a way to tell dhcpcd to apply the new address if it can't use the old lease? (I think this is a lease issue.)

Has anyone seen this? I've lived with this through multiple versions of SuSE. Tonight I just decided to ask...
 
Old 09-07-2005, 08:15 PM   #2
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Original Poster
Rep: Reputation: 15
I think I found it. There's an option in /etc/sysconfig/network/dhcp to release the lease when logging the interface off:

# Send a DHCPRELEASE to the server (sign off the address)? (yes|no)
# This may lead to getting a different address/hostname next time an address
# is requested. But some servers require it.
#
DHCLIENT_RELEASE_BEFORE_QUIT="yes"


I'll let everyone know how this works.
 
Old 09-07-2005, 08:17 PM   #3
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
rcdhcpd restart

You have to release the settings before you can repopulate them. Essentially that's what restarting
the service is doing. For full effect, you can do a rcnetwork restart.

It's not a suse or dhcp thing. It's a low level network thing. You can't change static ip's on the fly either unless you reset the connection/device. On more complex AP lan's like cisco aeronet devices, you can roam between AP's without resetting your IP schema- but that isn't something that you'll be able to do with what you are describing.
 
Old 09-08-2005, 06:36 AM   #4
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Original Poster
Rep: Reputation: 15
I'm not having an issue with the DHCP Daemon, it's dhcpcd, the client app. I don't even have the DHCP Daemon installed on my laptop, just a dhcp client, and I can't be expected to restart the DHCP Daemon at every location I log into!

All I want is for the dhcp client to release the lease when I log my NIC off. Either that, or accept a new license when I go to a new network. Besides, I think I found the answer already.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
konqueror annoyance in 9.2? LucidParody SUSE / openSUSE 4 02-26-2005 10:36 AM
sound annoyance invinciblegod Linux - Laptop and Netbook 0 02-19-2005 06:56 AM
xmms annoyance claybub Linux - Software 1 06-30-2004 01:27 PM
Linux annoyance lhiggins Linux - Newbie 6 07-06-2003 10:17 PM
Annoyance in KDE StonedZealot Linux - Software 0 05-21-2003 04:40 PM

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

All times are GMT -5. The time now is 08:39 PM.

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