DHCP
Static leases are used to assign fixed IP addresses and symbolic hostnames to DHCP clients. They are also required for non-dynamic interface configurations where only hosts with a corresponding lease are served.
Use the Add Button to add a new lease entry. The MAC address identifies the host, the IPv4 address specifies the fixed address to use, and the Hostname is assigned as a symbolic name to the requesting host. The optional Lease time can be used to set non-standard host-specific lease time, e.g. 12h, 3d or infinite.
The tag construct filters which host directives are used; more than one tag can be provided, in this case the request must match all of them. Tagged directives are used in preference to untagged ones. Note that one of mac, duid or hostname still needs to be specified (can be a wildcard).
Use the Add Button to add a new lease entry. The MAC address identifies the host, the IPv4 address specifies the fixed address to use, and the Hostname is assigned as a symbolic name to the requesting host. The optional Lease time can be used to set non-standard host-specific lease time, e.g. 12h, 3d or infinite.
The tag construct filters which host directives are used; more than one tag can be provided, in this case the request must match all of them. Tagged directives are used in preference to untagged ones. Note that one of mac, duid or hostname still needs to be specified (can be a wildcard).
| Hostname | MAC Addresses | IPv4 address | Lease time | DUID/IAIDs | IPv6 Token | Set Tag | Match Tag | |
|---|---|---|---|---|---|---|---|---|
| This section contains no values yet |
Active DHCPv4 Leases
| Hostname | IPv4 address | MAC address | DUID | IAID | Remaining time |
|---|---|---|---|---|---|
| There are no active leases |
Active DHCPv6 Leases
| Interface | Hostname | IPv6 addresses | DUID | IAID | Remaining time |
|---|---|---|---|---|---|
| There are no active leases |
This is the only DHCP server in the local network.
Local domain suffix appended to DHCP names and hosts file entries.
Allocate IP addresses sequentially, starting from the lowest available address.
Maximum allowed number of active DHCP leases.
Never send queries for FQDNs in the Address option to an upstream resolver.
Bind only to configured interface addresses, instead of the wildcard address.
Listen only on the specified interfaces, and loopback if not excluded explicitly.
Listen only on the specified addresses.
Do not listen on the specified interfaces.
Log all options sent to DHCP clients and the tags used to determine them.
- unspecified
- KERN
- USER
- DAEMON
- AUTH
- LPR
- NEWS
- UUCP
- CRON
- LOCAL0
- LOCAL1
- LOCAL2
- LOCAL3
- LOCAL4
- LOCAL5
- LOCAL6
- LOCAL7
- stderr
Set log class/facility for syslog entries.
Suppress logging of the routine operation for the DHCP protocol.
Read
/etc/ethers to configure the DHCP server.File to store DHCP lease information.
Relay DHCP requests elsewhere. OK: v4↔v4, v6↔v6. Not OK: v4↔v6, v6↔v4.
Note: you may also need a DHCP Proxy (currently unavailable) when specifying a non-standard Relay To port(
You may add multiple unique Relay To on the same Listen addr.
Note: you may also need a DHCP Proxy (currently unavailable) when specifying a non-standard Relay To port(
addr#port).You may add multiple unique Relay To on the same Listen addr.
| Relay from | Relay to address | Only accept replies via | |
|---|---|---|---|
| This section contains no values yet |
Enable the built-in single-instance TFTP server.
Special PXE boot options for Dnsmasq.
| Filename | Server name | Server address | DHCP Options | Match this Tag | Force | Instance | |
|---|---|---|---|---|---|---|---|
| This section contains no values yet |
Note that many options are set on a per-interface basis in the Interfaces tab.
Use
The DHCPv4 functionality also needs to be enabled on a per-interface basis.
odhcp for DHCPv4. This will disable DHCPv4 support in dnsmasq.The DHCPv4 functionality also needs to be enabled on a per-interface basis.
File to store active DHCP leases in.
Path to a script to run each time the lease file changes.
Directory to store hosts files (IP address to hostname mapping) in. Used by e.g.
dnsmasq.Directory to store IPv6 prefix information files in (to detect and announce stale prefixes).
- unspecified
- Emergency
- Alert
- Critical
- Error
- Warning
- Notice
- Info
- Debug
Log level of the
odhcpd daemon.PXE over IPv6 boot options.
The last entry without an architecture becomes the default.
The last entry without an architecture becomes the default.
| URL | Architecture | |
|---|---|---|
| This section contains no values yet |