Go to file
spoljak-ent 371c7c69bc
DHCPv6: Add support for sending Option 17 (VSIO) (#383)
* DHCP: Add support for sending DHCP option 125 and DHCPv6 Option 17 (VSIO)

Note wireshark doesn't decode option 125 correctly when the it needs to be split into more options if it exceeds 255 bytes.
---------

Signed-off-by: Stipe Poljak (EXT) <stipe.poljak.ext@ericsson.com>
Co-authored-by: Roy Marples <roy@marples.name>
2024-11-07 13:15:49 +00:00
.github/workflows ci: execute tests after successful build (#243) 2023-09-04 14:53:10 +01:00
compat Add compat support for closefrom cribbed from libbsd 2024-05-04 12:38:49 +01:00
hooks Apply lastlease behavior to DHCPv6 (#384) 2024-10-14 13:58:24 +01:00
src DHCPv6: Add support for sending Option 17 (VSIO) (#383) 2024-11-07 13:15:49 +00:00
tests Well, changes were made in 2024! 2024-08-21 11:51:24 +01:00
.gitignore Ignore VSCode .vscode and macOS .DS_Store files 2023-09-08 23:02:35 -07:00
BUILDING.md doc: mention using --with-openssl 2023-10-04 13:47:57 +01:00
config-null.mk
configure configure: add --enable-ntp 2024-06-15 14:02:30 +01:00
iconfig.mk
LICENSE Well, changes were made in 2024! 2024-08-21 11:51:24 +01:00
Makefile chore: stat isn't portable, wc is 2023-04-21 14:58:50 +01:00
Makefile.inc chore: update build system to publish signed github releases 2023-04-20 12:02:48 +01:00
README.md Fix some grammar in README.md 2023-09-11 22:16:26 -07:00

dhcpcd

dhcpcd is a DHCP and a DHCPv6 client. It's also an IPv4LL (aka ZeroConf) client. In layperson's terms, dhcpcd runs on your machine and silently configures your computer to work on the attached networks without trouble and mostly without configuration.

If you're a desktop user then you may also be interested in Network Configurator (dhcpcd-ui) which sits in the notification area and monitors the state of the network via dhcpcd. It also has a nice configuration dialog and the ability to enter a pass phrase for wireless networks.

dhcpcd may not be the only daemon running that wants to configure DNS on the host, so it uses openresolv to ensure they can co-exist.

See BUILDING.md for how to build dhcpcd.

Configuration

You should read the dhcpcd.conf man page and put your options into /etc/dhcpcd.conf. The default configuration file should work for most people just fine. Here it is, in case you lose it.

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

# Most distributions have NTP support.
#option ntp_servers

# A ServerID is required by RFC2131.
require dhcp_server_identifier

# Generate SLAAC address using the Hardware Address of the interface
#slaac hwaddr
# OR generate Stable Private IPv6 Addresses based from the DUID
slaac private

The dhcpcd man page has a lot of the same options and more, which only apply to calling dhcpcd from the command line.

Compatibility

dhcpcd-5 is only fully command line compatible with dhcpcd-4. For compatibility with older versions, use dhcpcd-4.

Upgrading

dhcpcd-7 defaults the database directory to /var/db/dhcpcd instead of /var/db and now stores dhcpcd.duid and dhcpcd.secret in there instead of in /etc.

dhcpcd-9 defaults the run directory to /var/run/dhcpcd instead of /var/run and the prefix of dhcpcd has been removed from the files therein.

ChangeLog

We no longer supply a ChangeLog. However, you're more than welcome to read the commit log and release announcements.