$linuxjunkies
>

kea-dhcp4(8)

ISC Kea DHCPv4 server for assigning IPv4 addresses and network configuration to clients.

UbuntuDebianFedoraArch

Synopsis

kea-dhcp4 [-v] [-V] [-W] [-d] [-c FILE] [-p PORT]

Description

kea-dhcp4 is the ISC Kea Dynamic Host Configuration Protocol (DHCP) server for IPv4 networks. It assigns IP addresses and provides network configuration parameters (DNS servers, gateways, etc.) to DHCP clients on the network.

Kea is a modern, modular DHCP server designed to be more flexible and maintainable than ISC DHCP. It reads configuration from a JSON file and supports advanced features like hooks, host reservations, and high availability.

The server runs as a daemon and listens on UDP port 67 by default. It can be controlled via the control socket or REST API if enabled in the configuration.

Common options

FlagWhat it does
-vPrint version number and exit
-VPrint extended version information and exit
-WDisplay copyright and license information
-dRun in debug mode (do not daemonize, verbose logging to stdout)
-c FILEUse FILE as the configuration file (JSON format)
-p PORTOverride the port number for DHCPv4 server communication
-tTest the configuration file and exit without starting the server
-u USERNAMERun the server as the specified user (if running as root)

Examples

Start the Kea DHCPv4 server using the default configuration file

kea-dhcp4 -c /etc/kea/kea-dhcp4.conf

Run in debug mode without daemonizing; useful for testing and troubleshooting

kea-dhcp4 -d -c /etc/kea/kea-dhcp4.conf

Validate the JSON configuration file syntax without starting the server

kea-dhcp4 -t -c /etc/kea/kea-dhcp4.conf

Start the Kea DHCPv4 server using systemd

systemctl start kea-dhcp4

Display the version number and exit

kea-dhcp4 -v

Query the running DHCPv4 server for its current configuration

kea-shell --service dhcp4 -- dhcp4-get-config

Related commands