Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 00:29:59 -0500
From:      Parv <parv@pair.com>
To:        f-q <freebsd-questions@freebsd.org>
Subject:   Syntax of dhclient.conf(5)
Message-ID:  <20060113052959.GA15340@holestein.holy.cow>

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

-- 




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