Results 1 to 7 of 7

Thread: dhcpd

  1. #1
    Join Date
    Mar 2007
    Beans
    99

    dhcpd

    When I start dhcpd I get a messag about eth0 not being configured and needing a subnet declaration, and also that it is not configured to listen to any interfaces.

    How can I make subnet declaration for eth0 in my /etc/dhcpd.conf?

  2. #2
    Join Date
    Aug 2006
    Location
    Durban, South Africa
    Beans
    38
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: dhcpd

    Do you need to have DHCP running on that interface ? Generally you would add a subnet declaration with the IP address range and options you want handed out to machines on that network range...

    Check the man page, there are quite a few good examples there.

    -m

  3. #3
    Join Date
    May 2008
    Beans
    3

    Re: dhcpd

    Quote Originally Posted by Gauvenator View Post
    When I start dhcpd I get a messag about eth0 not being configured and needing a subnet declaration, and also that it is not configured to listen to any interfaces.

    How can I make subnet declaration for eth0 in my /etc/dhcpd.conf?
    Without knowing which version of ubuntu you are using, the following includes an example of a dhcpd.conf file including the subnet declaration.

    https://help.ubuntu.com/7.10/server/C/dhcp.html


  4. #4
    Join Date
    Mar 2007
    Beans
    99

    Re: dhcpd

    Wait, to make this machine a dhcp server, do I need it to be on a static IP? Currently my router is using dhcp.

    Here's my current /etc/dhcpd.conf, which is set up for network booting of thin clients.
    Code:
    ddns-update-style             ad-hoc;
    
    option subnet-mask            255.255.255.0;
    option broadcast-address      192.168.1.255;
    option routers                192.168.1.1;
    option domain-name-servers    192.168.1.100;
    option domain-name            "example.org";   
    option option-128 code 128 = string;
    option option-129 code 129 = text;
    
    
    get-lease-hostnames           true;
    
    next-server                   192.168.1.100;
    option root-path              "192.168.1.100:/opt/ltsp/i386";
    
    subnet 192.168.0.0 netmask 255.255.255.0 {
        range   192.168.0.100   192.168.0.199;
        if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
            filename "/tftpboot/lts/2.6.16.1-ltsp-1/pxelinux.0";
        }
        else{
            filename "/tftpboot/lts/vmlinuz-2.6.16.1-ltsp-1";
        }
    }
    Code:
    Here's the error:
    
    No subnet declaration for eth0 (192.168.1.100).
    ** Ignoring requests on eth0.  If this is not what
       you want, please write a subnet declaration
       in your dhcpd.conf file for the network segment
       to which interface eth0 is attached. **
    
    
    Not configured to listen on any interfaces!
    Last edited by Gauvenator; May 26th, 2008 at 06:02 PM.

  5. #5
    Join Date
    Dec 2007
    Beans
    101
    Distro
    Ubuntu

    Re: dhcpd

    your subnet declaration gives addresses in the 192.168.0.0 network while your eth0 belongs to the network 192.168.1.0

    you SHOULD have your dhcp server on a static IP, but you might be able to run it on a dynamic address. just restrict the addresses that your router gives out, and tell your dhcp server (your computer) to give out the other addresses. also make sure your server is the first computer to be turned on in your network

    also, you are going to want to make your server authoritative so that your clients don't get their ips from your router

  6. #6
    Join Date
    Mar 2007
    Beans
    99

    Re: dhcpd

    Quote Originally Posted by mbarak View Post
    your subnet declaration gives addresses in the 192.168.0.0 network while your eth0 belongs to the network 192.168.1.0

    you SHOULD have your dhcp server on a static IP, but you might be able to run it on a dynamic address. just restrict the addresses that your router gives out, and tell your dhcp server (your computer) to give out the other addresses. also make sure your server is the first computer to be turned on in your network

    also, you are going to want to make your server authoritative so that your clients don't get their ips from your router
    Thank you so much changing the other ips in the config to 192.168.1.x worked!

  7. #7
    Join Date
    Dec 2007
    Beans
    101
    Distro
    Ubuntu

    Re: dhcpd

    no problem
    glad to help

Tags for this Thread

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
  •