Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-18-2005, 05:14 AM
|
#1
|
Member
Registered: Jan 2004
Posts: 54
Rep:
|
Continue DHCP lease after reboot
Hello,
We have a slow DHCP server in our LAN and the IP assignment scheme for machine is static. Due to this, boot process takes a lot of time after message determining IP information. However, to retain my hostname, I have to use DHCP in place of static configuration.
I wanted to know if it is possible to configure dhcp client to try and validate the existing lease first at the time of reboot and only if it is invalid, go for negotiation with the server. That would save a lot of time for booting and still would update any (theoretical) change in IP in future.
TIA
|
|
|
11-18-2005, 10:48 PM
|
#2
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
there are no "standard" packages I know that do this.
however your argument seems specious .. what do you mean by a "slow lan" ..\
if it's lan it's going to work at some performance level and I find it highly improbable that its' so slow that it slows your boot..
sounds like a joke .. my lan is so slow ..........
then fix the darn thing because a slow lan is not a LAN ..
it's not worth having . .it's an abomination . it's a failure in our ability to control machines .
a threat to liberty and free speech,
you should NEVER post from a slow lan .. it's against the spirit of the times ..
|
|
|
11-19-2005, 06:46 AM
|
#3
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
Not sure about the previous comments, but going back to the original question, you could adjust the expiration time on your DHCP leases. This way, you're still automatically assigning addresses to new machines, but machines already assigned an address simply keep it until the lease expires. What distro are you running and is it a mixed Windows/Linux environment, or purely one or the other?
|
|
|
11-21-2005, 08:31 AM
|
#4
|
Member
Registered: Jan 2004
Posts: 54
Original Poster
Rep:
|
First of all, thanks for the replies.
I am using FC4. The Corporate LAN uses M$ servers for everything and by "slow DHCP Server"(not slow LAN), I mean that I am not getting a lease in reasonable time, or the network startup just keeps waiting for nothing. I have tried setting the timeout to 5 and 10 secs, but it fails in getting a lease. I have also tried changing timeout, select-timeout and reboot settings in dhclient.conf file. For short timeout, it fails to start network. Otherwise, it waits for 30 secs or more and then gets a new lease. As it is failing for small timeouts, I assume that it is not getting a lease from server during that time.
I have no clue how I can control the lifetime of lease.
TIA
|
|
|
11-21-2005, 04:16 PM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024
Rep:
|
All of the linux DHCP clients I have seen do actually try to use their old IP address first. The first request they send out is something that says, "hey DHCP server, I had this IP last time, can I use it again?" and a resposive DHCP server does a quick check and replies with an OK.
|
|
|
All times are GMT -5. The time now is 09:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|