Error in dhcpd Manpage example code

Hexren me at hexren.net
Thu Dec 16 00:10:38 UTC 2004


In the middle of the dhcpd manpage
(http://www.freebsd.org/cgi/man.cgi?query=dhcpd&apropos=0&sektion=0&manpath=FreeBSD+5.3-RELEASE+and+Ports&format=html)
is a the following example:

------------------------Text from manpage-----------------------------------
A reasonably complete DHCP configuration might look some-
       thing like this:

            subnet 239.252.197.0 netmask 255.255.255.0 {
              range 239.252.197.10 239.252.197.250;
              default-lease-time 600 max-lease-time 7200;
              option subnet-mask 255.255.255.0;
              option broadcast-address 239.252.197.255;
              option routers 239.252.197.1;
              option domain-name-servers 239.252.197.2, 239.252.197.3;
              option domain-name "isc.org";
            }
------------------------End text from manpage-----------------------------------

The line that deals with the default and max lease time should imho read:
default-lease-time 600;
max-lease-time 7200;


Including both max and default lease time written in one line (as in
the example) in my dhcpd.conf for testing yields the following
messages after $dhcpd -t

------------------------Error message--------------------------------------
/usr/local/etc/dhcpd.conf line 39: semicolon expected.
default-lease-time 600 max-lease-time 
                       ^
/usr/local/etc/dhcpd.conf line 39: expecting a parameter or declaration
default-lease-time 600 max-lease-time 7200;
------------------------End error message----------------------------------


I hope this is the right list for a suggestion like mine. Please CC me
in a reply, because I am not a subscriper to this list.

Thank you
Hexren



More information about the freebsd-doc mailing list