dhcpd doesn't sent route information

Onur Aslan onuraslan at gmail.com
Fri Apr 23 16:01:33 UTC 2010


$ cat /usr/local/etc/dhcpd.conf
option domain-name-servers 8.8.8.8, 8.8.8.4;
option subnet-mask 255.255.255.0;

default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

option routers 192.168.1.1;

subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.4 192.168.1.24;
}

host onur-pc { 
    hardware ethernet 00:0e:2e:ff:6b:e7;
    fixed-address 192.168.1.2;
}

host onur-eee {
    hardware ethernet 00:22:43:45:a1:2d;
    fixed-address 192.168.1.3;
}

#####################################################################

I am starting dhcpd with '/usr/local/etc/rc.d/isc-dhcpd start'. It's
starting with this command:

/usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf -lf
/var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd
-group dhcpd ral0


After I added dhcpd_flags="-HUP" to my rc.conf It's giving an error
message when I starting dhcpd:

# /usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
		   [-tf trace-output-file]
		   [-play trace-input-file]
             [-t] [-T] [-s server] [if0 [...ifN]]
Configuration file sanity check failed:
=======================================
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-d] [-f]
             [-cf config-file] [-lf lease-file]
             [-user user] [-group group]
             [-chroot dir] [-early_chroot]
             [-jail name ip]
		   [-tf trace-output-file]
		   [-play trace-input-file]
             [-t] [-T] [-s server] [if0 [...ifN]]
=======================================


It's saying 'Configuration file sanity check failed' but I don't see
any problem in my configuration file.


On Fri, Apr 23, 2010 at 10:43:40AM -0500, Kevin Kinsey wrote:
> Onur Aslan wrote:
> >I tried, but It doesn't helped.
> 
> Please show us the revised dhcpd.conf.  Also, did you -HUP
> your named?
> 
> Kevin Kinsey
> 
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
> 
> 
> 
> >On Fri, Apr 23, 2010 at 08:22:54AM -0700, Chuck Swiger wrote:
> >>On Apr 23, 2010, at 6:14 AM, Onur Aslan wrote:
> >>>I am using isc-dhcp30-server-3.0.7_5 in FreeBSD 7.2. When I run dhclient in a
> >>>client machine, this machine doesn't get gateway from dhcp server. I configured
> >>>dhcpd server as described in FreeBSD handbook.
> >>If the machine you are testing from is one of onur-pc or
> >>onur-eee, you aren't
> >> getting a default router because you've only defined it for the dynamic pool
> >> range of .4 - .24.  Move the:
> >>
> >>   option routers 192.168.1.1;
> >>
> >>...statement to the top level, or move the host declarations
> >>inside
> >> of the subnet 192.168.1.0 block.  Or copy the routers line to your
> >> host declarations, I suppose.
> >>
> >>Regards,
> >>-- 
> >>-Chuck
> 


More information about the freebsd-questions mailing list