{{#DHCP_SCOPE_SUMMARY}}

DHCP server

{{DHCP_SCOPE_COUNT}}

Each routing domain has its own DHCP server. Open a domain to set it up or change it.

{{#ERROR}}
{{ERROR}}
{{/ERROR}} {{#FLASH}}
{{FLASH}}
{{/FLASH}}
{{#DHCP_SCOPE_ROWS}} {{/DHCP_SCOPE_ROWS}}
Routing domainDHCPNetworksReservationsAdvertises this routerDriftInstanceLease table
{{S_LABEL}} {{S_MODE}} {{S_NETWORKS}} {{S_RESERVATIONS}} {{#S_ADVERTISES}}yes{{/S_ADVERTISES}}{{^S_ADVERTISES}}—{{/S_ADVERTISES}} {{#S_DRIFT}}drift{{/S_DRIFT}}{{#S_DRIFT_UNKNOWN}}unknown{{/S_DRIFT_UNKNOWN}}{{^S_DRIFT}}{{^S_DRIFT_UNKNOWN}}—{{/S_DRIFT_UNKNOWN}}{{/S_DRIFT}} {{S_STATE}} {{#S_HAS_TABLE}}{{S_TABLE}}{{/S_HAS_TABLE}}{{^S_HAS_TABLE}}—{{/S_HAS_TABLE}} {{#S_KNOWN}}Open{{/S_KNOWN}}{{^S_KNOWN}}domain gone; remove from the console{{/S_KNOWN}}

{{#DHCP_SCOPE_WALKED}}Instance state from the last walk, {{DHCP_SCOPE_WALK_AGE}} s ago.{{/DHCP_SCOPE_WALKED}}{{^DHCP_SCOPE_WALKED}}Instance state is not known yet: the first walk has not run.{{/DHCP_SCOPE_WALKED}}

{{/DHCP_SCOPE_SUMMARY}} {{^DHCP_SCOPE_SUMMARY}}

DHCP server

{{#DHCP_SCOPED}}

DHCP server for routing domain {{DHCP_SCOPE_LABEL}}

Hand out addresses on this domain's networks, from a dhcpd of its own inside its routing table.

{{/DHCP_SCOPED}} {{^DHCP_SCOPED}}

Hand out addresses on the networks you choose, from one OpenBSD dhcpd.

{{/DHCP_SCOPED}}
View leases {{#DRIFT_BADGE}}{{#B_UNSAVED}}Unsaved edits{{/B_UNSAVED}}{{#B_DRIFT}}{{B_LABEL}}{{/B_DRIFT}}{{#B_ERROR}}Drift state unknown{{/B_ERROR}}{{#B_OK}}In sync{{/B_OK}}{{/DRIFT_BADGE}}
{{#ERROR}}
{{ERROR}}
{{/ERROR}} {{#FLASH}}
{{FLASH}}
{{/FLASH}} {{#ADOPTION}}

Existing dhcpd configuration detected

This router has a /etc/dhcpd.conf that OgmaProtect does not manage. Applying from this page replaces it with the settings below. The current file is preserved to dhcpd.conf.preadopt before the first overwrite, and shown read-only here — it is never imported automatically.

{{#LIVE_PREVIEW_TRUNCATED}}

Preview truncated — the full file is preserved on adoption.

{{/LIVE_PREVIEW_TRUNCATED}}
{{/ADOPTION}}
Configured {{ENABLED_LABEL}} Server {{RUNNING_LABEL}}
{{#ENABLED_DRIFT}}

The server's service state does not match the configuration — applying re-synchronizes it.

{{/ENABLED_DRIFT}} {{#CONFIG_DRIFT}}

The live {{^DHCP_SCOPED}}/etc/dhcpd.conf{{/DHCP_SCOPED}}{{#DHCP_SCOPED}}/etc/dhcpd_rd/{{DHCP_SCOPE_RD}}.conf{{/DHCP_SCOPED}} differs from the saved configuration (hand-edited, or never applied) — applying overwrites it with the settings below.

{{/CONFIG_DRIFT}}
{{^DHCP_SCOPED}}{{/DHCP_SCOPED}}{{#DHCP_SCOPED}}{{/DHCP_SCOPED}}

DHCP server

Served networks

Tick an interface to serve DHCP on its network.{{#DHCP_SCOPED}} Only interfaces in routing domain {{DHCP_SCOPE_LABEL}} can be served by its DHCP server.{{/DHCP_SCOPED}}

{{SUBNET_CARDS}}
{{#ADOPTION}}{{#WRITE}} {{/WRITE}}{{/ADOPTION}}{{#WAN_CONFIRM}} {{/WAN_CONFIRM}}{{#DISABLE_CONFIRM}} {{/DISABLE_CONFIRM}}{{#RECLAIM_LEASES}} {{/RECLAIM_LEASES}}
{{#WRITE}} {{/WRITE}}
{{#DHCP_SCOPE_REMOVE}}

Remove this domain's DHCP server

Stops the server for routing domain {{DHCP_SCOPE_LABEL}} if it is running, deletes its configuration and removes its service. Its lease table is kept on disk for a server added later to take back.

{{#DISABLE_CONFIRM}} {{/DISABLE_CONFIRM}}
{{/DHCP_SCOPE_REMOVE}} {{#PF_HINT}}

Firewall

Ensure your firewall passes UDP ports 67 and 68 on {{HINT_SUBNETS}} so clients can reach this server. This page never changes firewall rules — manage them on the Firewall page.

{{/PF_HINT}}
Live DHCP server log (dhcpd)
{{#DHCP_SCOPED}}{{/DHCP_SCOPED}}
Open to stream dhcpd events.
TimeSourceProgramMessage

Scoped to the dhcpd tag in /var/log/daemon.{{#DHCP_SCOPED}} Every domain's server logs under that tag: the lines naming one of this domain's networks (via <interface>) are its own; lines naming no network (startup, lease-file warnings, a relay's address) are marked unattributed and shown for every domain.{{/DHCP_SCOPED}} Watch DHCPDISCOVER / DHCPOFFER / DHCPACK negotiations as devices join. Requires the log:*:read capability.

{{/DHCP_SCOPE_SUMMARY}}