1

I took down my DHCP server to change some stuff, and after bringing it back up (down for 15 mins or so), I noticed that four other Ubuntu 12.04 servers set to use DHCP were unreachable. Running ifconfig on them returned just lo, so the eth0 and eth1 had been disabled.

I'm assuming the DHCP server missing caused them to shutdown the interface? Not sure why, they've been assigned static dhcp ips in dnsmasq. How do I set Ubuntu to never give up trying for a dhcp address on a connected interface?

Thanks!

1 Answer 1

2

Yes of course, lease time is 1h by default, so if you want to avoid this, just make the lease e.g. 1 week.

On client, in /etc/dhcp/dhclient.conf set send dhcp-lease-time 604800.

3
  • wait, isn't lease time set by the server? the dnsmasq range was static, so I figured the lease time was infinite then.
    – Cyclone
    Jul 20, 2012 at 0:45
  • Nope, on this Ubuntu the lease time is on the client. Static range, what do you mean by this? There is no infinite lease. The IPs are never dynamic (it's not a dialup connection). Jul 20, 2012 at 10:38
  • In dnsmasq you can explicitly set aside an IP range as 'static', which means dnsmasq will only issue IPs in that range if you have explicitly assigned it to a particular hostname/mac-address/clientid.
    – Cyclone
    Jul 20, 2012 at 15:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .