[SOLVED]: Ips on manual assigned devices do not show in Services->DHCPv4->Leases

Started by braveheart_7, May 13, 2022, 01:33:52 AM

Previous topic - Next topic
Hello Experts!

OPNsense newbie coming from Tomato. (Even though I am in the US, I skipped pfs---- because of the domain squatting issue. )

I'm running OPNsense 22.1.6-amd64. Nics are all Intel. In the past, with Tomato, I would crate a small DHCP range like 192.168.1.150-192.168.1.200. Then, I would set my static DHCP addresses using the 192.168.1.5-192.168.1.149 which is outside the DHCP range. I am also doing that in OPNsense. In Tomato, I would not have the issue below...

Problem: I have a Proxmox (physical) server which was setup with 192.168.1.10 and a TrueNas (physical) server with an ip of 192.168.1.11. These were assigned manually during the setup of Proxmox and TrueNas. When I go to Services-->DHCPv4-->Leases, I do not see these devices. Nor can I use the search and find these devices by their manually assigned IP's. I understand if they don't show on this page as logic dictates that I might only see true, DHCP leases from my 192.168.1.150-200 range. However, I can't see those servers anywhere in OPNsense. I must be missing something obvious here. Can anyone assist?

Thanks!

if i understand you correctly then there is no issue here.

You have configured the Ip addresses of your truenas and proxmox interfaces manually. By doing so, those hosts will never issue a DHCP request and will therefore not appear in the list of DHCP leases.

If you want these hosts to appear in the list of DHCP leases, then you should configure your host (truenas & proxmox) interfaces as DHCP but configure a static DHCP assignment (mapping) in OPNsense.

have you actually created a static dhcp entry in opnsense for those machines?

If you do that, even though the machine is never issuing dhcp requests it  will show in the dhcp leases as a static entry ( but with the 'offline' flag since the dhcp server never sees any req's from it)

More importantly the hostname will propagate thru to unbound so as to be resolvable via local dns ( presuming you have the 'register dhcp leases' box ticked in unbound )

I do this for my esxi server since it hosts opnsense so has to have a static IP

Thanks! I knew it had to be something simple I missed. I located the place and created the static entry.