Results 1 to 3 of 3

Thread: dhcp doesn't provide fixed address

  1. #1
    Join Date
    Jul 2009
    Beans
    3

    dhcp doesn't provide fixed address

    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 10.0.0.0 netmask 255.255.255.0 {
    authoritative;
    default-lease-time 259200;
    max-lease-time 259200;
    option netbios-name-servers 10.0.0.2;
    option domain-name-servers 10.0.0.2;
    option broadcast-address 10.0.0.255;
    option subnet-mask 255.255.255.0;
    option routers 10.0.0.1;
    range 10.0.0.100 10.0.0.199;

    # myacer
    host acer {
    hardware ethernet 00:163:E0:89:46;
    fixed-address 10.0.0.196;
    }
    }

    Thank you very much in advance

  2. #2
    Join Date
    Feb 2007
    Location
    Hilversum, NL
    Beans
    595
    Distro
    Ubuntu

    Re: dhcp doesn't provide fixed address

    You have to specify options for specific hosts outside the section with the general options for the subnet.

    So:

    subnet {
    }

    host {
    }

  3. #3
    Join Date
    Jul 2009
    Beans
    3

    Re: dhcp doesn't provide fixed address

    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.
    Last edited by newnik; April 8th, 2010 at 01:05 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •