head 1.2; access; symbols netbsd-8-3-RELEASE:1.1.1.4.2.5 netbsd-9-4-RELEASE:1.1.1.13.2.3 netbsd-9-3-RELEASE:1.1.1.13.2.3 cjep_sun2x-base1:1.1.1.25 cjep_sun2x:1.1.1.25.0.4 cjep_sun2x-base:1.1.1.25 cjep_staticlib_x-base1:1.1.1.25 netbsd-9-2-RELEASE:1.1.1.13.2.3 cjep_staticlib_x:1.1.1.25.0.2 cjep_staticlib_x-base:1.1.1.25 dhcpcd-9_4_0:1.1.1.25 dhcpcd-9_3_4:1.1.1.24 dhcpcd-9_3_3:1.1.1.23 dhcpcd-9_3_2:1.1.1.23 netbsd-9-1-RELEASE:1.1.1.13.2.3 dhcpcd-9_3_1:1.1.1.22 dhcpcd-9_3_0:1.1.1.22 dhcpcd-9_2_0:1.1.1.21 dhcpcd-9_1_4:1.1.1.20 dhcpcd-9_1_3:1.1.1.20 dhcpcd-9_1_2:1.1.1.19 dhcpcd-9_1_1:1.1.1.19 dhcpcd-9_1_0:1.1.1.19 phil-wifi-20200421:1.1.1.18 dhcpcd-9_0_2:1.1.1.18 dhcpcd-9_0_1:1.1.1.17 phil-wifi-20200411:1.1.1.17 is-mlppp:1.1.1.16.0.2 is-mlppp-base:1.1.1.16 phil-wifi-20200406:1.1.1.17 dhcpcd-9_0_0:1.1.1.17 netbsd-8-2-RELEASE:1.1.1.4.2.5 netbsd-9-0-RELEASE:1.1.1.13.2.3 netbsd-9-0-RC2:1.1.1.13.2.3 dhcpcd-8_1_6:1.1.1.16 dhcpcd-8_1_5:1.1.1.16 dhcpcd-8_1_4:1.1.1.16 dhcpcd-8_1_3:1.1.1.16 netbsd-9-0-RC1:1.1.1.13.2.2 phil-wifi-20191119:1.1.1.15 dhcpcd-8_1_2:1.1.1.15 dhcpcd-8_1_1:1.1.1.15 dhcpcd-8_1_0:1.1.1.15 ROY:1.1.1 dhcpcd-8-0-6:1.1.1.15 dhcpcd-8-0-5:1.1.1.15 dhcpcd-8-0-4:1.1.1.14 dhcpcd-8-0-3:1.1.1.13 netbsd-9:1.1.1.13.0.2 netbsd-9-base:1.1.1.13 dhcpcd-8-0-2:1.1.1.13 dhcpcd-8-0-1:1.1.1.13 dhcpcd-8-0-0:1.1.1.13 dhcpcd-7-2-3a:1.1.1.12 phil-wifi-20190609:1.1.1.12 netbsd-8-1-RELEASE:1.1.1.4.2.5 netbsd-8-1-RC1:1.1.1.4.2.5 dhcpcd-7-2-2:1.1.1.12 dhcpcd-7-2-1:1.1.1.12 dhcpcd-7-2-0:1.1.1.11 dhcpcd-7-1-1:1.1.1.11 pgoyette-compat-merge-20190127:1.1.1.6.2.4 pgoyette-compat-20190127:1.1.1.11 dhcpcd-7-1-0:1.1.1.11 pgoyette-compat-20190118:1.1.1.10 pgoyette-compat-1226:1.1.1.10 pgoyette-compat-1126:1.1.1.10 pgoyette-compat-1020:1.1.1.10 pgoyette-compat-0930:1.1.1.10 pgoyette-compat-0906:1.1.1.10 netbsd-7-2-RELEASE:1.1.1.10.4.2 dhcpcd-7-0-8:1.1.1.10 pgoyette-compat-0728:1.1.1.10 netbsd-7:1.1.1.10.0.4 dhcpcd-7-0-7:1.1.1.10 netbsd-8-0-RELEASE:1.1.1.4.2.4 phil-wifi:1.1.1.10.0.2 phil-wifi-base:1.1.1.10 pgoyette-compat-0625:1.1.1.10 netbsd-8-0-RC2:1.1.1.4.2.4 dhcpcd-7-0-6:1.1.1.10 dhcpcd-7-0-5b:1.1.1.9 dhcpcd-7-0-5a:1.1.1.9 dhcpcd-7-0-5:1.1.1.9 pgoyette-compat-0521:1.1.1.8 dhcpcd-7-0-4:1.1.1.8 pgoyette-compat-0502:1.1.1.7 pgoyette-compat-0422:1.1.1.7 netbsd-8-0-RC1:1.1.1.4.2.2 pgoyette-compat-0415:1.1.1.7 pgoyette-compat-0407:1.1.1.7 dhcpcd-7-0-3:1.1.1.7 pgoyette-compat-0330:1.1.1.7 dhcpcd-7-0-2:1.1.1.7 pgoyette-compat-0322:1.1.1.6 pgoyette-compat-0315:1.1.1.6 pgoyette-compat:1.1.1.6.0.2 pgoyette-compat-base:1.1.1.6 dhcpcd-7-0-1:1.1.1.6 dhcpcd-7-0-0:1.1.1.5 dhcpcd-7-0-0-rc4:1.1.1.4 matt-nb8-mediatek:1.1.1.4.0.6 matt-nb8-mediatek-base:1.1.1.4 dhcpcd-7-0-0-rc3:1.1.1.4 dhcpcd-7-0-0-rc2:1.1.1.4 perseant-stdc-iso10646:1.1.1.4.0.4 perseant-stdc-iso10646-base:1.1.1.4 netbsd-8:1.1.1.4.0.2 netbsd-8-base:1.1.1.4 prg-localcount2-base3:1.1.1.4 prg-localcount2-base2:1.1.1.4 dhcpcd-7-0-0-rc1:1.1.1.4 prg-localcount2-base1:1.1.1.3 prg-localcount2:1.1.1.3.0.6 prg-localcount2-base:1.1.1.3 pgoyette-localcount:1.1.1.3.0.4 pgoyette-localcount-20170426:1.1.1.3 bouyer-socketcan:1.1.1.3.0.2 bouyer-socketcan-base1:1.1.1.3 dhcpcd-7-0-0-beta3:1.1.1.3 dhcpcd-7-0-0-beta2:1.1.1.2 dhcpcd-7-0-0-beta1:1.1.1.1 roy:1.1.1; locks; strict; comment @# @; 1.2 date 2021.10.22.13.23.20; author roy; state dead; branches; next 1.1; commitid D8cnLmHb76ZVdOdD; 1.1 date 2017.03.31.20.51.15; author roy; state Exp; branches 1.1.1.1; next ; commitid 2iSri9mccyHffKLz; 1.1.1.1 date 2017.03.31.20.51.15; author roy; state Exp; branches; next 1.1.1.2; commitid 2iSri9mccyHffKLz; 1.1.1.2 date 2017.04.02.18.54.20; author roy; state Exp; branches; next 1.1.1.3; commitid 5Fo1AKRIR3DtxZLz; 1.1.1.3 date 2017.04.14.09.53.07; author roy; state Exp; branches 1.1.1.3.2.1 1.1.1.3.4.1 1.1.1.3.6.1; next 1.1.1.4; commitid 6pksNtfDPAJL9uNz; 1.1.1.4 date 2017.05.10.11.00.37; author roy; state Exp; branches 1.1.1.4.2.1; next 1.1.1.5; commitid ee89wOAHamR8HPQz; 1.1.1.5 date 2018.01.01.11.48.52; author roy; state Exp; branches; next 1.1.1.6; commitid z7LdlIDvbBBpnalA; 1.1.1.6 date 2018.01.29.11.11.22; author roy; state Exp; branches 1.1.1.6.2.1; next 1.1.1.7; commitid ANwLArYxQ3OXfLoA; 1.1.1.7 date 2018.03.27.06.14.39; author roy; state Exp; branches; next 1.1.1.8; commitid Q3SHqGHcwV2pN3wA; 1.1.1.8 date 2018.05.02.22.06.41; author roy; state Exp; branches; next 1.1.1.9; commitid JiBjcMSFpSjdULAA; 1.1.1.9 date 2018.06.02.09.42.48; author roy; state Exp; branches; next 1.1.1.10; commitid NFH97uveRODjNGEA; 1.1.1.10 date 2018.06.21.11.55.19; author roy; state Exp; branches 1.1.1.10.2.1 1.1.1.10.4.1; next 1.1.1.11; commitid 1MmVSGLLStFXU8HA; 1.1.1.11 date 2019.01.22.15.16.25; author roy; state Exp; branches; next 1.1.1.12; commitid ObRHdPr38Oth7N8B; 1.1.1.12 date 2019.04.26.14.32.28; author roy; state Exp; branches; next 1.1.1.13; commitid 0IYEAoboHczQQRkB; 1.1.1.13 date 2019.07.24.09.54.52; author roy; state Exp; branches 1.1.1.13.2.1; next 1.1.1.14; commitid Nokc5jYoPRhfshwB; 1.1.1.14 date 2019.09.04.13.27.50; author roy; state Exp; branches; next 1.1.1.15; commitid KEvLdUpWYb0ehHBB; 1.1.1.15 date 2019.09.13.10.58.31; author roy; state Exp; branches; next 1.1.1.16; commitid LqjAZs5HWvwnaQCB; 1.1.1.16 date 2019.12.20.12.00.19; author roy; state Exp; branches; next 1.1.1.17; commitid OZavN2BGaq0kmrPB; 1.1.1.17 date 2020.04.02.12.38.55; author roy; state Exp; branches; next 1.1.1.18; commitid B3wgJaSBzotdeO2C; 1.1.1.18 date 2020.04.21.09.54.17; author roy; state Exp; branches; next 1.1.1.19; commitid hqpWvPEfIfuuHe5C; 1.1.1.19 date 2020.05.31.12.50.47; author roy; state Exp; branches; next 1.1.1.20; commitid 6uMO5zDfLdpQooaC; 1.1.1.20 date 2020.07.02.13.57.41; author roy; state Exp; branches; next 1.1.1.21; commitid 6uG8h66VNMI3KveC; 1.1.1.21 date 2020.09.06.14.54.29; author roy; state Exp; branches; next 1.1.1.22; commitid DjL2aDydKCw1WZmC; 1.1.1.22 date 2020.10.05.16.01.14; author roy; state Exp; branches; next 1.1.1.23; commitid IoTFgt9yjDz1nJqC; 1.1.1.23 date 2020.11.01.14.23.03; author roy; state Exp; branches; next 1.1.1.24; commitid ebqGgb5k2RhgXbuC; 1.1.1.24 date 2020.11.28.14.26.17; author roy; state Exp; branches; next 1.1.1.25; commitid kT54mGo7oSoR6FxC; 1.1.1.25 date 2020.12.28.13.56.26; author roy; state Exp; branches; next ; commitid rE25gHSvbs4yYvBC; 1.1.1.3.2.1 date 2017.04.14.09.53.07; author roy; state dead; branches; next 1.1.1.3.2.2; 1.1.1.3.2.2 date 2017.04.14.09.53.08; author roy; state Exp; branches; next ; 1.1.1.3.4.1 date 2017.04.14.09.53.07; author pgoyette; state dead; branches; next 1.1.1.3.4.2; commitid ojV02aOSdzvBqZOz; 1.1.1.3.4.2 date 2017.04.26.02.52.23; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.1.1.3.6.1 date 2017.05.11.02.58.29; author pgoyette; state Exp; branches; next ; commitid p6b6NO9zXediZUQz; 1.1.1.4.2.1 date 2018.01.13.21.35.30; author snj; state Exp; branches; next 1.1.1.4.2.2; commitid ZG7USKRfo4HNeLmA; 1.1.1.4.2.2 date 2018.04.09.16.46.34; author martin; state Exp; branches; next 1.1.1.4.2.3; commitid EzvHIuotKE2mSMxA; 1.1.1.4.2.3 date 2018.06.07.18.34.03; author martin; state Exp; branches; next 1.1.1.4.2.4; commitid LQY6nn3iZlBNynFA; 1.1.1.4.2.4 date 2018.06.23.11.13.33; author martin; state Exp; branches; next 1.1.1.4.2.5; commitid VnFdbILkVYJqCoHA; 1.1.1.4.2.5 date 2019.04.26.19.18.22; author martin; state Exp; branches; next ; commitid ApYO1Wt23frIqTkB; 1.1.1.6.2.1 date 2018.03.30.06.20.06; author pgoyette; state Exp; branches; next 1.1.1.6.2.2; commitid h5ZWTFXyqL8kJrwA; 1.1.1.6.2.2 date 2018.05.21.04.35.51; author pgoyette; state Exp; branches; next 1.1.1.6.2.3; commitid X5L8kSrBWQcDt7DA; 1.1.1.6.2.3 date 2018.06.25.07.25.12; author pgoyette; state Exp; branches; next 1.1.1.6.2.4; commitid 8PtAu9af7VvhiDHA; 1.1.1.6.2.4 date 2019.01.26.21.58.14; author pgoyette; state Exp; branches; next ; commitid JKpcmvSjdT25dl9B; 1.1.1.10.2.1 date 2019.06.10.21.44.44; author christos; state Exp; branches; next 1.1.1.10.2.2; commitid jtc8rnCzWiEEHGqB; 1.1.1.10.2.2 date 2020.04.13.07.45.59; author martin; state Exp; branches; next 1.1.1.10.2.3; commitid X01YhRUPVUDaec4C; 1.1.1.10.2.3 date 2020.04.21.18.41.55; author martin; state Exp; branches; next ; commitid 86tA4aEmdr3VCh5C; 1.1.1.10.4.1 date 2018.06.21.11.55.19; author martin; state dead; branches; next 1.1.1.10.4.2; commitid HmTKhyRj9OTCmLLA; 1.1.1.10.4.2 date 2018.07.27.10.43.21; author martin; state Exp; branches; next ; commitid HmTKhyRj9OTCmLLA; 1.1.1.13.2.1 date 2019.09.05.08.56.55; author martin; state Exp; branches; next 1.1.1.13.2.2; commitid n3LQXHCBRIxtKNBB; 1.1.1.13.2.2 date 2019.10.12.14.44.32; author martin; state Exp; branches; next 1.1.1.13.2.3; commitid PQET3nQkMBRStAGB; 1.1.1.13.2.3 date 2020.01.05.09.38.28; author martin; state Exp; branches; next ; commitid 1MyLKVPKxR3v3uRB; desc @@ 1.2 log @Sync update @ text @.\" Copyright (c) 2006-2017 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd March 28, 2017 .Dt DHCPCD.CONF 5 .Os .Sh NAME .Nm dhcpcd.conf .Nd dhcpcd configuration file .Sh DESCRIPTION Although .Nm dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in .Xr dhcpcd 8 can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \\ character. Comments can be prefixed with the # character. String values should be quoted with the " character. .Pp Here's a list of available options: .Bl -tag -width indent .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 # My specific 192.168.0.1 network .D1 profile dd:ee:aa:dd:bb:ee .D1 static ip_address=192.168.0.10/24 .Pp .D1 # A generic 192.168.0.1 network .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.98/24 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Authentication Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed protocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic bootp Be a BOOTP client. Basically, this just doesn't send a DHCP Message Type option and will only interact with a BOOTP server. All other DHCP options still work. .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 .Pp If the hostname is set, it will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. .It Ic clientid Ar string Send the .Ar clientid . If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. .It Ic duid Generate an .Rs .%T "RFC 4361" .Re compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in .Pa @@SYSCONFDIR@@/dhcpcd.duid and should not be copied to other hosts. .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic request Op Ar address Request the .Ar address in the DHCP DISCOVER message. There is no guarantee this is the address the DHCP server will actually give. If no .Ar address is given then the first address currently assigned to the .Ar interface is used. .It Ic inform Op Ar address Ns Op Ar /cidr Behaves like .Ic request as above, but sends a DHCP INFORM instead of DISCOVER/REQUEST. This does not get a lease as such, just notifies the DHCP server of the .Ar address in use. You should also include the optional .Ar cidr network number in case the address is not already configured on the interface. .Nm dhcpcd remains running and pretends it has an infinite lease. .Nm dhcpcd will not de-configure the interface when it exits. If .Nm dhcpcd fails to contact a DHCP server then it returns a failure instead of falling back on IPv4LL. .It Ic inform6 Performs a DHCPv6 Information Request. No address is requested or specified, but all other DHCPv6 options are allowed. This is normally performed automatically when the IPv6 Router Advertises that the client should perform this operation. This option is only needed when .Nm dhcpcd is not processing IPv6RA messages and the need for DHCPv6 Information Request exists. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. .It Ic hostname Ar name Sends the hostname .Ar name to the DHCP server so it can be registered in DNS. If .Ar name is an empty string then the current system hostname is sent. If .Ar name is a FQDN (ie, contains a .) then it will be encoded as such. .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len Op / Ar suffix Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned with the same resultant prefix length as the delegation, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. If no .Ar interface is given then we will assign a prefix to every other interface with a .Ar sla_id equivalent to the interface index assigned by the OS. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . Each assigned address will have a .Ar suffix , defaulting to 1. If the .Ar suffix is 0 then a slaac address is assigned. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . .Ar sla_id is an integer which must be unique inside the .Ar iaid and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation. .Pp In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. A second prefix is requested and assigned to two other interfaces. .Xr rtadvd 8 can be used with an empty configuration file on eth1, eth2 and eth3, to provide automatic IPv6 address configuration for the internal network. .Bd -literal noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # request a PD and assign it to eth1 ia_pd 3 eth2/1 eth3/2 # req a PD and assign it to eth2 and eth3 .Ed .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR record of the host in DNS whereas both also updates the A record. disable will disable the FQDN option. The default is both. .Nm dhcpcd itself never does any DNS updates. .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . .It Ic interface Ar interface Subsequent options are only parsed for this .Ar interface . .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option and a valid prefix or no DHCPv6 instruction. Set this option so to make .Nm dhcpcd always fork on an RA. .It Ic ipv6rs Enables IPv6 Router Advertisement solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. .It Ic leasetime Ar seconds Request a leasetime of .Ar seconds . .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metric of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. .It Ic mudurl Ar url Specifies the URL for a manufacturer usage description (MUD). The description is used by upstream network devices to instantiate any desired access lists. See draft-ietf-opsawg-mud for more information. .It Ic noalias Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. .It Ic noarp Don't send any ARP requests. This also disables IPv4LL. .It Ic noauthrequired Don't require authentication even though we requested it. Also allows FORCERENEW and RECONFIGURE messages without authentication. .It Ic nodelay Don't delay for an initial randomised time when starting protocols. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. .It Ic nohook Ar script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .Pa .sh . .Pp So to stop .Nm dhcpcd from touching your DNS settings or starting wpa_supplicant you would do:- .D1 nohook resolv.conf, wpa_supplicant .It Ic noipv4 Don't attempt to configure an IPv4 address. .It Ic noipv4ll Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See .Rs .%T "RFC 3927" .Re .It Ic noipv6 Don't attempt to configure an IPv6 address. .It Ic noipv6rs Disable solicitation and receipt of IPv6 Router Advertisements. .It Ic nolink Don't receive link messages about carrier status. You should only set this for buggy interface drivers. .It Ic noup Don't bring the interface up when in master mode. If .Nm cannot determine the carrier state, .Nm will enter a tight polling loop until the interface is marked up and running or a valid carrier state is reported. .It Ic option Ar option Requests the .Ar option from the server. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. .Ar option Prepend dhcp6_ to .Ar option to request a DHCPv6 option. If no DHCPv6 options are configured, then DHCPv4 options are mapped to equivalent DHCPv6 options. .Pp Prepend nd_ to .Ar option to handle ND options, but this only works for the .Ic nooption , .Ic reject and .Ic require options. .Pp To see a list of options you can use, call .Nm dhcpcd with the .Fl V , Fl Fl variables argument. .It Ic nooption Ar option Remove the option from the message before it's processed. .It Ic require Ar option Requires the .Ar option to be present in all messages, otherwise the message is ignored. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet Suppress any dhcpcd output to the console, except for errors. .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. The default is 5 seconds. A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authoritative which means .Nm dhcpcd will timeout before moving back to the DISCOVER phase. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. .It Ic script Ar script Use .Ar script instead of the default .Pa @@SCRIPT@@ . .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. If you set .Ic ip6_address , .Nm dhcpcd will continue auto-configuation as normal. .Pp Here is an example which configures two static address, an IPv4 router, DNS and disables IPv6 auto-configuration. You could also use the .Ic inform6 command here if you wished to obtain more information via DHCPv6. For IPv4, you should use the .Ic inform Ar ipaddress option instead of setting a static address. .D1 interface eth0 .D1 noipv6rs .D1 static ip_address=192.168.0.10/24 .D1 static ip6_address=fd51:42f8:caae:d92e::ff/64 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers .It Ic timeout Ar seconds Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. .It Ic userclass Ar string Tag the DHCPv4 messages with the userclass. You can specify more than one. .It Ic vendor Ar code , Ns Ar value Add an encapsulated vendor option. .Ar code should be between 1 and 254 inclusive. To add a raw vendor string, omit .Ar code but keep the comma. Examples. .Pp Set the vendor option 01 with an IP address. .D1 vendor 01,192.168.0.2 Set the vendor option 02 with a hex code. .D1 vendor 02,01:02:03:04:05 Set the vendor option 03 with an IP address as a string. .D1 vendor 03,\e"192.168.0.2\e" Set un-encapsulated vendor option to hello world. .D1 vendor ,"hello world" .It Ic vendorclassid Ar string Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 If not set then none is sent. Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 Wait for an address to be assigned before forking to the background. 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. .El .Ss Defining new options DHCP, ND and DHCPv6 allow for the use of custom options. Each option needs to be started with the .Ic define , .If definend or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic definend Ar code Ar type Ar variable Defines the ND option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _nd . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will uniquely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. If the .Ar variable has the name of .Ar reserved then it is not processed. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic optional This option is optional. Only makes sense for embedded options where like the client FQDN option where the FQDN string itself is optional. .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes. .It Ic ip6address An IPv6 address, 16 bytes. .It Ic string Op : Ic length A NVT ASCII string of printable characters. .It Ic byte A byte. .It Ic bitflags : Ic flags A byte represented as a string of flags, most significant bit first. For example, using ABCDEFGH then A would equal 10000000, B 01000000, C 00100000, etc. If the bit is not set, the flag is not printed. A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. .It Ic int16 A signed 16bit integer, 2 bytes. .It Ic uint16 An unsigned 16bit integer, 2 bytes. .It Ic int32 A signed 32bit integer, 4 bytes. .It Ic uint32 An unsigned 32bit integer, 4 bytes. .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes. .It Ic domain A RFC 3397 encoded string. .It Ic dname A RFC 1035 validated string. .It Ic binhex Op : Ic length Binary data expressed as hexadecimal. .It Ic embed Contains embedded options (implies encap as well). .It Ic encap Contains encapsulated options (implies embed as well). .It Ic option References an option from the global definition. .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported Authentication Protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 and realm of "" in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenticate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported Authentication Algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , .Xr if_nametoindex 3 , .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 .Sh AUTHORS .An Roy Marples Aq Mt roy@@marples.name .Sh BUGS Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import dhcpcd-7.0.0-beta. Changes from prior version include: * source file locations reworked: dhcpcd source is in src dhcpcd hooks are in hooks compat is in compat * README split into README.md and BUILDING.md * internal routing is now protocol agnostic * avoid using __packed and use compile time asserts instead * addresses some alignment issues * disable some ARP code on kernels which support RFC5227 * BSD IPv6 kernel settings are now updated to reflect dhcpcd config * custom logger has been removed, syslog handles everything as such, the --logfile option has been removed as well. If you need better/earlier logging, get a better syslogger! * distinfo and signed distinfo files are now available alongside release taraballs from this point onwards * default DBDIR has changed from /var/db to /var/db/dhcpcd * /etc/dhcpcd.duid moves to DBDIR/duid * /etc/dhcpcd.secret moves to DBDIR/secret * lease file names have dhcpcd removed from them as they are now inside a directory of the same name * fixed issues with reject routes not working on some platforms * improved nl80211 support on Linux for working out the SSID * no longer request NTP by default in dhcpcd.conf * BPF filtering vastly improved so dhcpcd only wake up on ARP or DHCP packets destined for it * support for MUD URL (draft-ietf-opsawg-mud-05) * if the kernel isn't doing DAD, don't insist on waiting for it to actually do it * fix a potential crash where the DHCP or ARP states could be freed before the packet processing loop naturally breaks * removed gateway and nogateway options (these can be controlled by the nooption directive which works for more than just gateways) * removed ipv6ra_own and ipv6ra_own_default options (these can be controled by the ipv6rs/noipv6rs directive) * fix a crash receiving SIGUSR1 @ text @@ 1.1.1.2 log @Import dhcpcd-7.0.0-beta2 with the following changes: * Builds without AUTH now compile. * Builds without IPv4LL now compile. Thanks to Joerg Sonnenberger. * BPF no longer uses a variable length buffer for stack protector. * Minor documentation fix for duid file location. Thanks to Peter Colberg. @ text @d25 1 a25 1 .Dd April 2, 2017 d194 1 a194 1 .Pa @@DBDIR@@/dhcpcd.duid @ 1.1.1.3 log @Import dhcpcd-7.0.0-beta3 with the following changes: * restored --logfile support as a few people complained it vanished The new logging code even makes the overall binary size smaller on most platforms. * BPF filter now trims garbage trailing the payload OK, it's not garbage, but userland doesn't know some drivers append FCS to it. * support NetBSD's RO_MSGFILTER socket option to reduce avoid context switching for route(4) messages that don't interest us. * Don't open sockets if just sending signals. * HMAC-MD5 test's now check expectations in code rather than relying on visual confirmation. * added eloop-bench to test performance of eloop with available polling mechanisms. @ text @d25 1 a25 1 .Dd April 11, 2017 d194 1 a194 1 .Pa @@DBDIR@@/duid a415 12 .It Ic logfile Ar logfile Writes to the specified .Ar logfile rather than .Xr syslog 3 . The .Ar logfile is reopened when .Nm dhcpcd receives the .Dv SIGUSR2 signal. @ 1.1.1.3.2.1 log @file dhcpcd.conf.5.in was added on branch bouyer-socketcan on 2017-04-14 09:53:08 +0000 @ text @d1 912 @ 1.1.1.3.2.2 log @2552819 @ text @a0 912 .\" Copyright (c) 2006-2017 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd April 11, 2017 .Dt DHCPCD.CONF 5 .Os .Sh NAME .Nm dhcpcd.conf .Nd dhcpcd configuration file .Sh DESCRIPTION Although .Nm dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in .Xr dhcpcd 8 can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \\ character. Comments can be prefixed with the # character. String values should be quoted with the " character. .Pp Here's a list of available options: .Bl -tag -width indent .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 # My specific 192.168.0.1 network .D1 profile dd:ee:aa:dd:bb:ee .D1 static ip_address=192.168.0.10/24 .Pp .D1 # A generic 192.168.0.1 network .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.98/24 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Authentication Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed protocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic bootp Be a BOOTP client. Basically, this just doesn't send a DHCP Message Type option and will only interact with a BOOTP server. All other DHCP options still work. .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 .Pp If the hostname is set, it will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. .It Ic clientid Ar string Send the .Ar clientid . If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. .It Ic duid Generate an .Rs .%T "RFC 4361" .Re compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in .Pa @@DBDIR@@/duid and should not be copied to other hosts. .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic request Op Ar address Request the .Ar address in the DHCP DISCOVER message. There is no guarantee this is the address the DHCP server will actually give. If no .Ar address is given then the first address currently assigned to the .Ar interface is used. .It Ic inform Op Ar address Ns Op Ar /cidr Behaves like .Ic request as above, but sends a DHCP INFORM instead of DISCOVER/REQUEST. This does not get a lease as such, just notifies the DHCP server of the .Ar address in use. You should also include the optional .Ar cidr network number in case the address is not already configured on the interface. .Nm dhcpcd remains running and pretends it has an infinite lease. .Nm dhcpcd will not de-configure the interface when it exits. If .Nm dhcpcd fails to contact a DHCP server then it returns a failure instead of falling back on IPv4LL. .It Ic inform6 Performs a DHCPv6 Information Request. No address is requested or specified, but all other DHCPv6 options are allowed. This is normally performed automatically when the IPv6 Router Advertises that the client should perform this operation. This option is only needed when .Nm dhcpcd is not processing IPv6RA messages and the need for DHCPv6 Information Request exists. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. .It Ic hostname Ar name Sends the hostname .Ar name to the DHCP server so it can be registered in DNS. If .Ar name is an empty string then the current system hostname is sent. If .Ar name is a FQDN (ie, contains a .) then it will be encoded as such. .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len Op / Ar suffix Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned with the same resultant prefix length as the delegation, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. If no .Ar interface is given then we will assign a prefix to every other interface with a .Ar sla_id equivalent to the interface index assigned by the OS. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . Each assigned address will have a .Ar suffix , defaulting to 1. If the .Ar suffix is 0 then a slaac address is assigned. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . .Ar sla_id is an integer which must be unique inside the .Ar iaid and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation. .Pp In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. A second prefix is requested and assigned to two other interfaces. .Xr rtadvd 8 can be used with an empty configuration file on eth1, eth2 and eth3, to provide automatic IPv6 address configuration for the internal network. .Bd -literal noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # request a PD and assign it to eth1 ia_pd 3 eth2/1 eth3/2 # req a PD and assign it to eth2 and eth3 .Ed .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR record of the host in DNS whereas both also updates the A record. disable will disable the FQDN option. The default is both. .Nm dhcpcd itself never does any DNS updates. .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . .It Ic interface Ar interface Subsequent options are only parsed for this .Ar interface . .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option and a valid prefix or no DHCPv6 instruction. Set this option so to make .Nm dhcpcd always fork on an RA. .It Ic ipv6rs Enables IPv6 Router Advertisement solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. .It Ic leasetime Ar seconds Request a leasetime of .Ar seconds . .It Ic logfile Ar logfile Writes to the specified .Ar logfile rather than .Xr syslog 3 . The .Ar logfile is reopened when .Nm dhcpcd receives the .Dv SIGUSR2 signal. .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metric of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. .It Ic mudurl Ar url Specifies the URL for a manufacturer usage description (MUD). The description is used by upstream network devices to instantiate any desired access lists. See draft-ietf-opsawg-mud for more information. .It Ic noalias Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. .It Ic noarp Don't send any ARP requests. This also disables IPv4LL. .It Ic noauthrequired Don't require authentication even though we requested it. Also allows FORCERENEW and RECONFIGURE messages without authentication. .It Ic nodelay Don't delay for an initial randomised time when starting protocols. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. .It Ic nohook Ar script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .Pa .sh . .Pp So to stop .Nm dhcpcd from touching your DNS settings or starting wpa_supplicant you would do:- .D1 nohook resolv.conf, wpa_supplicant .It Ic noipv4 Don't attempt to configure an IPv4 address. .It Ic noipv4ll Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See .Rs .%T "RFC 3927" .Re .It Ic noipv6 Don't attempt to configure an IPv6 address. .It Ic noipv6rs Disable solicitation and receipt of IPv6 Router Advertisements. .It Ic nolink Don't receive link messages about carrier status. You should only set this for buggy interface drivers. .It Ic noup Don't bring the interface up when in master mode. If .Nm cannot determine the carrier state, .Nm will enter a tight polling loop until the interface is marked up and running or a valid carrier state is reported. .It Ic option Ar option Requests the .Ar option from the server. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. .Ar option Prepend dhcp6_ to .Ar option to request a DHCPv6 option. If no DHCPv6 options are configured, then DHCPv4 options are mapped to equivalent DHCPv6 options. .Pp Prepend nd_ to .Ar option to handle ND options, but this only works for the .Ic nooption , .Ic reject and .Ic require options. .Pp To see a list of options you can use, call .Nm dhcpcd with the .Fl V , Fl Fl variables argument. .It Ic nooption Ar option Remove the option from the message before it's processed. .It Ic require Ar option Requires the .Ar option to be present in all messages, otherwise the message is ignored. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet Suppress any dhcpcd output to the console, except for errors. .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. The default is 5 seconds. A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authoritative which means .Nm dhcpcd will timeout before moving back to the DISCOVER phase. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. .It Ic script Ar script Use .Ar script instead of the default .Pa @@SCRIPT@@ . .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. If you set .Ic ip6_address , .Nm dhcpcd will continue auto-configuation as normal. .Pp Here is an example which configures two static address, an IPv4 router, DNS and disables IPv6 auto-configuration. You could also use the .Ic inform6 command here if you wished to obtain more information via DHCPv6. For IPv4, you should use the .Ic inform Ar ipaddress option instead of setting a static address. .D1 interface eth0 .D1 noipv6rs .D1 static ip_address=192.168.0.10/24 .D1 static ip6_address=fd51:42f8:caae:d92e::ff/64 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers .It Ic timeout Ar seconds Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. .It Ic userclass Ar string Tag the DHCPv4 messages with the userclass. You can specify more than one. .It Ic vendor Ar code , Ns Ar value Add an encapsulated vendor option. .Ar code should be between 1 and 254 inclusive. To add a raw vendor string, omit .Ar code but keep the comma. Examples. .Pp Set the vendor option 01 with an IP address. .D1 vendor 01,192.168.0.2 Set the vendor option 02 with a hex code. .D1 vendor 02,01:02:03:04:05 Set the vendor option 03 with an IP address as a string. .D1 vendor 03,\e"192.168.0.2\e" Set un-encapsulated vendor option to hello world. .D1 vendor ,"hello world" .It Ic vendorclassid Ar string Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 If not set then none is sent. Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 Wait for an address to be assigned before forking to the background. 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. .El .Ss Defining new options DHCP, ND and DHCPv6 allow for the use of custom options. Each option needs to be started with the .Ic define , .If definend or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic definend Ar code Ar type Ar variable Defines the ND option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _nd . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will uniquely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. If the .Ar variable has the name of .Ar reserved then it is not processed. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic optional This option is optional. Only makes sense for embedded options where like the client FQDN option where the FQDN string itself is optional. .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes. .It Ic ip6address An IPv6 address, 16 bytes. .It Ic string Op : Ic length A NVT ASCII string of printable characters. .It Ic byte A byte. .It Ic bitflags : Ic flags A byte represented as a string of flags, most significant bit first. For example, using ABCDEFGH then A would equal 10000000, B 01000000, C 00100000, etc. If the bit is not set, the flag is not printed. A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. .It Ic int16 A signed 16bit integer, 2 bytes. .It Ic uint16 An unsigned 16bit integer, 2 bytes. .It Ic int32 A signed 32bit integer, 4 bytes. .It Ic uint32 An unsigned 32bit integer, 4 bytes. .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes. .It Ic domain A RFC 3397 encoded string. .It Ic dname A RFC 1035 validated string. .It Ic binhex Op : Ic length Binary data expressed as hexadecimal. .It Ic embed Contains embedded options (implies encap as well). .It Ic encap Contains encapsulated options (implies embed as well). .It Ic option References an option from the global definition. .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported Authentication Protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 and realm of "" in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenticate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported Authentication Algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , .Xr if_nametoindex 3 , .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 .Sh AUTHORS .An Roy Marples Aq Mt roy@@marples.name .Sh BUGS Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1.1.3.6.1 log @Sync with HEAD @ text @d25 1 a25 1 .Dd May 9, 2017 d202 1 a202 2 This defaults to the VLANID (prefixed with 0xff) for the interface if set, otherwise the last 4 bytes of the hardware address assigned to the a459 4 .It Ic nogateway Don't install any default routes. .It Ic gateway Install a default route if available (default). @ 1.1.1.4 log @Import dhcpcd-7.0.0-rc1 with the following changes: * Default to use VLANID>0 for IAID instead of MAC address * Stop sharing the DHCPv6 port in master mode with other processes * Fix some prefix delegation issues when the carrier drops or addresses become stale * Fix a crash when starting dhcpcd with -n * Fix test for preferring a fake lease over a real one * Show to real address lifetimes being added when adding IPv6 addresses * Restore the -G, --nogateway option @ text @d25 1 a25 1 .Dd May 9, 2017 d202 1 a202 2 This defaults to the VLANID (prefixed with 0xff) for the interface if set, otherwise the last 4 bytes of the hardware address assigned to the a459 4 .It Ic nogateway Don't install any default routes. .It Ic gateway Install a default route if available (default). @ 1.1.1.4.2.1 log @Pull up following revision(s) (requested by roy in ticket #478): doc/3RDPARTY: 1.1472, 1.1474, 1.1489, 1.1492 external/bsd/dhcpcd/dist/.gitignore: up to 1.4 external/bsd/dhcpcd/dist/LICENSE: up to 1.1.1.2 external/bsd/dhcpcd/dist/Makefile.inc: up to 1.1.1.2 external/bsd/dhcpcd/dist/README.md: up to 1.1.1.3 external/bsd/dhcpcd/dist/compat/crypt/hmac.c: up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/hmac.h: up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/md5.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/strlcpy.c: up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strlcpy.h: up to 1.1.1.1 external/bsd/dhcpcd/dist/configure: up to 1.1.1.4 external/bsd/dhcpcd/dist/hooks/01-test: up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in: up to 1.1.1.3 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/Makefile: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/arp.c: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/arp.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/auth.c: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/auth.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/bpf.c: up to 1.6 external/bsd/dhcpcd/dist/src/bpf.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/common.c: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/common.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/control.c: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/control.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/crypt/crypt.h: delete external/bsd/dhcpcd/dist/src/crypt/hmac_md5.c: delete external/bsd/dhcpcd/dist/src/defs.h: up to 1.1.1.8 external/bsd/dhcpcd/dist/src/dev.c: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dev.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp-common.c: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dhcp-common.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp.c: up to 1.7 external/bsd/dhcpcd/dist/src/dhcp.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dhcp6.c: up to 1.1.1.8 external/bsd/dhcpcd/dist/src/dhcp6.h: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.8.in: up to 1.1.1.7 external/bsd/dhcpcd/dist/src/dhcpcd.c: up to 1.7 external/bsd/dhcpcd/dist/src/dhcpcd.conf: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/dhcpcd.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/eloop.c: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/eloop.h: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/if-bsd.c: up to 1.1.1.6 external/bsd/dhcpcd/dist/src/if-linux-wext.c: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/if-linux.c: up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-options.c: up to 1.6 external/bsd/dhcpcd/dist/src/if-options.h: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/if-sun.c: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/if.c: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/if.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4.c: up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv4.h: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/ipv4ll.c: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4ll.h: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/ipv6.c: up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv6.h: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/ipv6nd.c: up to 1.1.1.6 external/bsd/dhcpcd/dist/src/ipv6nd.h: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/logerr.c: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/logerr.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/route.c: up to 1.1.1.5 external/bsd/dhcpcd/dist/src/route.h: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/sa.c: up to 1.1.1.3 external/bsd/dhcpcd/dist/src/sa.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/src/script.c: up to 1.1.1.4 external/bsd/dhcpcd/dist/src/script.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/Makefile: up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/run-test.c: up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test.h: up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c: up to 1.1.1.3 external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile: up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c: up to 1.1.1.2 external/bsd/dhcpcd/include/config.h: up to 1.2 external/bsd/dhcpcd/sbin/Makefile.inc: up to 1.5 external/bsd/dhcpcd/sbin/dhcpcd/Makefile: up to 1.42 Update dhcpcd to 7.0.0. @ text @d1 1 a1 1 .\" Copyright (c) 2006-2018 Roy Marples @ 1.1.1.4.2.2 log @Catch up to current in external/bsd/dhcpcd/, requested by roy in ticket #707: external/bsd/dhcpcd/dist/configure up to 1.1.1.7 external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/15-timezone up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/20-resolv.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/30-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-ntp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-yp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-ypbind.in up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in up to 1.1.1.4 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.1.1.4 external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.6 external/bsd/dhcpcd/dist/src/common.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.9 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcp6.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.8 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.10 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.7 external/bsd/dhcpcd/dist/src/dhcpcd.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if-options.c up to 1.8 external/bsd/dhcpcd/dist/src/if-options.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-sun.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/logerr.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.6 external/bsd/dhcpcd/dist/src/route.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dev/udev.c up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c up to 1.1.1.3 external/bsd/dhcpcd/include/config.h up to 1.3 external/bsd/dhcpcd/sbin/dhcpcd/Makefile up to 1.43 Import dhcpcd-7.0.1 with the following changes: * hooks: remove use of local builtin for better portability * dhcpcd: don't log errors working out carrier for departed interfaces * ipv4: allow configuration of static broadcast address * if: don't set MTU during interface discovery * if: don't activate non matching interfaces to commandline ones * eloop-bench: fix hangs when using a large number of cycles * dhcp: don't bind when we've just probed an address to inform Import dhcpcd-7.0.2 with the following changes: * Added support for setproctitle(3) * Kernel RA is no longer disabled when IPv6 is disabled in dhcpcd * DHCPv6 PD is no longer stopped if no Routers are found * If the DHCP leased address is deleted, enter the reboot state * DHCPv6 unicast is no longer performed when not in master mode * dhcpcd will now detect netlink/route socket overflows ad re-sync Import dhcpcd-7.0.3 with the following changes: * dhcp6: fix a null termination overflow on status messages * options: static routes can be setup in global context again * routes: dhcpcd added host routes are now reported correctly @ text @d25 1 a25 1 .Dd February 2, 2018 d228 1 a228 1 .It Ic inform Op Ar address Ns Op Ar /cidr Ns Op Ar /broadcast_address d483 1 a483 1 Don't solicit or accept IPv6 Router Advertisements and DHCPv6. d485 1 a485 1 Don't solicit or accept IPv6 Router Advertisements. d605 2 a606 2 Here is an example which configures two static address, overriding the default IPv4 broadcast address, an IPv4 router, DNS and disables IPv6 auto-configuration. a615 1 .D1 static broadcast_address=192.168.0.63 @ 1.1.1.4.2.3 log @Catch up to current in src/external/bsd/dhcpcd/dist, requested by roy in ticket #849: external/bsd/dhcpcd/dist/Makefile up to 1.1.1.5 external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/auth.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/auth.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/bpf.c up to 1.7 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.13 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.11 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/dhcp6.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.9 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.12 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.9 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/if-options.c up to 1.10 external/bsd/dhcpcd/dist/src/ipv4ll.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.7 doc/3RDPARTY (manually modified) Import dhcpcd 7.0.5b. Changes: * Routing: Fix case when cloning route changes but needs to be replaced * DHCP6: Transpose DHCP userclass option into DHCP6 * DHCP6: Fix sending custom vendor class option * Auth: Allow zero value replay detection data * Auth: Allow different tokens for send and receive * ND6: Warn if router lifetime is set to zero * DHCP6: Softwire Address and Port-Mapped Clients, RFC7598 * dhcp: Clarified some checksumming code, style and commentary (thanks to Maxime Villard) * dhcp6: IAID is now unique per IA type rather than global * ip6: if an IA callback causes a fork, exit earlier @ text @d25 1 a25 1 .Dd May 3, 2018 d77 1 a77 1 .It Ic authprotocol Ar protocol Op Ar algorithm Op Ar rdm a79 7 If .Ar protocol is .Ar token then .Ar algorithm is snd_secretid/rcv_secretid so you can send and recieve different tokens. d381 1 a381 2 .It Ic fqdn Op disable | none | ptr | both none will not ask the DHCP server to update DNS. d866 1 a866 5 Sends a plain text token the server expects and matches a token sent by the server. The tokens to not have to be the same. If unspecified, the token with secretid of 0 will be used in sending messages and validating received messages. @ 1.1.1.4.2.4 log @Pull up the following, requested by roy in ticket #896: external/bsd/dhcpcd/dist/src/common.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.14 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.13 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/duid.c up to 1.1.1.3 Import dhcpcd 7.0.6. @ text @d25 1 a25 1 .Dd June 5, 2018 d191 7 a197 5 Use a DHCP Unique Identifier. If a system UUID is available, that will be used to create a DUID-UUID, otheriwse if persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). d200 1 a200 1 The DUID generated will be held in a202 1 This file also takes precedence over the above rules. @ 1.1.1.4.2.5 log @Sync to head, requested by roy in ticket #1250: external/bsd/dhcpcd/dist/compat/consttime_memequal.h up to 1.1.1.1 external/bsd/dhcpcd/dist/.arcconfig delete external/bsd/dhcpcd/dist/BUILDING.md up to 1.1.1.3 external/bsd/dhcpcd/dist/LICENSE up to 1.1.1.3 external/bsd/dhcpcd/dist/Makefile up to 1.1.1.6 external/bsd/dhcpcd/dist/configure up to 1.1.1.11 external/bsd/dhcpcd/dist/iconfig.mk up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/20-resolv.conf up to 1.2 external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.2 external/bsd/dhcpcd/dist/hooks/30-hostname up to 1.2 external/bsd/dhcpcd/dist/hooks/50-ntp.conf up to 1.2 external/bsd/dhcpcd/dist/hooks/50-yp.conf up to 1.2 external/bsd/dhcpcd/dist/hooks/50-ypbind.in up to 1.2 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.3 external/bsd/dhcpcd/dist/src/Makefile up to 1.1.1.5 external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/arp.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/auth.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/auth.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/bpf.c up to 1.8 external/bsd/dhcpcd/dist/src/bpf.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/common.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/common.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/control.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/control.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.20 external/bsd/dhcpcd/dist/src/dev.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dev.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcp-common.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/dhcp-common.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.18 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.6 external/bsd/dhcpcd/dist/src/dhcp6.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.12 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.18 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.12 external/bsd/dhcpcd/dist/src/dhcpcd.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/duid.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/eloop.c up to 1.1.1.6 external/bsd/dhcpcd/dist/src/eloop.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.6 external/bsd/dhcpcd/dist/src/if-linux-wext.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/if-options.c up to 1.13 external/bsd/dhcpcd/dist/src/if-options.h up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if-sun.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.13 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv4ll.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv4ll.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.1.1.16 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.1.1.10 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.6 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/logerr.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/logerr.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/route.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/sa.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/sa.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/script.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/script.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dev/udev.c up to 1.1.1.3 external/bsd/dhcpcd/dist/tests/Makefile up to 1.1.1.2 external/bsd/dhcpcd/sbin/dhcpcd/Makefile up to 1.45 Import dhcpcd-7.2.1 with the following changes: * auth: Use consttime_memequal to avoid latency attack * DHCP: Fix a potential 1 byte read overflow with DHO_OPTSOVERLOADED * DHCPv6: Fix a potential buffer overflow reading NA/TA addresses @ text @d1 1 a1 1 .\" Copyright (c) 2006-2019 Roy Marples d25 1 a25 1 .Dd April 24, 2019 d64 1 a64 1 profile, otherwise the IP address. d113 1 a113 1 Fork to the background immediately. d133 1 a133 1 Normally this is only set for non-Ethernet interfaces, d167 1 a167 1 RFC 4702, section 3.1. d175 1 a175 3 A value of .Va SERVER means just what the server says, don't manipulate it. d255 2 a256 2 This is normally performed automatically when an IPv6 Router Advertisement indicates that the client should perform this operation. d259 1 a259 1 is not processing IPv6 RA messages and the need for a DHCPv6 Information Request d269 1 a269 1 Fall back to using this profile if DHCP fails. d280 1 a280 1 is a FQDN (i.e., contains a .) then it will be encoded as such. d330 1 a330 1 is 0 then a SLAAC address is assigned. d332 2 a333 2 DHCPv6 server supports the .Li RFC 6603 d377 2 a378 1 ipv6rs # enable routing solicitation for eth0 d388 5 a392 11 .Ar none will not ask the DHCP server to update DNS. .Ar ptr just asks the DHCP server to update the PTR record of the host in DNS, whereas .Ar both also updates the A record. .Ar disable will disable the FQDN option. The default is .Ar both . d397 1 a397 1 .Li RFC 1035 . d402 1 a402 1 Generate SLAAC addresses for each Prefix advertised by an IPv6 d410 1 a410 1 receives an IPv6 Router Advertisement, d443 1 a443 1 Specifies the URL for a Manufacturer Usage Description (MUD). d448 2 a449 2 Any pre-existing IPv4 addresses will be removed from the interface when adding a new IPv4 address. d467 1 a467 2 Normally DHCPv6 is started by an IPv6 Router Advertisement instruction or configuration. d516 1 d548 1 a548 1 This isn't an exact science though because a BOOTP server can send DHCP-like d597 1 a597 1 is used, an RFC 7217 address is generated. d605 2 a606 2 will not attempt to obtain a lease and will just use the value for the address with an infinite lease time. d629 1 a629 3 It uses the special .Ar destination keyword to insert the destination address d635 1 a635 1 Time out after d676 1 a676 1 DHCPv6 has its own option as shown below. d709 1 a709 2 DHCP, ND and DHCPv6 allow for the use of custom options, and RFC 3925 vendor options for DHCP can also be supplied. d712 2 a713 1 .Ic definend, a714 2 or .Ic vendopt d800 1 a800 1 configuration. d802 1 a802 1 This option cannot be requested, regardless of user configuration. d805 1 a805 1 Only makes sense for embedded options like the client FQDN option, where d845 1 a845 1 An RFC 3397 encoded string. d847 1 a847 1 An RFC 1035 validated string. d858 1 a858 1 .D1 # DHCP option 81, Fully Qualified Domain Name, RFC 4702 d865 1 a865 1 .D1 # DHCP option 125, Vendor Specific Information Option, RFC 3925 d875 2 a876 4 The tokens do not have to be the same. If unspecified, the token with a .Ar secretid of 0 will be used in sending messages d889 1 a889 4 will then look for an unexpired token with a matching .Ar realm and .Ar secretid . d906 2 a907 2 or the means of calculating or storing it is broken, then the DHCP server will probably have to have its notion of the client's Replay Detection Value d915 1 a915 1 Create an NTP timestamp from the system time. @ 1.1.1.5 log @Import dhcpcd-7.0.0 with the following changes: * dhcp: when unicasting on L3, unicast on L2 as well * dhcp: when rebooting, don't set cidaddr * dhcp6: don't listen on IPv6 addresses when not using DHCPv6 * dhcp: only set probe state when probing (fixes REBOOT reason) * ipv6: disable kernel RA if interface is active * hooks: set protocol to link for link layer events @ text @d1 1 a1 1 .\" Copyright (c) 2006-2018 Roy Marples @ 1.1.1.6 log @Import dhcpcd-7.0.1 with the following changes: * hooks: remove use of local builtin for better portability * dhcpcd: don't log errors working out carrier for departed interfaces * ipv4: allow configuration of static broadcast address * if: don't set MTU during interface discovery * if: don't activate non matching interfaces to commandline ones * eloop-bench: fix hangs when using a large number of cycles * dhcp: don't bind when we've just probed an address to inform @ text @d25 1 a25 1 .Dd January 8, 2018 d228 1 a228 1 .It Ic inform Op Ar address Ns Op Ar /cidr Ns Op Ar /broadcast_address d605 2 a606 2 Here is an example which configures two static address, overriding the default IPv4 broadcast address, an IPv4 router, DNS and disables IPv6 auto-configuration. a615 1 .D1 static broadcast_address=192.168.0.63 @ 1.1.1.6.2.1 log @Resolve conflicts between branch and HEAD @ text @d25 1 a25 1 .Dd February 2, 2018 d483 1 a483 1 Don't solicit or accept IPv6 Router Advertisements and DHCPv6. d485 1 a485 1 Don't solicit or accept IPv6 Router Advertisements. @ 1.1.1.6.2.2 log @Sync with HEAD @ text @d25 1 a25 1 .Dd April 29, 2018 d77 1 a77 1 .It Ic authprotocol Ar protocol Op Ar algorithm Op Ar rdm a79 7 If .Ar protocol is .Ar token then .Ar algorithm is snd_secretid/rcv_secretid so you can send and recieve different tokens. d866 1 a866 5 Sends a plain text token the server expects and matches a token sent by the server. The tokens to not have to be the same. If unspecified, the token with secretid of 0 will be used in sending messages and validating received messages. @ 1.1.1.6.2.3 log @Sync with HEAD @ text @d25 1 a25 1 .Dd June 5, 2018 d191 7 a197 5 Use a DHCP Unique Identifier. If a system UUID is available, that will be used to create a DUID-UUID, otheriwse if persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). d200 1 a200 1 The DUID generated will be held in a202 1 This file also takes precedence over the above rules. d388 1 a388 2 .It Ic fqdn Op disable | none | ptr | both none will not ask the DHCP server to update DNS. @ 1.1.1.6.2.4 log @Sync with HEAD @ text @d1 1 a1 1 .\" Copyright (c) 2006-2019 Roy Marples d25 1 a25 1 .Dd September 15, 2018 d64 1 a64 1 profile, otherwise the IP address. d113 1 a113 1 Fork to the background immediately. d133 1 a133 1 Normally this is only set for non-Ethernet interfaces, d167 1 a167 1 RFC 4702, section 3.1. d175 1 a175 3 A value of .Va SERVER means just what the server says, don't manipulate it. d255 2 a256 2 This is normally performed automatically when an IPv6 Router Advertisement indicates that the client should perform this operation. d259 1 a259 1 is not processing IPv6 RA messages and the need for a DHCPv6 Information Request d269 1 a269 1 Fall back to using this profile if DHCP fails. d280 1 a280 1 is a FQDN (i.e., contains a .) then it will be encoded as such. d330 1 a330 1 is 0 then a SLAAC address is assigned. d332 2 a333 2 DHCPv6 server supports the .Li RFC 6603 d388 5 a392 11 .Ar none will not ask the DHCP server to update DNS. .Ar ptr just asks the DHCP server to update the PTR record of the host in DNS, whereas .Ar both also updates the A record. .Ar disable will disable the FQDN option. The default is .Ar both . d397 1 a397 1 .Li RFC 1035 . d402 1 a402 1 Generate SLAAC addresses for each Prefix advertised by an IPv6 d410 1 a410 1 receives an IPv6 Router Advertisement, d443 1 a443 1 Specifies the URL for a Manufacturer Usage Description (MUD). d448 2 a449 2 Any pre-existing IPv4 addresses will be removed from the interface when adding a new IPv4 address. d467 1 a467 2 Normally DHCPv6 is started by an IPv6 Router Advertisement instruction or configuration. d516 1 d548 1 a548 1 This isn't an exact science though because a BOOTP server can send DHCP-like d597 1 a597 1 is used, an RFC 7217 address is generated. d605 2 a606 2 will not attempt to obtain a lease and will just use the value for the address with an infinite lease time. d629 1 a629 3 It uses the special .Ar destination keyword to insert the destination address d635 1 a635 1 Time out after d676 1 a676 1 DHCPv6 has its own option as shown below. d709 1 a709 2 DHCP, ND and DHCPv6 allow for the use of custom options, and RFC 3925 vendor options for DHCP can also be supplied. d712 2 a713 1 .Ic definend, a714 2 or .Ic vendopt d800 1 a800 1 configuration. d802 1 a802 1 This option cannot be requested, regardless of user configuration. d805 1 a805 1 Only makes sense for embedded options like the client FQDN option, where d845 1 a845 1 An RFC 3397 encoded string. d847 1 a847 1 An RFC 1035 validated string. d858 1 a858 1 .D1 # DHCP option 81, Fully Qualified Domain Name, RFC 4702 d865 1 a865 1 .D1 # DHCP option 125, Vendor Specific Information Option, RFC 3925 d875 2 a876 4 The tokens do not have to be the same. If unspecified, the token with a .Ar secretid of 0 will be used in sending messages d889 1 a889 4 will then look for an unexpired token with a matching .Ar realm and .Ar secretid . d906 2 a907 2 or the means of calculating or storing it is broken, then the DHCP server will probably have to have its notion of the client's Replay Detection Value d915 1 a915 1 Create an NTP timestamp from the system time. @ 1.1.1.7 log @Import dhcpcd-7.0.2 with the following changes: * Added support for setproctitle(3) * Kernel RA is no longer disabled when IPv6 is disabled in dhcpcd * DHCPv6 PD is no longer stopped if no Routers are found * If the DHCP leased address is deleted, enter the reboot state * DHCPv6 unicast is no longer performed when not in master mode * dhcpcd will now detect netlink/route socket overflows ad re-sync @ text @d25 1 a25 1 .Dd February 2, 2018 d483 1 a483 1 Don't solicit or accept IPv6 Router Advertisements and DHCPv6. d485 1 a485 1 Don't solicit or accept IPv6 Router Advertisements. @ 1.1.1.8 log @Import dhcpcd-7.0.4 with the following changes: * Routing: Fix case when cloning route changes but needs to be replaced * DHCP6: Transpose DHCP userclass option into DHCP6 * DHCP6: Fix sending custom vendor class option * Auth: Allow zero value replay detection data * Auth: Allow different tokens for send and receive * ND6: Warn if router lifetime is set to zero * DHCP6: Softwire Address and Port-Mapped Clients, RFC7598 @ text @d25 1 a25 1 .Dd April 29, 2018 d77 1 a77 1 .It Ic authprotocol Ar protocol Op Ar algorithm Op Ar rdm a79 7 If .Ar protocol is .Ar token then .Ar algorithm is snd_secretid/rcv_secretid so you can send and recieve different tokens. d866 1 a866 5 Sends a plain text token the server expects and matches a token sent by the server. The tokens to not have to be the same. If unspecified, the token with secretid of 0 will be used in sending messages and validating received messages. @ 1.1.1.9 log @Import dhcpcd-7.0.5 with the following changes: * dhcp: Clarified some checksumming code, style and commentary (thanks to Maxime Villard) * dhcp6: IAID is now unique per IA type rather than global * ip6: if an IA callback causes a fork, exit earlier @ text @d25 1 a25 1 .Dd May 3, 2018 d388 1 a388 2 .It Ic fqdn Op disable | none | ptr | both none will not ask the DHCP server to update DNS. @ 1.1.1.10 log @Import dhcpcd-7.0.6 with the following changes: * fixed compile issues with prior release * fixed carrier loss not being detected for IPv4 * UUID based DUID is used where available and no prior DUID exists @ text @d25 1 a25 1 .Dd June 5, 2018 d191 7 a197 5 Use a DHCP Unique Identifier. If a system UUID is available, that will be used to create a DUID-UUID, otheriwse if persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). d200 1 a200 1 The DUID generated will be held in a202 1 This file also takes precedence over the above rules. @ 1.1.1.10.2.1 log @Sync with HEAD @ text @d1 1 a1 1 .\" Copyright (c) 2006-2019 Roy Marples d25 1 a25 1 .Dd April 24, 2019 d64 1 a64 1 profile, otherwise the IP address. d113 1 a113 1 Fork to the background immediately. d133 1 a133 1 Normally this is only set for non-Ethernet interfaces, d167 1 a167 1 RFC 4702, section 3.1. d175 1 a175 3 A value of .Va SERVER means just what the server says, don't manipulate it. d255 2 a256 2 This is normally performed automatically when an IPv6 Router Advertisement indicates that the client should perform this operation. d259 1 a259 1 is not processing IPv6 RA messages and the need for a DHCPv6 Information Request d269 1 a269 1 Fall back to using this profile if DHCP fails. d280 1 a280 1 is a FQDN (i.e., contains a .) then it will be encoded as such. d330 1 a330 1 is 0 then a SLAAC address is assigned. d332 2 a333 2 DHCPv6 server supports the .Li RFC 6603 d377 2 a378 1 ipv6rs # enable routing solicitation for eth0 d388 5 a392 11 .Ar none will not ask the DHCP server to update DNS. .Ar ptr just asks the DHCP server to update the PTR record of the host in DNS, whereas .Ar both also updates the A record. .Ar disable will disable the FQDN option. The default is .Ar both . d397 1 a397 1 .Li RFC 1035 . d402 1 a402 1 Generate SLAAC addresses for each Prefix advertised by an IPv6 d410 1 a410 1 receives an IPv6 Router Advertisement, d443 1 a443 1 Specifies the URL for a Manufacturer Usage Description (MUD). d448 2 a449 2 Any pre-existing IPv4 addresses will be removed from the interface when adding a new IPv4 address. d467 1 a467 2 Normally DHCPv6 is started by an IPv6 Router Advertisement instruction or configuration. d516 1 d548 1 a548 1 This isn't an exact science though because a BOOTP server can send DHCP-like d597 1 a597 1 is used, an RFC 7217 address is generated. d605 2 a606 2 will not attempt to obtain a lease and will just use the value for the address with an infinite lease time. d629 1 a629 3 It uses the special .Ar destination keyword to insert the destination address d635 1 a635 1 Time out after d676 1 a676 1 DHCPv6 has its own option as shown below. d709 1 a709 2 DHCP, ND and DHCPv6 allow for the use of custom options, and RFC 3925 vendor options for DHCP can also be supplied. d712 2 a713 1 .Ic definend, a714 2 or .Ic vendopt d800 1 a800 1 configuration. d802 1 a802 1 This option cannot be requested, regardless of user configuration. d805 1 a805 1 Only makes sense for embedded options like the client FQDN option, where d845 1 a845 1 An RFC 3397 encoded string. d847 1 a847 1 An RFC 1035 validated string. d858 1 a858 1 .D1 # DHCP option 81, Fully Qualified Domain Name, RFC 4702 d865 1 a865 1 .D1 # DHCP option 125, Vendor Specific Information Option, RFC 3925 d875 2 a876 4 The tokens do not have to be the same. If unspecified, the token with a .Ar secretid of 0 will be used in sending messages d889 1 a889 4 will then look for an unexpired token with a matching .Ar realm and .Ar secretid . d906 2 a907 2 or the means of calculating or storing it is broken, then the DHCP server will probably have to have its notion of the client's Replay Detection Value d915 1 a915 1 Create an NTP timestamp from the system time. @ 1.1.1.10.2.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 3 .\" SPDX-License-Identifier: BSD-2-Clause .\" .\" Copyright (c) 2006-2020 Roy Marples d25 1 a25 1 .Dd February 19, 2020 a59 20 .It Ic anonymous Enables Anonymity Profiles for DHCP, RFC 7844. This implementation forces a hardware address randomisaton when the interface link is down and that ClientID's are only LL. Any DUID is ignored. All non essential options are then masked at this point, but they could be unmasked by explicitly requesting the option .Sy after the .Ic anonymous option is processed. As such, the .Ic anonymous option .Sy should be the last option in the configuration unless you really want to send something which could identify you. .Nm dhcpcd will not try and reboot an old lease, it will go straight into DISCOVER/SOLICIT. d86 1 a86 1 snd_secretid/rcv_secretid so you can send and receive different tokens. d140 1 a140 1 .Pa @@RUNDIR@@/sock a430 6 .It Ic link_rcvbuf Ar size Override the size of the link receive buffer from the kernel default. While .Nm dhcpcd will recover from link buffer overflows, this may not be desirable on heavily loaded systems. d433 2 a434 3 .Ar logfile . .Nm dhcpcd still writes to d449 1 a449 1 .It Ic mudurl Ar url d617 1 a617 1 will continue auto-configuration as normal. d664 1 a664 1 Tag the DHCPv4 message with the userclass. a665 9 .It Ic msuserclass Ar string Tag the DHCPv4 mesasge with the Microsoft userclass. Unlike the .Ic userclass option, this one can only be added once. It should only be used for Microsoft DHCP servers and the .Ic vendorclassid should be set to "MSFT 98" or "MSFT 5.0". This option is not RFC compliant. d700 3 a702 1 as per RFC 3925 is undefined if the Enterprise Number differs. d722 1 a722 1 .Ic definend , @ 1.1.1.10.2.3 log @Sync with HEAD @ text @d27 1 a27 1 .Dd April 19, 2020 d445 1 a445 1 always fork on a RA. d629 1 a629 1 .It Ic slaac Ar hwaddr | Ar private Op Ar temp | Ar temporary d633 1 a633 4 is used, a RFC 7217 address is generated. The .Ar temporary directive will create a temporary address for the prefix as well. @ 1.1.1.11 log @Import dhcpcd-7.1.0 with the following changes: * NetBSD: sets SO_RERROR on to detect receive socket overflow * BSD: route improvements to avoid listening for own changes * IP6: implement IP6 address sharing * BSD: catch UP/DOWN events when interfaces does support media changes * IPv4LL: remember old address when carrier is lost @ text @d1 1 a1 1 .\" Copyright (c) 2006-2019 Roy Marples d25 1 a25 1 .Dd September 15, 2018 d64 1 a64 1 profile, otherwise the IP address. d113 1 a113 1 Fork to the background immediately. d133 1 a133 1 Normally this is only set for non-Ethernet interfaces, d167 1 a167 1 RFC 4702, section 3.1. d175 1 a175 3 A value of .Va SERVER means just what the server says, don't manipulate it. d255 2 a256 2 This is normally performed automatically when an IPv6 Router Advertisement indicates that the client should perform this operation. d259 1 a259 1 is not processing IPv6 RA messages and the need for a DHCPv6 Information Request d269 1 a269 1 Fall back to using this profile if DHCP fails. d280 1 a280 1 is a FQDN (i.e., contains a .) then it will be encoded as such. d330 1 a330 1 is 0 then a SLAAC address is assigned. d332 2 a333 2 DHCPv6 server supports the .Li RFC 6603 d388 5 a392 11 .Ar none will not ask the DHCP server to update DNS. .Ar ptr just asks the DHCP server to update the PTR record of the host in DNS, whereas .Ar both also updates the A record. .Ar disable will disable the FQDN option. The default is .Ar both . d397 1 a397 1 .Li RFC 1035 . d402 1 a402 1 Generate SLAAC addresses for each Prefix advertised by an IPv6 d410 1 a410 1 receives an IPv6 Router Advertisement, d443 1 a443 1 Specifies the URL for a Manufacturer Usage Description (MUD). d448 2 a449 2 Any pre-existing IPv4 addresses will be removed from the interface when adding a new IPv4 address. d467 1 a467 2 Normally DHCPv6 is started by an IPv6 Router Advertisement instruction or configuration. d516 1 d548 1 a548 1 This isn't an exact science though because a BOOTP server can send DHCP-like d597 1 a597 1 is used, an RFC 7217 address is generated. d605 2 a606 2 will not attempt to obtain a lease and will just use the value for the address with an infinite lease time. d629 1 a629 3 It uses the special .Ar destination keyword to insert the destination address d635 1 a635 1 Time out after d676 1 a676 1 DHCPv6 has its own option as shown below. d709 1 a709 2 DHCP, ND and DHCPv6 allow for the use of custom options, and RFC 3925 vendor options for DHCP can also be supplied. d712 2 a713 1 .Ic definend, a714 2 or .Ic vendopt d800 1 a800 1 configuration. d802 1 a802 1 This option cannot be requested, regardless of user configuration. d805 1 a805 1 Only makes sense for embedded options like the client FQDN option, where d845 1 a845 1 An RFC 3397 encoded string. d847 1 a847 1 An RFC 1035 validated string. d858 1 a858 1 .D1 # DHCP option 81, Fully Qualified Domain Name, RFC 4702 d865 1 a865 1 .D1 # DHCP option 125, Vendor Specific Information Option, RFC 3925 d875 2 a876 4 The tokens do not have to be the same. If unspecified, the token with a .Ar secretid of 0 will be used in sending messages d889 1 a889 4 will then look for an unexpired token with a matching .Ar realm and .Ar secretid . d906 2 a907 2 or the means of calculating or storing it is broken, then the DHCP server will probably have to have its notion of the client's Replay Detection Value d915 1 a915 1 Create an NTP timestamp from the system time. @ 1.1.1.12 log @Import dhcpcd-7.2.1 with the following changes: * auth: Use consttime_memequal to avoid latency attack * DHCP: Fix a potential 1 byte read overflow with DHO_OPTSOVERLOADED * DHCPv6: Fix a potential buffer overflow reading NA/TA addresses @ text @d25 1 a25 1 .Dd April 24, 2019 d379 2 a380 1 ipv6rs # enable routing solicitation for eth0 @ 1.1.1.13 log @Import dhcpcd-8.0.0 with the following changes: * ARP now supports many requests * Routing tables now use Red-Black Trees * Script variables are no longer allocated manually @ text @a0 2 .\" SPDX-License-Identifier: BSD-2-Clause .\" a430 6 .It Ic link_rcvbuf Ar size Override the size of the link receive buffer from the kernel default. While .Nm dhcpcd will recover from link buffer overflows, this may not be desirable on heavily loaded systems. @ 1.1.1.13.2.1 log @Catch up to current for the following files, requested by roy in ticket #177: external/bsd/dhcpcd/dist/BUILDING.md up to 1.1.1.5 external/bsd/dhcpcd/dist/Makefile up to 1.1.1.7 external/bsd/dhcpcd/dist/Makefile.inc up to 1.1.1.3 external/bsd/dhcpcd/dist/configure up to 1.1.1.15 external/bsd/dhcpcd/dist/compat/rb.c up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/rbtree.h up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/Makefile up to 1.1.1.2 external/bsd/dhcpcd/dist/src/Makefile up to 1.1.1.6 external/bsd/dhcpcd/dist/src/bpf.c up to 1.12 external/bsd/dhcpcd/dist/src/control.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/control.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.27 external/bsd/dhcpcd/dist/src/dhcp-common.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.25 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.12 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.3 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.25 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.14 external/bsd/dhcpcd/dist/src/duid.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.12 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.16 external/bsd/dhcpcd/dist/src/if-options.c up to 1.17 external/bsd/dhcpcd/dist/src/if-options.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/if-sun.c up to 1.1.1.11 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.16 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.17 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.10 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.4 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.5 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.11 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.14 external/bsd/dhcpcd/dist/src/route.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/sa.c up to 1.1.1.6 external/bsd/dhcpcd/dist/src/script.c up to 1.1.1.11 Import dhcpcd-8.0.4 with the following changes: * BSD: Fixed router reachability tests * inet6: If router unreachable, just solicit a new one * inet6: Fon't install a default route if only lladdresses * inet6: Stop listening to NA messages * BSD: Listen to RTM_MISS messages * DHCP: Fix in_cksum for Big Endian * DHCP{,6}: Don't log an error if the lease file is truncated Changes in dhcpcd-8.0.3: * DHCP: Work with IP headers with options * script: Assert that env string are correctly terminated * script: Terminate env strings with no value * script: Don't attempt to use an invalid env string * route: Fix NULL deference error when using static routes * ARP: Respect IFF_NOARP * DHCP: Allow full DHCP support for PtP interfaces, but not by default * control: sends correct buffer to listeners dhcpcd-ui now correctly reports SSD association and all the addresses obtained (regression from dhcpcd-7) @ text @d27 1 a27 1 .Dd August 28, 2019 d625 1 a625 1 will continue auto-configuration as normal. d708 3 a710 1 as per RFC 3925 is undefined if the Enterprise Number differs. @ 1.1.1.13.2.2 log @Pull up the following revisions, requested by roy in ticket #302: external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h up to 1.1.1.2 external/bsd/dhcpcd/NetBSD-upgrade up to 1.2 external/bsd/dhcpcd/dist/compat/crypt/sha256.c delete external/bsd/dhcpcd/dist/compat/crypt/hmac.c delete external/bsd/dhcpcd/dist/compat/crypt/hmac.h delete external/bsd/dhcpcd/dist/compat/crypt/md5.c delete external/bsd/dhcpcd/dist/compat/crypt/md5.h delete external/bsd/dhcpcd/dist/compat/crypt/sha256.h delete external/bsd/dhcpcd/dist/compat/_strtoi.h delete external/bsd/dhcpcd/dist/compat/arc4random.c delete external/bsd/dhcpcd/dist/compat/arc4random.h delete external/bsd/dhcpcd/dist/compat/arc4random_uniform.c delete external/bsd/dhcpcd/dist/compat/arc4random_uniform.h delete external/bsd/dhcpcd/dist/compat/bitops.h delete external/bsd/dhcpcd/dist/compat/consttime_memequal.h delete external/bsd/dhcpcd/dist/compat/dprintf.c delete external/bsd/dhcpcd/dist/compat/dprintf.h delete external/bsd/dhcpcd/dist/compat/endian.h delete external/bsd/dhcpcd/dist/compat/pidfile.c delete external/bsd/dhcpcd/dist/compat/pidfile.h delete external/bsd/dhcpcd/dist/compat/queue.h delete external/bsd/dhcpcd/dist/compat/rb.c delete external/bsd/dhcpcd/dist/compat/rbtree.h delete external/bsd/dhcpcd/dist/compat/reallocarray.c delete external/bsd/dhcpcd/dist/compat/reallocarray.h delete external/bsd/dhcpcd/dist/compat/strlcpy.c delete external/bsd/dhcpcd/dist/compat/strlcpy.h delete external/bsd/dhcpcd/dist/compat/strtoi.c delete external/bsd/dhcpcd/dist/compat/strtoi.h delete external/bsd/dhcpcd/dist/compat/strtou.c delete external/bsd/dhcpcd/dist/.gitignore delete external/bsd/dhcpcd/dist/BUILDING.md delete external/bsd/dhcpcd/dist/Makefile delete external/bsd/dhcpcd/dist/Makefile.inc delete external/bsd/dhcpcd/dist/config-null.mk delete external/bsd/dhcpcd/dist/configure delete external/bsd/dhcpcd/dist/iconfig.mk delete external/bsd/dhcpcd/dist/hooks/Makefile delete external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat delete external/bsd/dhcpcd/dist/hooks/50-yp.conf delete external/bsd/dhcpcd/dist/src/Makefile delete external/bsd/dhcpcd/dist/src/GNUmakefile delete external/bsd/dhcpcd/dist/src/dev.c delete external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf delete external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf delete external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in delete external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in delete external/bsd/dhcpcd/dist/src/genembedc delete external/bsd/dhcpcd/dist/src/genembedh delete external/bsd/dhcpcd/dist/src/if-linux-wext.c delete external/bsd/dhcpcd/dist/src/if-linux.c delete external/bsd/dhcpcd/dist/src/if-sun.c delete external/bsd/dhcpcd/dist/src/dev/Makefile delete external/bsd/dhcpcd/dist/src/dev/udev.c delete external/bsd/dhcpcd/dist/tests/crypt/.gitignore delete external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile delete external/bsd/dhcpcd/dist/tests/crypt/Makefile delete external/bsd/dhcpcd/dist/tests/crypt/README.md delete external/bsd/dhcpcd/dist/tests/crypt/run-test.c delete external/bsd/dhcpcd/dist/tests/crypt/test.h delete external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c delete external/bsd/dhcpcd/dist/tests/Makefile delete external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore delete external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile delete external/bsd/dhcpcd/dist/tests/eloop-bench/README.md delete external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c delete external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/bpf.c up to 1.13 external/bsd/dhcpcd/dist/src/bpf.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/common.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/common.h up to 1.1.1.9 external/bsd/dhcpcd/dist/src/control.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.30 external/bsd/dhcpcd/dist/src/dhcp-common.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/dhcp-common.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.28 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.13 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.4 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.27 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.15 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.14 external/bsd/dhcpcd/dist/src/if-options.c up to 1.18 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.17 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.12 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.18 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.11 external/bsd/dhcpcd/dist/src/ipv4ll.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/ipv4ll.h up to 1.1.1.8 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.5 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.6 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.12 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.15 external/bsd/dhcpcd/sbin/dhcpcd/Makefile up to 1.49 doc/3RDPARTY modified manually Import dhcpcd-8.1.0 with the following changes: * Fix carrier status after a route socket overflow * Allow domain spaced options * DHCP: Allow not sending Force Renew Nonce or Reconf Accept * IPv4LL: Now passes Apple Bonjour test versions 1.4 and 1.5 * ARP: Fix a typo and remove pragma (thus working with old gcc) * DHCP6: Fix a cosmetic issue with infinite leases * DHCP6: SLA 0 and Prefix Len 0 will now add a delegatd /64 address * Ignore some virtual interfaces such as Tap and Bridge by default * BPF: Move validation logic out of BPF and back into dhcpcd @ text @d27 1 a27 1 .Dd September 8, 2019 d457 1 a457 1 .It Ic mudurl Ar url d728 1 a728 1 .Ic definend , @ 1.1.1.13.2.3 log @Pull up the following, requested by roy in ticket #602: external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.4 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.36 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.31 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.14 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.15 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.31 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.16 external/bsd/dhcpcd/dist/src/if-options.c up to 1.20 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.20 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.7 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.7 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.15 doc/3RDPARTY (manually updated) Import dhcpcd 8.1.5, which fixes: * IPv6ND: Fix reachable test * DHCP6: Work better with infinite addresses * DHCP6: Suboption 3 of NTP Server is a FQDN * DHCP6: Fix deprecating a delegated prefix * DHCP: Ensure we have a lease to extract options from * options: Fix allocating the script option * inet: Allow forcing a host route from an interface without a lease * dhcpcd: Don't wait for an address family to complete if not using it @ text @d27 1 a27 1 .Dd November 15, 2019 d88 1 a88 1 snd_secretid/rcv_secretid so you can send and receive different tokens. @ 1.1.1.14 log @Import dhcpcd-8.0.4 with the following changes: * BSD: Fixed router reachability tests * inet6: If router unreachable, just solicit a new one * inet6: Fon't install a default route if only lladdresses * inet6: Stop listening to NA messages * BSD: Listen to RTM_MISS messages * DHCP: Fix in_cksum for Big Endian * DHCP{,6}: Don't log an error if the lease file is truncated @ text @d27 1 a27 1 .Dd August 28, 2019 d625 1 a625 1 will continue auto-configuration as normal. d708 3 a710 1 as per RFC 3925 is undefined if the Enterprise Number differs. @ 1.1.1.15 log @Import dhcpcd-8.0.5 with the following changes: * inet6: Fix default route not being installed * DHCP: If root fs is network mounted, enable last lease extend * man: Fix lint errors. * DHCP: Give a better message when packet validation fails * DHCP: Ensure we have enough data to checksum IP and UDP The last change fixes a potential DoS attack introduced in dhcpcd-8.0.3 when the checksuming code was changed to accomodate variable length IP headers. @ text @d27 1 a27 1 .Dd September 8, 2019 d457 1 a457 1 .It Ic mudurl Ar url d728 1 a728 1 .Ic definend , @ 1.1.1.16 log @Import dhcpcd-8.1.3 with the following changes: * dhcpcd: Only report SSID when we have a carrier * IPv6ND: Fix reachable test * DHCP6: Work better with infinite addresses * DHCP6: Suboption 3 of NTP Server is a FQDN * DHCP6: Fix deprecating a delegated prefix * DHCP: Ensure we have a lease to extract options from @ text @d27 1 a27 1 .Dd November 15, 2019 d88 1 a88 1 snd_secretid/rcv_secretid so you can send and receive different tokens. @ 1.1.1.17 log @Update to dhcpcd-9.0.0 with the following changes: * Decode interface complex interface names eth0.100:2 eth0i100:2. This allows us to ignore some virtual interfaces by default * ARP: Report L2 header address on conflict for more clarity * DHCP: Support jumbo frames (untested) * DHCP6: Clean up old lease on failure to confirm/rebind, etc * RA: Prefer older routers * INET6: Obscure prefixes are now calculated correctly * Privilege Separation * default hostname is now a blank string rather than localhost * Leases are now dumped over the control socket - you get RA's now as well. * Better support for many IPv6 routers * RTM_MISS filtering * RA: Deprecate stale addresses by setting pltime 0 * DHCP6: Deprecate stale addresses by setting pltime 0 @ text @d3 1 a3 1 .\" Copyright (c) 2006-2020 Roy Marples d27 1 a27 1 .Dd February 19, 2020 a61 20 .It Ic anonymous Enables Anonymity Profiles for DHCP, RFC 7844. This implementation forces a hardware address randomisaton when the interface link is down and that ClientID's are only LL. Any DUID is ignored. All non essential options are then masked at this point, but they could be unmasked by explicitly requesting the option .Sy after the .Ic anonymous option is processed. As such, the .Ic anonymous option .Sy should be the last option in the configuration unless you really want to send something which could identify you. .Nm dhcpcd will not try and reboot an old lease, it will go straight into DISCOVER/SOLICIT. d142 1 a142 1 .Pa @@RUNDIR@@/sock d441 2 a442 3 .Ar logfile . .Nm dhcpcd still writes to d672 1 a672 1 Tag the DHCPv4 message with the userclass. a673 9 .It Ic msuserclass Ar string Tag the DHCPv4 mesasge with the Microsoft userclass. Unlike the .Ic userclass option, this one can only be added once. It should only be used for Microsoft DHCP servers and the .Ic vendorclassid should be set to "MSFT 98" or "MSFT 5.0". This option is not RFC compliant. @ 1.1.1.18 log @Update to dhcpcd-9.0.2 with the following changes: * Control sockets are not opened in test mode * privsep: no longer aborts if protocol not available * inet6: Don't regen temporary addresses without a state * inet6: Reduce RA log spam * dhcp6: Don't log when things consitently fail * inet6: Add temporary directive to slaac option [1] * Ensure current interface flags persist when setting a flag * DHCP via BPF is now aligned correctly * CMSG buffers are now aligned correctly * hostnames are no longer clobbered when being forced and a RA is recieved [1] dhcpcd no longer looks at any possible kernel settings when deciding to manage IPv6 temporary addresses or not. You now instruct dhcpcd to do this in dhcpcd.conf. Playing whack-a-mole with various kernel knobs wasn't fun and some OS's have or are removing RA and thus temporary address managemnt from the kernel so said knobs are no longer there. @ text @d27 1 a27 1 .Dd April 19, 2020 d445 1 a445 1 always fork on a RA. d629 1 a629 1 .It Ic slaac Ar hwaddr | Ar private Op Ar temp | Ar temporary d633 1 a633 4 is used, a RFC 7217 address is generated. The .Ar temporary directive will create a temporary address for the prefix as well. @ 1.1.1.19 log @Update to dhcpcd-9.1.0 with the following changes: * Leases are stored outside the chroot again * The chroot directory can now be (and should be) empty [1] * ARP is now per address rather than per interface * Filter allowed ioctls in the privileged actioneer * Filter allowed UDP ports used by sendto(2) in the privileged actioneer * Filter allowed file paths in the privileged actioneer * route socket is now drained on overflow as it cannot be re-opened by the unpriviledged user * hostname can no longer be clobbered by SLAAC * grep is no longer used by the test hook * Interface hardware address type changes are now picked up * Fixed some RA timing issues * Fixed nd_* option parsing in dhcpcd.conf * Allow SIGPIPE in scripts * Default dhcpcd.conf no longer sends the current hostname * Default dhcpcd.conf no longer sends a vendorclassid @ text @d27 1 a27 1 .Dd May 12, 2020 d795 1 a795 1 .Va nd_ . d806 1 a806 1 .Va dhcp6_ . @ 1.1.1.20 log @Update to dhcpcd-9.1.3 with the following changes: * inet6: Add support for reporting Mobile IPv6 RA's * inet6: Report RA Proxy flag if set * BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF * privsep: Don't handle any signals meant for the main process * eloop: Try and survive a signal storm * dhcpcd: Add an option to poll the interface carrier state * script: Make visible some link level parameters to lease dumping * inet6: Don't regen temp addresses we didn't add * privsep: Don't limit file writes if logging to a file * DHCP6: Fix lease timings with nodelay option @ text @d27 1 a27 1 .Dd June 18, 2020 a597 6 .It Ic poll Op Ar time Polls the interface every .Ar time milliseconds (default of 100) to check flags and carrier status. This option should only be used if the driver does not report link state changes but can report the link state. @ 1.1.1.21 log @Update to dhcpcd-9.2.0 with the following changes: * route: ensure IPv4LL routes come last in priority * DHCP: fix many issues with extending the last lease * privsep: don't read control group from config in privsep * privsep: only the master process responds to signals * privsep: use a socketpair for stderr/stdin rather than dupping /dev/null * privsep: right limit stdin/stderr/stdout * privsep: dumping a lease is now run in a sandbox * options: check if kernel supports INET or INET6 before enabling default * options: let clientid override a prior duid * options: allow -1 to represent infinity for requested lease time * dhcpcd: fix a crash initing a new interface after route overflow @ text @d27 1 a27 1 .Dd September 2, 2020 d451 1 a451 1 Request a lease time of a452 6 .Ar -1 represents an infinite lease time. By default .Nm dhcpcd does not request any lease time and leaves it in the hands of the DHCP server. @ 1.1.1.22 log @Update to dhcpcd-9.3.0 with the following changes: * dhcpcd: Backticks have been removed from quoting filenames * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid * duid: Adjust option so the type can be specified * logerr: Don't leak logfile fd to scripts * privsep: Run the launcher process in the sandbox * BSD: Use `ifi_link_state` as the single source of truth about carrier * BSD: Ignore vether(4) devices by default @ text @d27 1 a27 1 .Dd September 28, 2020 d214 1 a214 1 .It Ic duid Op ll | lt | uuid a219 3 The DUID type can be hinted as an optional parameter if the file .Pa @@DBDIR@@/duid does not exist. d541 6 d604 6 @ 1.1.1.23 log @Update to dhcpcd-9.3.2 with the following changes: * DHCP: Add support for IPv6-Only Preferred option, RFC 8925. * BSD: `LINK_STATE_UNKNOWN` is treated as UP once again * privsep: pass logging to the privileged actioneer * privsep: allow logfile re-opening to work * privsep: close BPF socket on ENXIO * privsep: don't leave a BOOTP BPF listener rebooting in non master mode @ text @d27 1 a27 1 .Dd October 25, 2020 d609 2 a610 7 seconds before moving to the DISCOVER phase if we have an old lease to use. Allow .Ar reboot seconds before starting fallback states from the DISCOVER phase. IPv4LL is started when the first .Ar reboot timeout is reached. d613 2 a614 2 .Nm to skip the reboot phase and go straight into DISCOVER. a620 1 This has no effect on DHCPv6 other than skipping the reboot phase. @ 1.1.1.24 log @Upate to dhcpcd-9.3.4 with the following changes: With the following changes: * DHCP: If error adding the address in oneshot, exit with failure * DHCP: Only listen to the address if we successfully added it * DHCP6: Fix segfault introduced in dhcpcd-9.3.3 * DHCP6: Abort in test mode when an error is returned by server * options: allow --ia_na=1 and --ia_pd=2 on the command line * options: Allow duid to take a value @ text @d27 1 a27 1 .Dd November 25, 2020 d214 1 a214 1 .It Ic duid Op ll | lt | uuid | value a222 8 If not .Va ll , .Va lt or .Va uuid then .Va value will be converted from 00:11:22:33 format. d228 1 a228 1 This file also takes precedence over the above rules except for setting a value. @ 1.1.1.25 log @Update to dhcpcd-9.4.0 with the following changes: * DHCP: For anonymous, just use a generic ClientID * link: Split hardware address randomisation out of anonymous option * link: Only report hardware changes for active interfaces * link: Report errors obtaining recv buffer size on overflow * hooks: Add NOCARRIER_ROAMING reason * hooks: interface_order now reflects priorities again @ text @d27 1 a27 1 .Dd December 27, 2020 d64 3 a66 1 Any DUID is ignored and ClientID is set to LL only. a81 4 .It Ic randomise_hwaddr Forces a hardware address randomisation when the interface is brought up or when the carrier is lost. This is generally used in tandem with the anonymous option. @ 1.1.1.10.4.1 log @file dhcpcd.conf.5.in was added on branch netbsd-7 on 2018-07-27 10:43:21 +0000 @ text @d1 929 @ 1.1.1.10.4.2 log @Pull up following revision(s) (requested by roy in ticket #1621): external/bsd/dhcpcd/dist/compat/crypt/sha256.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/md5.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/md5.h up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/crypt/sha256.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/hmac.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/crypt/hmac.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/_strtoi.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random_uniform.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/arc4random_uniform.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/bitops.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/dprintf.c up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/dprintf.h up to 1.1.1.2 external/bsd/dhcpcd/dist/compat/endian.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/pidfile.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/pidfile.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/queue.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/reallocarray.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/reallocarray.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtoi.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtoi.h up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strtou.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strlcpy.c up to 1.1.1.1 external/bsd/dhcpcd/dist/compat/strlcpy.h up to 1.1.1.1 external/bsd/dhcpcd/dist/config-null.mk up to 1.1.1.1 external/bsd/dhcpcd/dist/configure up to 1.1.1.8 external/bsd/dhcpcd/dist/iconfig.mk up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/01-test up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/02-dump up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/15-timezone up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/20-resolv.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/29-lookup-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/30-hostname up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-dhcpcd-compat up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/50-ntp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-yp.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/50-ypbind.in up to 1.1.1.2 external/bsd/dhcpcd/dist/hooks/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in up to 1.1.1.4 external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in up to 1.1.1.4 external/bsd/dhcpcd/dist/src/GNUmakefile up to 1.1.1.1 external/bsd/dhcpcd/dist/src/Makefile up to 1.1.1.4 external/bsd/dhcpcd/dist/src/arp.c up to 1.1.1.7 external/bsd/dhcpcd/dist/src/arp.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/auth.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/auth.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/bpf.c up to 1.7 external/bsd/dhcpcd/dist/src/bpf.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/common.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/common.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/control.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/control.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/defs.h up to 1.1.1.15 external/bsd/dhcpcd/dist/src/dev.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/dev.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp-common.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/dhcp-common.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcp.c up to 1.11 external/bsd/dhcpcd/dist/src/dhcp.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcp6.c up to 1.1.1.12 external/bsd/dhcpcd/dist/src/dhcp6.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/dhcpcd-definitions-small.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-definitions.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c.in up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h.in up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.8.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcpcd.c up to 1.13 external/bsd/dhcpcd/dist/src/dhcpcd.conf up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in up to 1.1.1.10 external/bsd/dhcpcd/dist/src/dhcpcd.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/duid.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/duid.h up to 1.1.1.1 external/bsd/dhcpcd/dist/src/eloop.c up to 1.1.1.5 external/bsd/dhcpcd/dist/src/eloop.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/genembedc up to 1.1.1.1 external/bsd/dhcpcd/dist/src/genembedh up to 1.1.1.1 external/bsd/dhcpcd/dist/src/if-bsd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if-linux-wext.c up to 1.1.1.2 external/bsd/dhcpcd/dist/src/if-linux.c up to 1.1.1.10 external/bsd/dhcpcd/dist/src/if-options.c up to 1.10 external/bsd/dhcpcd/dist/src/if-options.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/if-sun.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/if.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/if.h up to 1.1.1.5 external/bsd/dhcpcd/dist/src/ipv4.c up to 1.1.1.9 external/bsd/dhcpcd/dist/src/ipv4.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4ll.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv4ll.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/ipv6.c up to 1.1.1.11 external/bsd/dhcpcd/dist/src/ipv6.h up to 1.1.1.7 external/bsd/dhcpcd/dist/src/ipv6nd.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/ipv6nd.h up to 1.1.1.6 external/bsd/dhcpcd/dist/src/logerr.c up to 1.1.1.2 external/bsd/dhcpcd/dist/src/logerr.h up to 1.1.1.3 external/bsd/dhcpcd/dist/src/route.c up to 1.1.1.8 external/bsd/dhcpcd/dist/src/route.h up to 1.1.1.4 external/bsd/dhcpcd/dist/src/sa.c up to 1.1.1.3 external/bsd/dhcpcd/dist/src/sa.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/script.c up to 1.1.1.4 external/bsd/dhcpcd/dist/src/script.h up to 1.1.1.2 external/bsd/dhcpcd/dist/src/dev/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/src/dev/udev.c up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/.gitignore up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/GNUmakefile up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/Makefile up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/README.md up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/crypt/run-test.c up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test.h up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/crypt/test_hmac_md5.c up to 1.1.1.3 external/bsd/dhcpcd/dist/tests/Makefile up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/.gitignore up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/Makefile up to 1.1.1.2 external/bsd/dhcpcd/dist/tests/eloop-bench/README.md up to 1.1.1.1 external/bsd/dhcpcd/dist/tests/eloop-bench/eloop-bench.c up to 1.1.1.3 external/bsd/dhcpcd/dist/.arcconfig up to 1.1.1.1 external/bsd/dhcpcd/dist/.gitignore up to 1.4 external/bsd/dhcpcd/dist/BUILDING.md up to 1.1.1.2 external/bsd/dhcpcd/dist/LICENSE up to 1.1.1.2 external/bsd/dhcpcd/dist/Makefile up to 1.1.1.5 external/bsd/dhcpcd/dist/Makefile.inc up to 1.1.1.2 external/bsd/dhcpcd/dist/README.md up to 1.1.1.3 external/bsd/dhcpcd/dist/bpf-filter.h delete external/bsd/dhcpcd/dist/common.c delete external/bsd/dhcpcd/dist/arp.c delete external/bsd/dhcpcd/dist/arp.h delete external/bsd/dhcpcd/dist/auth.c delete external/bsd/dhcpcd/dist/auth.h delete external/bsd/dhcpcd/dist/dhcpcd.c delete external/bsd/dhcpcd/dist/control.c delete external/bsd/dhcpcd/dist/common.h delete external/bsd/dhcpcd/dist/config.h delete external/bsd/dhcpcd/dist/dhcp-common.c delete external/bsd/dhcpcd/dist/control.h delete external/bsd/dhcpcd/dist/defs.h delete external/bsd/dhcpcd/dist/dev.h delete external/bsd/dhcpcd/dist/dhcpcd-definitions.conf delete external/bsd/dhcpcd/dist/dhcp-common.h delete external/bsd/dhcpcd/dist/dhcp.c delete external/bsd/dhcpcd/dist/dhcp.h delete external/bsd/dhcpcd/dist/dhcp6.c delete external/bsd/dhcpcd/dist/dhcp6.h delete external/bsd/dhcpcd/dist/dhcpcd-run-hooks.8.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.c delete external/bsd/dhcpcd/dist/dhcpcd.8.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.c.in delete external/bsd/dhcpcd/dist/dhcpcd-embedded.h delete external/bsd/dhcpcd/dist/dhcpcd-embedded.h.in delete external/bsd/dhcpcd/dist/ipv4.c delete external/bsd/dhcpcd/dist/if.c delete external/bsd/dhcpcd/dist/dhcpcd-run-hooks.in delete external/bsd/dhcpcd/dist/dhcpcd.h delete external/bsd/dhcpcd/dist/dhcpcd.conf delete external/bsd/dhcpcd/dist/dhcpcd.conf.5.in delete external/bsd/dhcpcd/dist/duid.c delete external/bsd/dhcpcd/dist/duid.h delete external/bsd/dhcpcd/dist/eloop.c delete external/bsd/dhcpcd/dist/eloop.h delete external/bsd/dhcpcd/dist/if-bsd.c delete external/bsd/dhcpcd/dist/if-options.c delete external/bsd/dhcpcd/dist/if-options.h delete external/bsd/dhcpcd/dist/if.h delete external/bsd/dhcpcd/dist/crypt/hmac_md5.c delete external/bsd/dhcpcd/dist/crypt/crypt.h delete external/bsd/dhcpcd/dist/ipv4.h delete external/bsd/dhcpcd/dist/ipv4ll.c delete external/bsd/dhcpcd/dist/ipv6.c delete external/bsd/dhcpcd/dist/ipv4ll.h delete external/bsd/dhcpcd/dist/ipv6.h delete external/bsd/dhcpcd/dist/ipv6nd.c delete external/bsd/dhcpcd/dist/ipv6nd.h delete external/bsd/dhcpcd/dist/script.c delete external/bsd/dhcpcd/dist/script.h delete external/bsd/dhcpcd/dist/dhcpcd-hooks/15-timezone delete external/bsd/dhcpcd/dist/dhcpcd-hooks/01-test delete external/bsd/dhcpcd/dist/dhcpcd-hooks/02-dump delete external/bsd/dhcpcd/dist/dhcpcd-hooks/10-mtu delete external/bsd/dhcpcd/dist/dhcpcd-hooks/10-wpa_supplicant delete external/bsd/dhcpcd/dist/dhcpcd-hooks/20-resolv.conf delete external/bsd/dhcpcd/dist/dhcpcd-hooks/29-lookup-hostname delete external/bsd/dhcpcd/dist/dhcpcd-hooks/30-hostname delete external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ntp.conf delete external/bsd/dhcpcd/dist/dhcpcd-hooks/50-ypbind delete usr.sbin/postinstall/postinstall: revision 1.211-1.213 etc/rc.d/dhcpcd upto 1.5 doc/3RDPARTY manual edit Import dhcpcd-7.0.7. Adjust postinstal and rc file. @ text @a0 929 .\" Copyright (c) 2006-2018 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd June 5, 2018 .Dt DHCPCD.CONF 5 .Os .Sh NAME .Nm dhcpcd.conf .Nd dhcpcd configuration file .Sh DESCRIPTION Although .Nm dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in .Xr dhcpcd 8 can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \\ character. Comments can be prefixed with the # character. String values should be quoted with the " character. .Pp Here's a list of available options: .Bl -tag -width indent .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 # My specific 192.168.0.1 network .D1 profile dd:ee:aa:dd:bb:ee .D1 static ip_address=192.168.0.10/24 .Pp .D1 # A generic 192.168.0.1 network .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.98/24 .It Ic authprotocol Ar protocol Op Ar algorithm Op Ar rdm Authenticate DHCP messages. See the Supported Authentication Protocols section. If .Ar protocol is .Ar token then .Ar algorithm is snd_secretid/rcv_secretid so you can send and recieve different tokens. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed protocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic bootp Be a BOOTP client. Basically, this just doesn't send a DHCP Message Type option and will only interact with a BOOTP server. All other DHCP options still work. .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 .Pp If the hostname is set, it will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. .It Ic clientid Ar string Send the .Ar clientid . If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. .It Ic duid Use a DHCP Unique Identifier. If a system UUID is available, that will be used to create a DUID-UUID, otheriwse if persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID generated will be held in .Pa @@DBDIR@@/duid and should not be copied to other hosts. This file also takes precedence over the above rules. .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the VLANID (prefixed with 0xff) for the interface if set, otherwise the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic request Op Ar address Request the .Ar address in the DHCP DISCOVER message. There is no guarantee this is the address the DHCP server will actually give. If no .Ar address is given then the first address currently assigned to the .Ar interface is used. .It Ic inform Op Ar address Ns Op Ar /cidr Ns Op Ar /broadcast_address Behaves like .Ic request as above, but sends a DHCP INFORM instead of DISCOVER/REQUEST. This does not get a lease as such, just notifies the DHCP server of the .Ar address in use. You should also include the optional .Ar cidr network number in case the address is not already configured on the interface. .Nm dhcpcd remains running and pretends it has an infinite lease. .Nm dhcpcd will not de-configure the interface when it exits. If .Nm dhcpcd fails to contact a DHCP server then it returns a failure instead of falling back on IPv4LL. .It Ic inform6 Performs a DHCPv6 Information Request. No address is requested or specified, but all other DHCPv6 options are allowed. This is normally performed automatically when the IPv6 Router Advertises that the client should perform this operation. This option is only needed when .Nm dhcpcd is not processing IPv6RA messages and the need for DHCPv6 Information Request exists. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. .It Ic hostname Ar name Sends the hostname .Ar name to the DHCP server so it can be registered in DNS. If .Ar name is an empty string then the current system hostname is sent. If .Ar name is a FQDN (ie, contains a .) then it will be encoded as such. .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len Op / Ar suffix Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned with the same resultant prefix length as the delegation, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. If no .Ar interface is given then we will assign a prefix to every other interface with a .Ar sla_id equivalent to the interface index assigned by the OS. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . Each assigned address will have a .Ar suffix , defaulting to 1. If the .Ar suffix is 0 then a slaac address is assigned. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . .Ar sla_id is an integer which must be unique inside the .Ar iaid and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation. .Pp In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. A second prefix is requested and assigned to two other interfaces. .Xr rtadvd 8 can be used with an empty configuration file on eth1, eth2 and eth3, to provide automatic IPv6 address configuration for the internal network. .Bd -literal noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # request a PD and assign it to eth1 ia_pd 3 eth2/1 eth3/2 # req a PD and assign it to eth2 and eth3 .Ed .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. .It Ic fqdn Op disable | none | ptr | both none will not ask the DHCP server to update DNS. ptr just asks the DHCP server to update the PTR record of the host in DNS whereas both also updates the A record. disable will disable the FQDN option. The default is both. .Nm dhcpcd itself never does any DNS updates. .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . .It Ic interface Ar interface Subsequent options are only parsed for this .Ar interface . .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option and a valid prefix or no DHCPv6 instruction. Set this option so to make .Nm dhcpcd always fork on an RA. .It Ic ipv6rs Enables IPv6 Router Advertisement solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. .It Ic leasetime Ar seconds Request a leasetime of .Ar seconds . .It Ic logfile Ar logfile Writes to the specified .Ar logfile rather than .Xr syslog 3 . The .Ar logfile is reopened when .Nm dhcpcd receives the .Dv SIGUSR2 signal. .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metric of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. .It Ic mudurl Ar url Specifies the URL for a manufacturer usage description (MUD). The description is used by upstream network devices to instantiate any desired access lists. See draft-ietf-opsawg-mud for more information. .It Ic noalias Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. .It Ic noarp Don't send any ARP requests. This also disables IPv4LL. .It Ic noauthrequired Don't require authentication even though we requested it. Also allows FORCERENEW and RECONFIGURE messages without authentication. .It Ic nodelay Don't delay for an initial randomised time when starting protocols. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. .It Ic nogateway Don't install any default routes. .It Ic gateway Install a default route if available (default). .It Ic nohook Ar script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .Pa .sh . .Pp So to stop .Nm dhcpcd from touching your DNS settings or starting wpa_supplicant you would do:- .D1 nohook resolv.conf, wpa_supplicant .It Ic noipv4 Don't attempt to configure an IPv4 address. .It Ic noipv4ll Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See .Rs .%T "RFC 3927" .Re .It Ic noipv6 Don't solicit or accept IPv6 Router Advertisements and DHCPv6. .It Ic noipv6rs Don't solicit or accept IPv6 Router Advertisements. .It Ic nolink Don't receive link messages about carrier status. You should only set this for buggy interface drivers. .It Ic noup Don't bring the interface up when in master mode. If .Nm cannot determine the carrier state, .Nm will enter a tight polling loop until the interface is marked up and running or a valid carrier state is reported. .It Ic option Ar option Requests the .Ar option from the server. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. .Ar option Prepend dhcp6_ to .Ar option to request a DHCPv6 option. If no DHCPv6 options are configured, then DHCPv4 options are mapped to equivalent DHCPv6 options. .Pp Prepend nd_ to .Ar option to handle ND options, but this only works for the .Ic nooption , .Ic reject and .Ic require options. .Pp To see a list of options you can use, call .Nm dhcpcd with the .Fl V , Fl Fl variables argument. .It Ic nooption Ar option Remove the option from the message before it's processed. .It Ic require Ar option Requires the .Ar option to be present in all messages, otherwise the message is ignored. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet Suppress any dhcpcd output to the console, except for errors. .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. The default is 5 seconds. A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authoritative which means .Nm dhcpcd will timeout before moving back to the DISCOVER phase. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. .It Ic script Ar script Use .Ar script instead of the default .Pa @@SCRIPT@@ . .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. If you set .Ic ip6_address , .Nm dhcpcd will continue auto-configuation as normal. .Pp Here is an example which configures two static address, overriding the default IPv4 broadcast address, an IPv4 router, DNS and disables IPv6 auto-configuration. You could also use the .Ic inform6 command here if you wished to obtain more information via DHCPv6. For IPv4, you should use the .Ic inform Ar ipaddress option instead of setting a static address. .D1 interface eth0 .D1 noipv6rs .D1 static ip_address=192.168.0.10/24 .D1 static broadcast_address=192.168.0.63 .D1 static ip6_address=fd51:42f8:caae:d92e::ff/64 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers .It Ic timeout Ar seconds Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. .It Ic userclass Ar string Tag the DHCPv4 messages with the userclass. You can specify more than one. .It Ic vendor Ar code , Ns Ar value Add an encapsulated vendor option. .Ar code should be between 1 and 254 inclusive. To add a raw vendor string, omit .Ar code but keep the comma. Examples. .Pp Set the vendor option 01 with an IP address. .D1 vendor 01,192.168.0.2 Set the vendor option 02 with a hex code. .D1 vendor 02,01:02:03:04:05 Set the vendor option 03 with an IP address as a string. .D1 vendor 03,\e"192.168.0.2\e" Set un-encapsulated vendor option to hello world. .D1 vendor ,"hello world" .It Ic vendorclassid Ar string Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 If not set then none is sent. Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 Wait for an address to be assigned before forking to the background. 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. .El .Ss Defining new options DHCP, ND and DHCPv6 allow for the use of custom options. Each option needs to be started with the .Ic define , .If definend or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic definend Ar code Ar type Ar variable Defines the ND option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _nd . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will uniquely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. If the .Ar variable has the name of .Ar reserved then it is not processed. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic optional This option is optional. Only makes sense for embedded options where like the client FQDN option where the FQDN string itself is optional. .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes. .It Ic ip6address An IPv6 address, 16 bytes. .It Ic string Op : Ic length A NVT ASCII string of printable characters. .It Ic byte A byte. .It Ic bitflags : Ic flags A byte represented as a string of flags, most significant bit first. For example, using ABCDEFGH then A would equal 10000000, B 01000000, C 00100000, etc. If the bit is not set, the flag is not printed. A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. .It Ic int16 A signed 16bit integer, 2 bytes. .It Ic uint16 An unsigned 16bit integer, 2 bytes. .It Ic int32 A signed 32bit integer, 4 bytes. .It Ic uint32 An unsigned 32bit integer, 4 bytes. .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes. .It Ic domain A RFC 3397 encoded string. .It Ic dname A RFC 1035 validated string. .It Ic binhex Op : Ic length Binary data expressed as hexadecimal. .It Ic embed Contains embedded options (implies encap as well). .It Ic encap Contains encapsulated options (implies embed as well). .It Ic option References an option from the global definition. .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported Authentication Protocols .Bl -tag -width -indent .It Ic token Sends a plain text token the server expects and matches a token sent by the server. The tokens to not have to be the same. If unspecified, the token with secretid of 0 will be used in sending messages and validating received messages. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenticate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported Authentication Algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , .Xr if_nametoindex 3 , .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 .Sh AUTHORS .An Roy Marples Aq Mt roy@@marples.name .Sh BUGS Please report them to .Lk http://roy.marples.name/projects/dhcpcd @ 1.1.1.3.4.1 log @file dhcpcd.conf.5.in was added on branch pgoyette-localcount on 2017-04-26 02:52:23 +0000 @ text @d1 912 @ 1.1.1.3.4.2 log @Sync with HEAD @ text @a0 912 .\" Copyright (c) 2006-2017 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd April 11, 2017 .Dt DHCPCD.CONF 5 .Os .Sh NAME .Nm dhcpcd.conf .Nd dhcpcd configuration file .Sh DESCRIPTION Although .Nm dhcpcd can do everything from the command line, there are cases where it's just easier to do it once in a configuration file. Most of the options found in .Xr dhcpcd 8 can be used here. The first word on the line is the option and the rest of the line is the value. Leading and trailing whitespace for the option and value are trimmed. You can escape characters in the value using the \\ character. Comments can be prefixed with the # character. String values should be quoted with the " character. .Pp Here's a list of available options: .Bl -tag -width indent .It Ic allowinterfaces Ar pattern When discovering interfaces, the interface name must match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . If the same interface is matched in .Ic denyinterfaces then it is still denied. .It Ic denyinterfaces Ar pattern When discovering interfaces, the interface name must not match .Ar pattern which is a space or comma separated list of patterns passed to .Xr fnmatch 3 . .It Ic arping Ar address Op address .Nm dhcpcd will arping each address in order before attempting DHCP. If an address is found, we will select the replying hardware address as the profile, otherwise the ip address. Example: .Pp .D1 interface bge0 .D1 arping 192.168.0.1 .Pp .D1 # My specific 192.168.0.1 network .D1 profile dd:ee:aa:dd:bb:ee .D1 static ip_address=192.168.0.10/24 .Pp .D1 # A generic 192.168.0.1 network .D1 profile 192.168.0.1 .D1 static ip_address=192.168.0.98/24 .It Ic authprotocol Ar protocol Ar algorithm Ar rdm Authenticate DHCP messages. See the Supported Authentication Protocols section. .It Ic authtoken Ar secretid Ar realm Ar expire Ar key Define a shared key for use in authentication. .Ar realm can be "" to for use with the .Ar delayed protocol. .Ar expire is the date the token expires and should be formatted "yyy-mm-dd HH:MM". You can use the keyword .Ar forever or .Ar 0 which means the token never expires. For the token protocol, .Ar secretid needs to be 0 and .Ar realm needs to be "". If .Nm dhcpcd has the error .D1 dhcp_auth_encode: Invalid argument then it means that .Nm dhcpcd could not find the correct authentication token in your configuration. .It Ic background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status. .It Ic blacklist Ar address Ns Op /cidr Ignores all packets from .Ar address Ns Op /cidr . .It Ic whitelist Ar address Ns Op /cidr Only accept packets from .Ar address Ns Op /cidr . .Ic blacklist is ignored if .Ic whitelist is set. .It Ic bootp Be a BOOTP client. Basically, this just doesn't send a DHCP Message Type option and will only interact with a BOOTP server. All other DHCP options still work. .It Ic broadcast Instructs the DHCP server to broadcast replies back to the client. Normally this is only set for non Ethernet interfaces, such as FireWire and InfiniBand. In most cases, .Nm dhcpcd will set this automatically. .It Ic controlgroup Ar group Sets the group ownership of .Pa @@RUNDIR@@/dhcpcd.sock so that users other than root can connect to .Nm dhcpcd . .It Ic debug Echo debug messages to the stderr and syslog. .It Ic dev Ar value Load the .Ar value .Pa /dev management module. .Nm dhcpcd will load the first one found to work, if any. .It Ic env Ar value Push .Ar value to the environment for use in .Xr dhcpcd-run-hooks 8 . For example, you can force the hostname hook to always set the hostname with .Ic env .Va force_hostname=YES . Or set which driver .Xr wpa_supplicant 8 should use with .Ic env .Va wpa_supplicant_driver=nl80211 .Pp If the hostname is set, it will be will set to the FQDN if possible as per RFC 4702 section 3.1. If the FQDN option is missing, .Nm dhcpcd will still try and set a FQDN from the hostname and domain options for consistency. To override this, set .Ic env .Va hostname_fqdn=[YES|NO|SERVER] . A value of server means just what the server says, don't manipulate it. This could lead to an inconsistent hostname on a DHCPv4 and DHCPv6 network where the DHCPv4 hostname is short and the DHCPv6 has an FQDN. DHCPv6 has no hostname option. .It Ic clientid Ar string Send the .Ar clientid . If the string is of the format 01:02:03 then it is encoded as hex. For interfaces whose hardware address is longer than 8 bytes, or if the .Ar clientid is an empty string then .Nm dhcpcd sends a default .Ar clientid of the hardware family and the hardware address. .It Ic duid Generate an .Rs .%T "RFC 4361" .Re compliant DHCP Unique Identifier. If persistent storage is available then a DUID-LLT (link local address + time) is generated, otherwise DUID-LL is generated (link local address). This, plus the IAID will be used as the .Ic clientid . The DUID-LLT generated will be held in .Pa @@DBDIR@@/duid and should not be copied to other hosts. .It Ic iaid Ar iaid Set the Interface Association Identifier to .Ar iaid . This option must be used in an .Ic interface block. This defaults to the last 4 bytes of the hardware address assigned to the interface. Each instance of this should be unique within the scope of the client and .Nm dhcpcd warns if a conflict is detected. If there is a conflict, it is only a problem if the conflicted IAIDs are used on the same network. .It Ic dhcp Enable DHCP on the interface, on by default. .It Ic dhcp6 Enable DHCPv6 on the interface, on by default. .It Ic ipv4 Enable IPv4 on the interface, on by default. .It Ic ipv6 Enable IPv6 on the interface, on by default. .It Ic request Op Ar address Request the .Ar address in the DHCP DISCOVER message. There is no guarantee this is the address the DHCP server will actually give. If no .Ar address is given then the first address currently assigned to the .Ar interface is used. .It Ic inform Op Ar address Ns Op Ar /cidr Behaves like .Ic request as above, but sends a DHCP INFORM instead of DISCOVER/REQUEST. This does not get a lease as such, just notifies the DHCP server of the .Ar address in use. You should also include the optional .Ar cidr network number in case the address is not already configured on the interface. .Nm dhcpcd remains running and pretends it has an infinite lease. .Nm dhcpcd will not de-configure the interface when it exits. If .Nm dhcpcd fails to contact a DHCP server then it returns a failure instead of falling back on IPv4LL. .It Ic inform6 Performs a DHCPv6 Information Request. No address is requested or specified, but all other DHCPv6 options are allowed. This is normally performed automatically when the IPv6 Router Advertises that the client should perform this operation. This option is only needed when .Nm dhcpcd is not processing IPv6RA messages and the need for DHCPv6 Information Request exists. .It Ic persistent .Nm dhcpcd normally de-configures the interface and configuration when it exits. Sometimes, this isn't desirable if, for example, you have root mounted over NFS or SSH clients connect to this host and they need to be notified of the host shutting down. You can use this option to stop this from happening. .It Ic fallback Ar profile Fallback to using this profile if DHCP fails. This allows you to configure a static profile instead of using ZeroConf. .It Ic hostname Ar name Sends the hostname .Ar name to the DHCP server so it can be registered in DNS. If .Ar name is an empty string then the current system hostname is sent. If .Ar name is a FQDN (ie, contains a .) then it will be encoded as such. .It Ic hostname_short Sends the short hostname to the DHCP server instead of the FQDN. This is useful because DHCP servers will not register the FQDN in their DNS if the domain part does not match theirs. .Pp Also, see the .Ic env option above to control how the hostname is set on the host. .It Ic ia_na Op Ar iaid Op / address Request a DHCPv6 Normal Address for .Ar iaid . .Ar iaid defaults to the .Ic iaid option as described above. You can request more than one ia_na by specifying a unique .Ar iaid for each one. .It Ic ia_ta Op Ar iaid Request a DHCPv6 Temporary Address for .Ar iaid . You can request more than one ia_ta by specifying a unique .Ar iaid for each one. .It Ic ia_pd Op Ar iaid Oo / Ar prefix / Ar prefix_len Oc Op Ar interface Op / Ar sla_id Op / Ar prefix_len Op / Ar suffix Request a DHCPv6 Delegated Prefix for .Ar iaid . This option must be used in an .Ic interface block. Unless a .Ar sla_id of 0 is assigned with the same resultant prefix length as the delegation, a reject route is installed for the Delegated Prefix to stop unallocated addresses being resolved upstream. If no .Ar interface is given then we will assign a prefix to every other interface with a .Ar sla_id equivalent to the interface index assigned by the OS. Otherwise addresses are only assigned for each .Ar interface and .Ar sla_id . Each assigned address will have a .Ar suffix , defaulting to 1. If the .Ar suffix is 0 then a slaac address is assigned. You cannot assign a prefix to the requesting interface unless the DHCPv6 server supports .Li RFC6603 Prefix Exclude Option. .Nm dhcpcd has to be running for all the interfaces it is delegating to. A default .Ar prefix_len of 64 is assumed, unless the maximum .Ar sla_id does not fit. In this case .Ar prefix_len is increased to the highest multiple of 8 that can accommodate the .Ar sla_id . .Ar sla_id is an integer which must be unique inside the .Ar iaid and is added to the prefix which must fit inside .Ar prefix_len less the length of the delegated prefix. You can specify multiple .Ar interface / .Ar sla_id / .Ar prefix_len per .Ic ia_pd , space separated. IPv6RS should be disabled globally when requesting a Prefix Delegation. .Pp In the following example eth0 is the externally facing interface to be configured for both IPv4 and IPv6. The DHCPv4 server will provide us with an IPv4 address and a default route. The DHCPv6 server is going to provide us with an IPv6 address, a default route and a /64 subnet to be delegated to the internal interface. The eth1 interface will be automatically configured for IPv6 using the first address (::1) from the delegated prefix. A second prefix is requested and assigned to two other interfaces. .Xr rtadvd 8 can be used with an empty configuration file on eth1, eth2 and eth3, to provide automatic IPv6 address configuration for the internal network. .Bd -literal noipv6rs # disable routing solicitation denyinterfaces eth2 # Don't touch eth2 at all interface eth0 ipv6rs # enable routing solicitation get the # default IPv6 route ia_na 1 # request an IPv6 address ia_pd 2 eth1/0 # request a PD and assign it to eth1 ia_pd 3 eth2/1 eth3/2 # req a PD and assign it to eth2 and eth3 .Ed .It Ic ipv4only Only configure IPv4. .It Ic ipv6only Only configure IPv6. .It Ic fqdn Op disable | ptr | both ptr just asks the DHCP server to update the PTR record of the host in DNS whereas both also updates the A record. disable will disable the FQDN option. The default is both. .Nm dhcpcd itself never does any DNS updates. .Nm dhcpcd encodes the FQDN hostname as specified in .Li RFC1035 . .It Ic interface Ar interface Subsequent options are only parsed for this .Ar interface . .It Ic ipv6ra_autoconf Generate SLAAC addresses for each Prefix advertised by a Router Advertisement message with the Auto flag set. On by default. .It Ic ipv6ra_noautoconf Disables the above option. .It Ic ipv6ra_fork By default, when .Nm dhcpcd receives an IPv6 RA, .Nm dhcpcd will only fork to the background if the RA contains at least one unexpired RDNSS option and a valid prefix or no DHCPv6 instruction. Set this option so to make .Nm dhcpcd always fork on an RA. .It Ic ipv6rs Enables IPv6 Router Advertisement solicitation. This is on by default, but is documented here in the case where it is disabled globally but needs to be enabled for one interface. .It Ic leasetime Ar seconds Request a leasetime of .Ar seconds . .It Ic logfile Ar logfile Writes to the specified .Ar logfile rather than .Xr syslog 3 . The .Ar logfile is reopened when .Nm dhcpcd receives the .Dv SIGUSR2 signal. .It Ic metric Ar metric Metrics are used to prefer an interface over another one, lowest wins. .Nm dhcpcd will supply a default metric of 200 + .Xr if_nametoindex 3 . An extra 100 will be added for wireless interfaces. .It Ic mudurl Ar url Specifies the URL for a manufacturer usage description (MUD). The description is used by upstream network devices to instantiate any desired access lists. See draft-ietf-opsawg-mud for more information. .It Ic noalias Any pre-existing IPv4 addresses existing address will be removed from the interface when adding a new IPv4 address. .It Ic noarp Don't send any ARP requests. This also disables IPv4LL. .It Ic noauthrequired Don't require authentication even though we requested it. Also allows FORCERENEW and RECONFIGURE messages without authentication. .It Ic nodelay Don't delay for an initial randomised time when starting protocols. .It Ic nodev Don't load .Pa /dev management modules. .It Ic nodhcp Don't start DHCP or listen to DHCP messages. This is only useful when allowing IPv4LL. .It Ic nodhcp6 Don't start DHCPv6 or listen to DHCPv6 messages. Normally DHCPv6 is started by a RA instruction or configuration. .It Ic nohook Ar script Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .Pa .sh . .Pp So to stop .Nm dhcpcd from touching your DNS settings or starting wpa_supplicant you would do:- .D1 nohook resolv.conf, wpa_supplicant .It Ic noipv4 Don't attempt to configure an IPv4 address. .It Ic noipv4ll Don't attempt to obtain an IPv4LL address if we failed to get one via DHCP. See .Rs .%T "RFC 3927" .Re .It Ic noipv6 Don't attempt to configure an IPv6 address. .It Ic noipv6rs Disable solicitation and receipt of IPv6 Router Advertisements. .It Ic nolink Don't receive link messages about carrier status. You should only set this for buggy interface drivers. .It Ic noup Don't bring the interface up when in master mode. If .Nm cannot determine the carrier state, .Nm will enter a tight polling loop until the interface is marked up and running or a valid carrier state is reported. .It Ic option Ar option Requests the .Ar option from the server. It can be a variable to be used in .Xr dhcpcd-run-hooks 8 or the numerical value. You can specify more .Ar option Ns s separated by commas, spaces or more .Ic option lines. .Ar option Prepend dhcp6_ to .Ar option to request a DHCPv6 option. If no DHCPv6 options are configured, then DHCPv4 options are mapped to equivalent DHCPv6 options. .Pp Prepend nd_ to .Ar option to handle ND options, but this only works for the .Ic nooption , .Ic reject and .Ic require options. .Pp To see a list of options you can use, call .Nm dhcpcd with the .Fl V , Fl Fl variables argument. .It Ic nooption Ar option Remove the option from the message before it's processed. .It Ic require Ar option Requires the .Ar option to be present in all messages, otherwise the message is ignored. To enforce that .Nm dhcpcd only responds to DHCP servers and not BOOTP servers, you can .Ic require .Ar dhcp_message_type . This isn't an exact science though because a BOOTP server can send DHCP like options. .It Ic reject Ar option Reject a message that contains the .Ar option . This is useful when you cannot use .Ic require to select / de-select BOOTP messages. .It Ic destination Ar option If .Nm detects an address added to a point to point interface (PPP, TUN, etc) then it will set the listed DHCP options to the destination address of the interface. .It Ic profile Ar name Subsequent options are only parsed for this profile .Ar name . .It Ic quiet Suppress any dhcpcd output to the console, except for errors. .It Ic reboot Ar seconds Allow .Ar reboot seconds before moving to the DISCOVER phase if we have an old lease to use and moving from DISCOVER to IPv4LL if no reply. The default is 5 seconds. A setting of 0 seconds causes .Nm dhcpcd to skip the REBOOT phase and go straight into DISCOVER. This is desirable for mobile users because if you change from network A to network B and they use the same subnet and the address from network A isn't in use on network B, then the DHCP server will remain silent even if authoritative which means .Nm dhcpcd will timeout before moving back to the DISCOVER phase. .It Ic release .Nm dhcpcd will release the lease prior to stopping the interface. .It Ic script Ar script Use .Ar script instead of the default .Pa @@SCRIPT@@ . .It Ic ssid Ar ssid Subsequent options are only parsed for this wireless .Ar ssid . .It Ic slaac Op Ar hwaddr | Ar private Selects the interface identifier used for SLAAC generated IPv6 addresses. If .Ar private is used, a RFC7217 address is generated. .It Ic static Ar value Configures a static .Ar value . If you set .Ic ip_address then .Nm dhcpcd will not attempt to obtain a lease and just use the value for the address with an infinite lease time. If you set .Ic ip6_address , .Nm dhcpcd will continue auto-configuation as normal. .Pp Here is an example which configures two static address, an IPv4 router, DNS and disables IPv6 auto-configuration. You could also use the .Ic inform6 command here if you wished to obtain more information via DHCPv6. For IPv4, you should use the .Ic inform Ar ipaddress option instead of setting a static address. .D1 interface eth0 .D1 noipv6rs .D1 static ip_address=192.168.0.10/24 .D1 static ip6_address=fd51:42f8:caae:d92e::ff/64 .D1 static routers=192.168.0.1 .D1 static domain_name_servers=192.168.0.1 fd51:42f8:caae:d92e::1 .Pp Here is an example for PPP which gives the destination a default route. It uses the special destination keyword to insert the destination address into the value. .D1 interface ppp0 .D1 static ip_address= .D1 destination routers .It Ic timeout Ar seconds Timeout after .Ar seconds , instead of the default 30. A setting of 0 .Ar seconds causes .Nm dhcpcd to wait forever to get a lease. If .Nm dhcpcd is working on a single interface then .Nm dhcpcd will exit when a timeout occurs, otherwise .Nm dhcpcd will fork into the background. If using IPv4LL then .Nm dhcpcd start the IPv4LL process after the timeout and then wait a little longer before really timing out. .It Ic userclass Ar string Tag the DHCPv4 messages with the userclass. You can specify more than one. .It Ic vendor Ar code , Ns Ar value Add an encapsulated vendor option. .Ar code should be between 1 and 254 inclusive. To add a raw vendor string, omit .Ar code but keep the comma. Examples. .Pp Set the vendor option 01 with an IP address. .D1 vendor 01,192.168.0.2 Set the vendor option 02 with a hex code. .D1 vendor 02,01:02:03:04:05 Set the vendor option 03 with an IP address as a string. .D1 vendor 03,\e"192.168.0.2\e" Set un-encapsulated vendor option to hello world. .D1 vendor ,"hello world" .It Ic vendorclassid Ar string Set the DHCP Vendor Class. DHCPv6 has it's own option as shown below. The default is dhcpcd-:::. For example .D1 dhcpcd-5.5.6:NetBSD-6.99.5:i386:i386 If not set then none is sent. Some badly configured DHCP servers reject unknown vendorclassids. To work around it, try and impersonate Windows by using the MSFT vendorclassid. .It Ic vendclass Ar en Ar data Add the DHCPv6 Vendor Indetifying Vendor Class with the IANA assigned Enterprise Number .Ar en with the .Ar data . This option can be set more than once to add more data, but the behaviour, as per .Xr RFC 3925 is undefined if the Enterprise Number differs. .It Ic waitip Op 4 | 6 Wait for an address to be assigned before forking to the background. 4 means wait for an IPv4 address to be assigned. 6 means wait for an IPv6 address to be assigned. If no argument is given, .Nm will wait for any address protocol to be assigned. It is possible to wait for more than one address protocol and .Nm will only fork to the background when all waiting conditions are satisfied. .It Ic xidhwaddr Use the last four bytes of the hardware address as the DHCP xid instead of a randomly generated number. .El .Ss Defining new options DHCP, ND and DHCPv6 allow for the use of custom options. Each option needs to be started with the .Ic define , .If definend or .Ic define6 directive. This can optionally be followed by both .Ic embed or .Ic encap options. Both can be specified more than once and .Ic embed must come before .Ic encap . .Bl -tag -width indent .It Ic define Ar code Ar type Ar variable Defines the DHCP option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 . .It Ic definend Ar code Ar type Ar variable Defines the ND option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _nd . .It Ic define6 Ar code Ar type Ar variable Defines the DHCPv6 option .Ar code of .Ar type with a name of .Ar variable exported to .Xr dhcpcd-run-hooks 8 , with a prefix of .Va _dhcp6 . .It Ic vendopt Ar code Ar type Ar variable Defines the Vendor-Identifying Vendor Options. The .Ar code is the IANA Enterprise Number which will uniquely describe the encapsulated options. .Ar type is normally .Ar encap . .Ar variable names the Vendor option to be exported. .It Ic embed Ar type Ar variable Defines an embedded variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. If the .Ar variable has the name of .Ar reserved then it is not processed. .It Ic encap Ar code Ar type Ar variable Defines an encapsulated variable within the defined option. The length is determined by the .Ar type . If the .Ar variable is not the same as defined in the parent option, it is prefixed with the parent .Ar variable first with an underscore. .El .Ss Type prefix These keywords come before the type itself, to describe it more fully. You can use more than one, but they must appear in the order listed below. .Bl -tag -width -indent .It Ic request Requests the option by default without having to be specified in user configuration .It Ic norequest This option cannot be requested, regardless of user configuration .It Ic optional This option is optional. Only makes sense for embedded options where like the client FQDN option where the FQDN string itself is optional. .It Ic index The option can appear more than once and will be indexed. .It Ic array The option data is split into a space separated array, each element being the same type. .El .Ss Types to define The type directly affects the length of data consumed inside the option. Any remaining data is normally discarded. Lengths can be specified for string and binhex types, but this is generally with other data embedded afterwards in the same option. .Bl -tag -width indent .It Ic ipaddress An IPv4 address, 4 bytes. .It Ic ip6address An IPv6 address, 16 bytes. .It Ic string Op : Ic length A NVT ASCII string of printable characters. .It Ic byte A byte. .It Ic bitflags : Ic flags A byte represented as a string of flags, most significant bit first. For example, using ABCDEFGH then A would equal 10000000, B 01000000, C 00100000, etc. If the bit is not set, the flag is not printed. A flag of 0 is not printed even if the bit position is set. This is to allow reservation of the first bits while assigning the last bits. .It Ic int16 A signed 16bit integer, 2 bytes. .It Ic uint16 An unsigned 16bit integer, 2 bytes. .It Ic int32 A signed 32bit integer, 4 bytes. .It Ic uint32 An unsigned 32bit integer, 4 bytes. .It Ic flag A fixed value (1) to indicate that the option is present, 0 bytes. .It Ic domain A RFC 3397 encoded string. .It Ic dname A RFC 1035 validated string. .It Ic binhex Op : Ic length Binary data expressed as hexadecimal. .It Ic embed Contains embedded options (implies encap as well). .It Ic encap Contains encapsulated options (implies embed as well). .It Ic option References an option from the global definition. .El .Ss Example definition .D1 # DHCP option 81, Fully Qualified Domain Name, RFC4702 .D1 define 81 embed fqdn .D1 embed byte flags .D1 embed byte rcode1 .D1 embed byte rcode2 .D1 embed domain fqdn .Pp .D1 # DHCP option 125, Vendor Specific Information Option, RFC3925 .D1 define 125 encap vsio .D1 embed uint32 enterprise_number .D1 # Options defined for the enterprise number .D1 encap 1 ipaddress ipaddress .Ss Supported Authentication Protocols .Bl -tag -width -indent .It Ic token Sends and expects the token with the secretid 0 and realm of "" in each message. .It Ic delayedrealm Delayed Authentication. .Nm dhcpcd will send an authentication option with no key or MAC. The server will see this option, and select a key for .Nm , writing the .Ar realm and .Ar secretid in it. .Nm dhcpcd will then look for a non-expired token with a matching realm and secretid. This token is used to authenticate all other messages. .It Ic delayed Same as above, but without a realm. .El .Ss Supported Authentication Algorithms If none specified, .Ic hmac-md5 is the default. .Bl -tag -width -indent .It Ic hmac-md5 .El .Ss Supported Replay Detection Mechanisms If none specified, .Ic monotonic is the default. If this is changed from what was previously used, or the means of calculating or storing it is broken then the DHCP server will probably have to have its notion of the clients Replay Detection Value reset. .Bl -tag -width -indent .It Ic monocounter Read the number in the file .Pa @@DBDIR@@/dhcpcd-rdm.monotonic and add one to it. .It Ic monotime Create a NTP timestamp from the system time. .It Ic monotonic Same as .Ic monotime . .El .Sh SEE ALSO .Xr fnmatch 3 , .Xr if_nametoindex 3 , .Xr dhcpcd 8 , .Xr dhcpcd-run-hooks 8 .Sh AUTHORS .An Roy Marples Aq Mt roy@@marples.name .Sh BUGS Please report them to .Lk http://roy.marples.name/projects/dhcpcd @