From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 09:50:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D82116A41F for ; Fri, 13 Jan 2006 09:50:50 +0000 (GMT) (envelope-from rasputnik@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id D504A43D45 for ; Fri, 13 Jan 2006 09:50:49 +0000 (GMT) (envelope-from rasputnik@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so411089wxc for ; Fri, 13 Jan 2006 01:50:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HEgM3I9vRL8JqNUkoZf08yE8e/kxHxytzk1Hxrmy4JTuzgkgv43ZQmjiLnuqU1zcPbCCgFEWQBkuDlooCPYxBkT2p82kvpguIaMTBIOyV3U0nP/cyi7NLEqt/V8hbhIcd3Urm0x+g2+nyvPkGh+KOEnIa9NzI6RDnNBP/XpmHy0= Received: by 10.70.109.3 with SMTP id h3mr3456023wxc; Fri, 13 Jan 2006 01:50:49 -0800 (PST) Received: by 10.70.69.17 with HTTP; Fri, 13 Jan 2006 01:50:48 -0800 (PST) Message-ID: <3f1760601130150n586b0b2dr@mail.gmail.com> Date: Fri, 13 Jan 2006 09:50:48 +0000 From: Dick Davies To: f-q In-Reply-To: <20060113052959.GA15340@holestein.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060113052959.GA15340@holestein.holy.cow> Subject: Re: Syntax of dhclient.conf(5) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 09:50:50 -0000 There should be semicolons after each line. On 13/01/06, Parv wrote: > I failed to find detailed syntax layout in dhclient.conf(5) man page, > via web search, or be able to deduce from files in > /misc/src/sbin/dhclient. I was looking for something like as given in > (i)pf.conf(5) man pages. > > Could somebody point me to a detailed document documenting the syntax? > Alternatively, please help me understand what am i missing from the > dhclient.conf listed below which results in following parsing error > messages ... > > /etc/dhclient.conf line 11: expecting identifier after option keyword. > { > ^ > /etc/dhclient.conf line 18: expecting a statement. > } > ^ > /etc/dhclient.conf line 32: semicolon expected. > > ^ > > ... dhclient.conf ... > > 1 > 2 # FreeBSD 6.0-STABLE's dhclient empties /etc/resolv.conf & default= route is > 3 # not being assigned. Remedy this by having sane entries here in = dhclient.conf. > 4 > 5 request subnet-mask , routers , domain-name-servers; > 6 require routers , domain-name-servers; > 7 > 8 interface "em0" > 9 { > 10 default > 11 { > 12 fixed-address 192.168.2.100 > 13 , option subnet-mask 0xffffff00 > 14 , option routers 192.168.2.1 > 15 } (if you're setting all these yourself, why are you bothering to do dhcp on that interface?) There should be semicolons after each line in the braces, and the leading dots before option aren't something I recognize. It's a pity there isn't a simple (but not blank!) one in /usr/share/examples, I could have sworn there used to be. -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/