Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 1 | # A sample configuration for dhcpcd. |
| 2 | # See dhcpcd.conf(5) for details. |
| 3 | |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 4 | # Disabling ARP checking |
| 5 | noarp |
| 6 | |
| 7 | # Disabling link state monitoring |
| 8 | nolink |
| 9 | |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 10 | # 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. |
| 14 | hostname |
| 15 | |
| 16 | # Use the hardware address of the interface for the Client ID. |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 17 | clientid |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 18 | # 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 Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 22 | #duid |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 23 | |
| 24 | # Persist interface configuration when dhcpcd exits. |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 25 | #persistent |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 26 | |
| 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 Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 30 | #option rapid_commit |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 31 | |
| 32 | # A list of options to request from the DHCP server. |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 33 | option domain_name_servers, domain_name, domain_search, host_name, wpad_url |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 34 | option classless_static_routes |
| 35 | # Most distributions have NTP support. |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 36 | #option ntp_servers |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 37 | # Respect the network MTU. |
| 38 | # Some interface drivers reset when changing the MTU so disabled by default. |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 39 | option interface_mtu |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 40 | |
| 41 | # A ServerID is required by RFC2131. |
| 42 | require dhcp_server_identifier |
| 43 | |
| 44 | # Generate Stable Private IPv6 Addresses instead of hardware based ones |
Samuel Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 45 | #slaac private |
Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 46 | |
| 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 Tan | e942e09 | 2015-08-13 17:14:37 -0700 | [diff] [blame] | 49 | #nohook lookup-hostname |
Samuel Tan | 8e603a0 | 2015-08-13 17:19:52 -0700 | [diff] [blame] | 50 | |
| 51 | # Disable IPv6 router solicitation |
| 52 | noipv6rs |