blob: 833c5b6deca545e9cb02395c1d2cbe8d1a9e9126 [file] [log] [blame]
Samuel Tand7ed8512015-08-13 16:11:35 -07001# A sample configuration for dhcpcd.
2# See dhcpcd.conf(5) for details.
3
Samuel Tane942e092015-08-13 17:14:37 -07004# Disabling ARP checking
5noarp
6
7# Disabling link state monitoring
8nolink
9
Samuel Tand7ed8512015-08-13 16:11:35 -070010# Allow users of this group to interact with dhcpcd via the control socket.
11#controlgroup wheel
12
13# Inform the DHCP server of our hostname for DDNS.
14hostname
15
16# Use the hardware address of the interface for the Client ID.
Samuel Tane942e092015-08-13 17:14:37 -070017clientid
Samuel Tand7ed8512015-08-13 16:11:35 -070018# or
19# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
20# Some non-RFC compliant DHCP servers do not reply with this set.
21# In this case, comment out duid and enable clientid above.
Samuel Tane942e092015-08-13 17:14:37 -070022#duid
Samuel Tand7ed8512015-08-13 16:11:35 -070023
24# Persist interface configuration when dhcpcd exits.
Samuel Tane942e092015-08-13 17:14:37 -070025#persistent
Samuel Tand7ed8512015-08-13 16:11:35 -070026
27# Rapid commit support.
28# Safe to enable by default because it requires the equivalent option set
29# on the server to actually work.
Samuel Tane942e092015-08-13 17:14:37 -070030#option rapid_commit
Samuel Tand7ed8512015-08-13 16:11:35 -070031
32# A list of options to request from the DHCP server.
Samuel Tane942e092015-08-13 17:14:37 -070033option domain_name_servers, domain_name, domain_search, host_name, wpad_url
Samuel Tand7ed8512015-08-13 16:11:35 -070034option classless_static_routes
35# Most distributions have NTP support.
Samuel Tane942e092015-08-13 17:14:37 -070036#option ntp_servers
Samuel Tand7ed8512015-08-13 16:11:35 -070037# Respect the network MTU.
38# Some interface drivers reset when changing the MTU so disabled by default.
Samuel Tane942e092015-08-13 17:14:37 -070039option interface_mtu
Samuel Tand7ed8512015-08-13 16:11:35 -070040
41# A ServerID is required by RFC2131.
42require dhcp_server_identifier
43
44# Generate Stable Private IPv6 Addresses instead of hardware based ones
Samuel Tane942e092015-08-13 17:14:37 -070045#slaac private
Samuel Tand7ed8512015-08-13 16:11:35 -070046
47# A hook script is provided to lookup the hostname if not set by the DHCP
48# server, but it should not be run by default.
Samuel Tane942e092015-08-13 17:14:37 -070049#nohook lookup-hostname
Samuel Tan8e603a02015-08-13 17:19:52 -070050
51# Disable IPv6 router solicitation
52noipv6rs