The DHCP server keeps a lease table and nothing can read it #1373

Closed
opened 2026-11-10 19:28:08 +00:00 by jaylouisw · 0 comments
Owner

DHCP has been modelled end to end since it was: pools, ranges, exclusions, reservations, lease times, renewals
and expiry. The server keeps an allocation table — MAC → address, and when it comes back — and nothing can read
it
: there is no show ip dhcp at all.

So: build a pool, connect two hosts, and try to find out which addresses were handed out, to whom, when they come
back, or whether the pool is nearly full. There is no command that answers any of it. Same shape as
show power inline before #1295, the STP election before #1365, NAT before #1367 and OSPF before #1371.

What must be true instead

  1. show ip dhcp binding [<address|mac>] — address, MAC, pool, time left; a reserved address marked; a lapsed one
    still visible and marked, because a table that forgets a row cannot explain why an address is unavailable.
  2. show ip dhcp pool [<name>] — network, range, gateway, DNS, lease, exclusions, reservations, and utilisation
    counted the way allocation counts it.
  3. An unknown address, MAC or pool name is reported with the reason; a device with no pools is not a server; a
    device with pools and no run says the state has not been evaluated.
  4. Every row from the engine's own table, so the console cannot describe a different server than the one that
    hands out addresses.
DHCP has been modelled end to end since it was: pools, ranges, exclusions, reservations, lease times, renewals and expiry. The server keeps an allocation table — MAC → address, and when it comes back — and **nothing can read it**: there is no `show ip dhcp` at all. So: build a pool, connect two hosts, and try to find out which addresses were handed out, to whom, when they come back, or whether the pool is nearly full. There is no command that answers any of it. Same shape as `show power inline` before #1295, the STP election before #1365, NAT before #1367 and OSPF before #1371. ## What must be true instead 1. `show ip dhcp binding [<address|mac>]` — address, MAC, pool, time left; a reserved address marked; a lapsed one still visible and marked, because a table that forgets a row cannot explain why an address is unavailable. 2. `show ip dhcp pool [<name>]` — network, range, gateway, DNS, lease, exclusions, reservations, and utilisation counted the way allocation counts it. 3. An unknown address, MAC or pool name is reported with the reason; a device with no pools is not a server; a device with pools and no run says the state has not been evaluated. 4. Every row from the engine's own table, so the console cannot describe a different server than the one that hands out addresses.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge#1373
No description provided.