Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    dhcpd3 no free leases


    Hey guys,

    For some strange reason my DHCP server no longer allocates IP addresses.

    I've deleted /var/lib/dhcp3/dhcpd.leases and /var/lib/dhcp3/dhcpd.leases~ and /var/lib/dhcp3/dhclient.eth0.leases
    Which by the way, had many old dhcp entries in them (From months back, which should have expired).

    I restarted dhcpd3 and got the machine to request another IP address.

    dhcpd3 still reports:
    Jan 14 15:02:40 dhcpserver dhcpd: DHCPDISCOVER from 11:22:33:44:55:66 via eth0: network 10/8: no free leases

    Sooo.... I have 2 questions...

    How can I fix this, and how can I prevent it from happening again?

  2. #2
    Did you change anything in your dhcpd config file? What distro are you using, btw? Did you compile dhcpd3 from source, or are you using a version provided by your distro? Do you have multiple NICs?

  3. #3
    Hey Atreyu,

    Yes, I have, here's my DHCPd config file (With exampled quotes removed):


    ddns-update-style none;

    option domain-name "ns.mydomain.com";
    option domain-name-servers ns.mydomain.com, ns2.example.org;

    default-lease-time 3600;
    max-lease-time 7200;

    log-facility local7;

    ###
    # Start DHCP network settings
    option subnet-mask 255.0.0.0;
    option broadcast-address 10.255.255.255;
    option routers 10.0.0.1;
    option domain-name-servers 10.0.0.1;
    # End DHCP network settings
    ###

    ###
    # Start DHCP range list
    subnet 10.0.0.0 netmask 255.0.0.0 {
    range 10.0.0.50 10.0.0.80;
    }
    # End DHCP range list

    ###
    # Start static host list

    host outer {
    hardware ethernet E0:69:95:77:A2:33;
    fixed-address 10.0.0.1;
    }
    host aprouter {
    hardware ethernet 00:11:e4:ad:36:6b;
    fixed-address 10.0.0.9;
    }

    host server {
    hardware ethernet 00:1D:4E:09:37:F9;
    fixed-address 10.0.0.5;
    }

    host pc {
    hardware ethernet BC:AE5:AA:EF:C8;
    fixed-address 10.0.0.4;
    }

    subnet 10.0.0.0 netmask 255.0.0.0 {
    }
    I'm using Ubuntu Server 11.04.

    I'm using the standard one. Yup. I have 2 NICs & one Virtual one.
    eth0: 10.0.0.1 (Statically assigned from DHCP server)
    eth1: 12.0.0.2 (Static, not controlled by DHCP, virtual one for interfacing with the ADSL card)
    ppp0: (Dynamic from ISP, this is an ADSL 2 card using Bridged Ethernet).

  4. $spacer_open
    $spacer_close

Posting Permissions

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