Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2004 01:10:34 +0100
From:      Hexren <me@hexren.net>
To:        freebsd-doc@freebsd.org
Subject:   Error in dhcpd Manpage example code
Message-ID:  <11558979908.20041216011034@hexren.net>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11558979908.20041216011034>