From owner-freebsd-doc@FreeBSD.ORG Thu Dec 16 00:10:38 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CB0B16A4CE for ; Thu, 16 Dec 2004 00:10:38 +0000 (GMT) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BA3743D55 for ; Thu, 16 Dec 2004 00:10:37 +0000 (GMT) (envelope-from me@hexren.net) Received: by helium.webpack.hosteurope.de running Exim 4.34 using asmtp helo=hexren.steenbuck.net) id 1CejE3-0006cN-Rh; Thu, 16 Dec 2004 01:10:36 +0100 Date: Thu, 16 Dec 2004 01:10:34 +0100 From: Hexren X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <11558979908.20041216011034@hexren.net> To: freebsd-doc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Error in dhcpd Manpage example code X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hexren List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 00:10:38 -0000 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