I have to say I'm surprised I've never needed to know this before. If I have a Linux system on a network and power it up while the DHCP server is down, how the heck do I later get it to request an IP address once the DHCP server is back up?
If an interface is specified as controlled by DHCP, I believe it will continue to make requests until it receives an address.
You could always ifconfig your DHCPless interface to something static and then do "ifconfig eth0 (or whatever) auto-dhcp" when your server is back up and running.
Is there anything in /etc/dhclient.conf?
Mine are blank and I can't ever recall putting anything in that file but it's the place to put DHCP client options...
Mine has a load of sample configurations, but they're all commented out.
I've since restarted this system of course, so I'm up and running. It's still frustrating me that I don't know the answer to such a simple question. I'll have to play around with dhclient. Presumably there's some way to nudge it into doing something if it's either exited or just sitting there unhelpfully.
Oh I tried that one. All it did was disable and then reenable the network. It had no effect on DHCP and whether I had an IP address or not. Kind of disappointing really.
Well that's it. I'm going to intentionally start my system up tonight without a DHCP server around and see how things play out. I'll post back here with the results.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.