blob: 43a54b7892645804b7c15cb15e2e88bb4eb8ffe4 [file] [log] [blame]
Austin Schuhab8c0c52020-02-22 13:42:37 -08001# A sample configuration for dhcpcd.
2# See dhcpcd.conf(5) for details.
3
4# Allow users of this group to interact with dhcpcd via the control socket.
5#controlgroup wheel
6
7# Inform the DHCP server of our hostname for DDNS.
8hostname
9
10# Use the hardware address of the interface for the Client ID.
11clientid
12# or
13# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
14# Some non-RFC compliant DHCP servers do not reply with this set.
15# In this case, comment out duid and enable clientid above.
16#duid
17
18# Persist interface configuration when dhcpcd exits.
19persistent
20
21# Rapid commit support.
22# Safe to enable by default because it requires the equivalent option set
23# on the server to actually work.
24option rapid_commit
25
26# A list of options to request from the DHCP server.
27option domain_name_servers, domain_name, domain_search, host_name
28option classless_static_routes
29# Respect the network MTU. This is applied to DHCP routes.
30option interface_mtu
31
32# Most distributions have NTP support.
33#option ntp_servers
34
35# A ServerID is required by RFC2131.
36require dhcp_server_identifier
37
38# Generate SLAAC address using the Hardware Address of the interface
39#slaac hwaddr
40# OR generate Stable Private IPv6 Addresses based from the DUID
41slaac private
42
43# Example static IP configuration:
44interface eth0
45static ip_address=10.89.71.102/24
46#static ip6_address=fd51:42f8:caae:d92e::ff/64
47#static routers=192.168.0.1
48#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
49
50# It is possible to fall back to a static IP if DHCP fails:
51# define static profile
52#profile static_eth0
53#static ip_address=192.168.1.23/24
54#static routers=192.168.1.1
55#static domain_name_servers=192.168.1.1
56
57# fallback to static profile on eth0
58#interface eth0
59#fallback static_eth0