You are not logged in.

#1 2008-07-30 07:22:39

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

dhcpd doesn't give a default route or dns server

I've just set a dns/dhcp server up for a friend, the dns server is working fine but the dhcp server is having some problems. I have a line in the subnet section specifying the router and the dns server to give out along with the IP address.

The subnet section is being used by the server as the IP address given is in the range specified but the router and dns server are both ignored.

The config is based on my own setup which works fine so I think all the necessary fields are in place in the file.

I don't have access to the file at the moment, if I can get it before I get an answer I'll post it.

Is there anything obvious I should be checking?

Offline

#2 2008-08-02 19:50:52

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: dhcpd doesn't give a default route or dns server

Check for multiple lines that do the same thing, IIRC the default dhcpd config file contains many examples and you may have uncommented multiple lines that are mutually exclusive.
I can't say more until i see the config.

Offline

#3 2008-08-02 20:45:25

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: dhcpd doesn't give a default route or dns server

arew264 wrote:

Check for multiple lines that do the same thing, IIRC the default dhcpd config file contains many examples and you may have uncommented multiple lines that are mutually exclusive.
I can't say more until i see the config.

I've just tried to check but the box is in an office and they've shut it down for the weekend. I'll check for duplicate lines on Monday and if I can't fix it I'll post the conf file.

Offline

#4 2008-08-04 14:51:43

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: dhcpd doesn't give a default route or dns server

I can't see anything duplicated and looking at the config it is identical to my own just with their parameters:

option domain-name "xxx";
option domain-name-servers dns.xxx;
default-lease-time 6000;
max-lease-time 7200;
authoritative;
ddns-update-style ad-hoc;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.40 192.168.0.49;
        option broadcast-address 192.168.0.255;
        option routers router.xxx;
}

There are also a number of fixed address lines like this:

host devel {
    hardware ethernet 00:xx:xx:05:a7:63;
    fixed-address devel.xxx;
}

The IP given out when I try to connect is within the range 40-49 so the subnet stuff is working but I'm just not getting the dns server or the router info.

Any ideas?

Offline

Board footer

Powered by FluxBB