Not seeing all dhcp leases/devices on luci

Using luci, i have a big list of active dhcp leases, which i expected are all devices connected actively(or not actively) but i am missing a lot. where do i find all devices connected?

It's not a list of connected devices, it's a list of devices that requested and received a DHCP lease.

By default nowhere. An accurate enumeration of all connected devices on your network, even the ones that didn't ask your router for an IP, is a decidedly non-trivial thing to do.

5 Likes

im pretty sure that the list is incomplete, some devices that are reachable and got a lease (even though made them static) are not showing up in that list on the main view on luci.

It is worth noting how the LuCI DHCP lease list works...

  1. The DHCP leases are maintained on the device with the DHCP server. In most cases, that will be the main router.
  2. The list is populated when a device requests a DHCP lease.
  3. The list itself is stored in RAM. A restart/power cycle of the OpenWrt device will cause that list to be cleared.
  4. In the case where the list has been cleared, it will only be repopulated when the respective devices request a new/renewed lease.
  5. The DHCP leases list only represents devices that use DHCP. Static IP devices will not be reflected in that list.
  6. That list does not propagate to other devices on the network such as APs and switches. There are some methods to synchronize the lists to things like APs, but that is not a default behavior.
2 Likes
$ cat /tmp/dhcp.leases
< all of the DHCPv4 leases >

$ cat /tmp/hosts/dhcp.cfg01411c
< some of the OpenWrt-based IP reservations, mix of IPv4 and IPv6 >

$ cat /tmp/hosts/odhcpd
< all of the DHCPv6 leases and some of reserved IPv6 addresses as comments >

Note that you will be missing any IPv4 that is statically defined on the client and all of the IPv6 addresses acquired via SLAAC or statically defined on the client.

I just connected a new device to the main router but its not showing up in this list as a new device. It has to be connected since the green led shows its connected. How do i find the device? It should have gotten assigned a IP but yeah, its not in that luci list.

Is this a wired or a wireless device?

Reboot the device while you watch the logs on the router. You should see messages indicating it has connected to the network and acquired an IP address.

Post the relevant messages here for review.

1 Like

both these ip's here do not show in the list in the main page of luci, even though the device is newly connected to the router since less then 3 hours ago. However the 214 is connected to the router, as i can ping it with my phone.

I should note the device does not have a static ip set, it has been given by dhcp.

DHCPNAK with "wrong server-ID" sounds suspiciously like you've got multiple DHCP servers on your network.

4 Likes

that was the issue! was sure i disabled dhcp on the other mesh points, but turns out one was enabled. thanks!

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.