View Full Version : [ubuntu] dhcp doesn't provide fixed address

April 8th, 2010, 12:34 PM
Please, help solve the following trouble:

Ubuntu LTS 8.04 + DHCP. Works fine except for fixed addresses. I mean all devices which need to get fixed IP according to their MACs don't get them and keep to receive random IPs from the range (almost everytime all machines receive the same IP they got from DHCP for the first time).

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet netmask {
default-lease-time 259200;
max-lease-time 259200;
option netbios-name-servers;
option domain-name-servers;
option broadcast-address;
option subnet-mask;
option routers;

# myacer
host acer {
hardware ethernet 00:16:D3:E0:89:46;

Thank you very much in advance

April 8th, 2010, 12:42 PM
You have to specify options for specific hosts outside the section with the general options for the subnet.


subnet {

host {

April 8th, 2010, 01:01 PM
Thanks, but didn't help. I've just carry the host description out of the subnet description. And got the following :

Just before now (and now I have static .61) I had automatically get .140. After again configuring getting IP automatically I got again .140 :(

Of course I've restarted DHCP on the server

And by the way that configuration file was formed by Webmin tool.