What it is for
Tools → DHCP Leases shows the addresses that the appliance’s DHCP server has assigned to the clients of the internal networks («Active and historical leases»). It is for answering the question «who has this address?», for reserving an address for a device (the printer, the NAS) and for freeing an address.
The page is a list with a read-only detail: you do not edit a lease, you can only reserve it, delete it or inspect the device. The configuration of the DHCP server, of the pools and of the reservations per network is in Network → IPAM - IP address management (chapter 6).
If DHCP is not configured on the appliance the page says «DHCP server is not configured. Complete the DHCP setup first.».
How the page is laid out
The list’s bar has the title «DHCP leases», «Remove expired IPs» and «Refresh». In the list, the search (by address, MAC or name), the icon «Sort» and the icon «Filter by state».
«Sort» has three entries, one at a time: «IP» (in numeric order: 192.168.1.9 before 192.168.1.10), «Most recent» (from the lease granted or renewed last) and «Expiry» (from the nearest expiry; leases that have already expired come first, those that never expire last). When the page opens the list is sorted by «Most recent». With «Most recent» and «Expiry» each row shows, on the right, the time it is sorted by, «Started» or «Expires».
«Filter by state» has three ticks: «Active», «Inactive», «Reserved» (you can combine them; with a filter set a dot appears on the button).
The order and the filter stay when you reload the page; when you open another page with a list they go back to the defaults.
Each row shows the IP address in bold, the device name, the MAC with the vendor, and the status labels.
The detail «Lease details» shows:
| Field | What it means |
|---|---|
| «IP» | The assigned address |
| «MAC» | The device’s physical address |
| «Vendor» | The manufacturer derived from the MAC |
| «Hostname» | The name the device declared |
| «Status» | «Active», «Free», «Expired», «Released», «Abandoned», «Backup», «Reset» or «BOOTP» (an unknown status appears as it is) |
| «Active» | Yes/No: whether the lease is currently valid |
| «Reserved» | Yes/No: whether a reservation exists for that address |
| «Started» | The start of the lease |
| «Expires» | The end |
If the lease database cannot be read (for example because it is rotating) the list is empty and the warning «The lease database could not be read, so no leases are listed. This does not mean there are none — the database may be mid-rotation or unreadable.» appears.
The actions
The actions are icons in the detail’s bar and act on the selected lease:
| Icon | What it does |
|---|---|
| «Inspect» | Only for an active lease. It scans the device (the same scan as IPAM) and shows «Hostname», «Operating system», «MAC», «Last seen», «Lease» and «Services» (the open ports; «No open ports found.»). «Repeat» redoes the scan, «Back» returns to the details |
| «Convert to reservation» | Turns the lease into a reservation: the address stays with that MAC for good. Confirmation: «Create a reservation from this lease?». Off if the lease has no MAC or is «Already reserved» |
| «Delete lease» | Deletes the lease: the address becomes free again. Off if the address is «Already reserved». DHCP does not stop |
«Remove expired IPs», in the list’s bar beside «Refresh», deletes every expired lease at once: those no longer active whose end has passed. That covers «Expired» ones, «Free» ones (which Kea has already reclaimed) and also «Released» and «Abandoned» ones whose end has passed. Reserved addresses stay. The icon is off when there is nothing to remove. Confirmation: «Remove the expired leases (N)? The addresses become free again; reserved ones stay.». Which leases are expired is worked out again by the server when you confirm; if a deletion fails it stops there and says how many are left. DHCP does not stop.
Messages: «Lease converted to reservation.», «Lease deleted.», «Expired leases removed: N.», «No expired lease to remove.», «Expired leases not removed: N.», «Operation failed».
What «Convert to reservation» does in detail: it creates the reservation with a name derived from the device name (non-alphanumeric characters become hyphens; with no name, dev- followed by the address with hyphens; a name already used gets the suffix -2, -3…), deletes the lease and restarts the DHCP service. If the network’s domain is a zone managed by the appliance it also adds the device’s DNS record, and marks the address in IPAM (from there, if you later clear the address, the DNS record disappears too).
For the technician The lease is information of the DHCP server, not of Atlas: Atlas reads and writes through the
edon-dhcplibrary (Kea). Deleting a lease is alease4-delcall, without interruption. The conversion is refused if the address is not a valid IPv4 or the MAC is missing.
Example: reserving the address of the Administration printer
Situation. The Administration printer took an arbitrary address and now and then it changes, breaking the PCs’ connection.
What you need. The printer switched on and connected to the network.
Steps.
- Open Tools → DHCP Leases and type part of the MAC or of the name in the search (for example
print). - Select the lease. Check in «Vendor» that it really is a printer and that «Active» is «Yes».
- Press «Convert to reservation» and confirm.
Check. The message is «Lease converted to reservation.». The current lease disappears from the list; when the printer renews the address (or you switch it off and on) it reappears with the same IP and the label «Reserved» (you can filter by «Reserved»). In Network → IPAM - IP address management you find the reservation with the same address.
If something goes wrong. If «Convert to reservation» is off, either the lease has no MAC or the address is already reserved.
Example: finding out who that unknown device is
Situation. In the list there is an active lease with an empty name and a vendor you do not recognise.
Steps.
- Select the lease (address, MAC and vendor are in the details).
- Press «Inspect» and wait for «Scanning the host…».
- Read the result: the estimated «Operating system» and the open «Services» (for example ports 80 and 9100 point to a printer or a network device).
Check. If it is not enough, «Repeat» redoes the scan; if the device does not answer the scan the page says «Scan failed.».
If something goes wrong. A device with its firewall on may show no ports: in that case the MAC’s vendor counts. If it is not yours, find it from the switch or the access point.
Example: freeing an address that stayed in use
Situation. A decommissioned laptop still occupies an address in the pool and you want to reuse it.
Steps.
- Filter by «Inactive» or search for the laptop’s name.
- Select the lease and press «Delete lease».
- Confirm: the lease goes and DHCP does not stop.
Check. «Lease deleted.»: the address becomes available to the next client.
Limits
- The page does not edit existing reservations or the pools: for that there is Network → IPAM - IP address management.
- A reserved address cannot be deleted from here: «Already reserved».
- The list is the DHCP server’s, so it sees only the clients of the networks served by this appliance.
- «Inspect» applies only to active leases.