From owner-freebsd-questions@FreeBSD.ORG Fri Jan 13 05:30:00 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 7257716A41F for ; Fri, 13 Jan 2006 05:30:00 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFA2543D46 for ; Fri, 13 Jan 2006 05:29:59 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([68.67.248.200]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060113052959.LBGL5278.mta11.adelphia.net@default.chvlva.adelphia.net> for ; Fri, 13 Jan 2006 00:29:59 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 3CF64B564; Fri, 13 Jan 2006 00:29:59 -0500 (EST) Date: Fri, 13 Jan 2006 00:29:59 -0500 From: Parv To: f-q Message-ID: <20060113052959.GA15340@holestein.holy.cow> Mail-Followup-To: f-q Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: 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 05:30:00 -0000 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 } 16 17 media "media 100baseTX mediaopt full-duplex" , "autoselect"; 18 }; 19 20 #interface "iwi0" 21 #{ 22 # default 23 # { 24 # fixed-address 192.168.2.100 25 # , option subnet-mask 0xffffff00 26 # , option routers 192.168.2.1 27 # } 28 # 29 # medium "mediaopt full-duplex"; 30 #} 31 - Parv --