]> git.ipfire.org Git - thirdparty/dhcpcd.git/blame - dhcpcd.conf.5.in
fd -> raw_fd
[thirdparty/dhcpcd.git] / dhcpcd.conf.5.in
CommitLineData
ba9dfb7a
RM
1.\" Copyright 2006-2008 Roy Marples
2.\" All rights reserved
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\"
13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
757520c5 25.Dd Jun 30, 2008
ba9dfb7a
RM
26.Dt DHCPCD.CONF 5 SMM
27.Sh NAME
28.Nm dhcpcd.conf
29.Nd dhcpcd configuration file
30.Sh DESCRIPTION
31Although
32.Nm dhcpcd
33can do everything from the command line, there are cases where it's just easier
cf42802e
RM
34to do it once in a configuration file.
35Most of the options found in
ba9dfb7a 36.Xr dhcpcd 8
cf42802e
RM
37can be used here.
38The first word on the line is the option and the rest of the line is the value.
39Leading and trailing whitespace for the option and value are trimmed.
40You can escape characters in the value using the \\ character.
967194ef
RM
41.Pp
42Blank lines and lines starting with # are ignored.
ba9dfb7a
RM
43.Pp
44Here's a list of available options:
45.Bl -tag -width indent
d2616b08 46.It Ic classid Ar string
cf42802e
RM
47Change the default classid sent from dhcpcd-version.
48If not set then none is sent.
d2616b08
RM
49.It Ic clientid Ar string
50Change the default clientid sent from the interface hardware address.
51If the string is of the format 01:02:03 then it is encoded as hex.
52If not set then none is sent.
53.It Ic duid
54Generate an
55.Rs
56.%T "RFC 4361"
57.Re
cf42802e
RM
58compliant clientid.
59This requires persistent storage and not all DHCP servers work with it so it's
60not enabled by default.
d2616b08
RM
61The duid generated will be held in
62.Pa @SYSCONFDIR@/dhcpcd.duid
63and should not be copied to other hosts.
ba9dfb7a 64.It Ic hostname Ar name
35ff0dbb
RM
65Sends specified
66.Ar hostname
d2616b08 67to the DHCP server so it can be registered in DNS. If
35ff0dbb 68.Ar hostname
d2616b08 69if a FQDN (ie, contains a .) then it will be encoded as such.
35ff0dbb
RM
70.It Ic fqdn Op none | ptr | both
71none disables FQDN encoding, ptr just asks the DHCP server to update the PTR
72record of the host in DNS whereas both also updates the A record.
1b3bc477
RM
73The current hostname or the hostname specified using the
74.Fl h , -hostname
75option must be a FQDN.
76.Nm dhcpcd
77itself never does any DNS updates.
3adc5520 78.It Ic interface Ar interface
012fd5d3
RM
79Subsequent options are only parsed for this
80.Ar interface .
ba9dfb7a
RM
81.It Ic leasetime Ar seconds
82Request a leasetime of
83.Ar seconds .
ba9dfb7a 84.It Ic noarp
cf42802e
RM
85Don't send any ARP requests.
86This also disables IPv4LL.
ba9dfb7a
RM
87.It Ic nogateway
88Don't install any default routes.
37156a6b
RM
89.It Ic nohook Ar script
90Don't run this hook script.
8276da82
RM
91Matches full name, or prefixed with 2 numbers optionally ending with
92.Pa .sh .
ba9dfb7a
RM
93.It Ic noipv4ll
94Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP.
95See
96.Rs
97.%T "RFC 3927"
98.Re
d2616b08
RM
99.It Ic option Ar dhcp-option
100Requests the
101.Ar dhcp-option
cf42802e
RM
102from the server.
103It can be a variable to be used in
ee4e620a 104.Xr dhcpcd-run-hooks 8
cf42802e
RM
105or the numerical value.
106You can specify more seperated by commas, spaces or more option lines.
0aeb350c
RM
107.It Ic script Ar script
108Use
109.Ar script
110instead of the default
111.Pa @SCRIPT@ .
d2616b08 112.It Ic timeout Ar seconds
fedb3da0 113The default timeout for waiting for a DHCP response is 30 seconds which may
d2616b08
RM
114be too long or too short and can be changed here.
115.It Ic userclass Ar string
cf42802e
RM
116Tag the DHCP messages with the userclass.
117You can specify more than one.
757520c5
RM
118.It vendor Ar code , Ns Ar value
119Add an enscapulated vendor option.
120.Ar code
121should be between 1 and 254 inclusive.
122Examples.
123.Pp
124Set the vendor option 01 with an IP address.
125.D1 vendor 01,192.168.0.2
126Set the vendor option 02 with a hex code.
127.D1 vendor 02,01:02:03:04:05
128Set the vendor option 03 with an IP address as a string.
129.D1 vendor 03,\e"192.168.0.2\e"
eaa90296 130.El
ba9dfb7a 131.Sh SEE ALSO
ee4e620a 132.Xr dhcpcd-run-hooks 8 ,
ba9dfb7a
RM
133.Xr dhcpcd 8
134.Sh AUTHORS
eaa90296 135.An Roy Marples <roy@marples.name>
ba9dfb7a
RM
136.Sh BUGS
137Please report them to http://bugs.marples.name