xref: /dflybsd-src/contrib/dhcpcd/src/dhcpcd.conf (revision d4fb1e029ea1c9b97b58401b3c425a611b026984)
17827cba2SAaron LI# A sample configuration for dhcpcd.
27827cba2SAaron LI# See dhcpcd.conf(5) for details.
37827cba2SAaron LI
47827cba2SAaron LI# Allow users of this group to interact with dhcpcd via the control socket.
57827cba2SAaron LI#controlgroup wheel
67827cba2SAaron LI
77827cba2SAaron LI# Inform the DHCP server of our hostname for DDNS.
8*d4fb1e02SRoy Marples#hostname
97827cba2SAaron LI
107827cba2SAaron LI# Use the hardware address of the interface for the Client ID.
117827cba2SAaron LI#clientid
127827cba2SAaron LI# or
137827cba2SAaron LI# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
147827cba2SAaron LI# Some non-RFC compliant DHCP servers do not reply with this set.
157827cba2SAaron LI# In this case, comment out duid and enable clientid above.
167827cba2SAaron LIduid
177827cba2SAaron LI
187827cba2SAaron LI# Persist interface configuration when dhcpcd exits.
197827cba2SAaron LIpersistent
207827cba2SAaron LI
21*d4fb1e02SRoy Marples# vendorclassid is set to blank to avoid sending the default of
22*d4fb1e02SRoy Marples# dhcpcd-<version>:<os>:<machine>:<platform>
23*d4fb1e02SRoy Marplesvendorclassid
247827cba2SAaron LI
257827cba2SAaron LI# A list of options to request from the DHCP server.
26*d4fb1e02SRoy Marplesoption domain_name_servers, domain_name, domain_search
277827cba2SAaron LIoption classless_static_routes
287827cba2SAaron LI# Respect the network MTU. This is applied to DHCP routes.
297827cba2SAaron LIoption interface_mtu
307827cba2SAaron LI
31*d4fb1e02SRoy Marples# Request a hostname from the network
32*d4fb1e02SRoy Marplesoption host_name
33*d4fb1e02SRoy Marples
347827cba2SAaron LI# Most distributions have NTP support.
357827cba2SAaron LI#option ntp_servers
367827cba2SAaron LI
37*d4fb1e02SRoy Marples# Rapid commit support.
38*d4fb1e02SRoy Marples# Safe to enable by default because it requires the equivalent option set
39*d4fb1e02SRoy Marples# on the server to actually work.
40*d4fb1e02SRoy Marplesoption rapid_commit
41*d4fb1e02SRoy Marples
427827cba2SAaron LI# A ServerID is required by RFC2131.
437827cba2SAaron LIrequire dhcp_server_identifier
447827cba2SAaron LI
457827cba2SAaron LI# Generate SLAAC address using the Hardware Address of the interface
467827cba2SAaron LI#slaac hwaddr
477827cba2SAaron LI# OR generate Stable Private IPv6 Addresses based from the DUID
487827cba2SAaron LIslaac private
49