Syntax of dhclient.conf(5)
Parv
parv at pair.com
Thu Jan 12 21:30:00 PST 2006
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
--
More information about the freebsd-questions
mailing list