dhcpcd
DHCP and DHCPv6 client daemon
TLDR
Release all address leases
SYNOPSIS
dhcpcd [options] [interface]
DESCRIPTION
dhcpcd is a DHCP and DHCPv6 client daemon that automatically configures network interfaces. It obtains IP addresses, default routes, and DNS servers from DHCP servers on the network, and can also process IPv6 Router Advertisements for stateless autoconfiguration.
The daemon runs in the background managing network configuration as interfaces come up and down. It handles lease renewal, rebinding, and release operations automatically. Configuration hooks allow running custom scripts when network state changes.
dhcpcd is commonly used as the default network configuration tool on many Linux distributions, particularly those without NetworkManager. It's lightweight, follows RFC standards closely, and integrates well with embedded and server environments.
PARAMETERS
-k, --release
Release current leases and exit-n, --rebind
Request new leases (rebind)-x, --exit
Exit daemon-d, --debug
Debug mode (don't fork)-B, --nobackground
Don't run in background-T, --test
Test mode, don't configure
CONFIGURATION
/etc/dhcpcd.conf
Main configuration file controlling interface behavior, static addresses, hooks, and client options.
CAVEATS
May conflict with NetworkManager or systemd-networkd. Configuration file is /etc/dhcpcd.conf. Requires root privileges.
