OPNsense 24.1.10_3-amd64- Need help cleaning up my ISC V4 DHCP

Started by MannyLNJ, July 21, 2024, 01:10:56 AM

Previous topic - Next topic
I'm running on a headless system. While I can move a screen to where it is located, that would be very inconvenient.  My Opnsense system is handling my whole house and if it goes down I will have an unhappy wife.

I made errors with my DHCP configuration and don't know the safest and cleanest way to fix this. What I want is to assign the following ranges of IP's out in preparation  of setting up VLANS
10.1.1.X network for network hardware and servers real and virtiual
10.1.2.X network for  printers and scanners
10.1.3.X for my and my wife's computers
10.1.4.X for cell phones, tablets and E-readers
10.1.5.X for our smart devices
10.1.6.X for guest devices


When I view the logs for Services: ISC DHCPv4: Log File I see messages such as
2024-07-20T18:58:39-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:58:39-04:00   Error   dhcpd   Remove host declaration s_lan_14 or remove 10.1.3.2   
2024-07-20T18:58:39-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.3.2.   
2024-07-20T18:48:11-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:48:11-04:00   Error   dhcpd   Remove host declaration s_lan_20 or remove 10.1.4.3   
2024-07-20T18:48:11-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.4.3.   
2024-07-20T18:45:06-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:45:06-04:00   Error   dhcpd   Remove host declaration s_lan_7 or remove 10.1.1.8   
2024-07-20T18:45:06-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.1.8.   
2024-07-20T18:44:54-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:44:54-04:00   Error   dhcpd   Remove host declaration s_lan_22 or remove 10.1.5.10   
2024-07-20T18:44:54-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.5.10.   
2024-07-20T18:44:23-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:44:23-04:00   Error   dhcpd   Remove host declaration s_lan_10 or remove 10.1.2.1   
2024-07-20T18:44:23-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.2.1.   
2024-07-20T18:36:37-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16   
2024-07-20T18:36:37-04:00   Error   dhcpd   Remove host declaration s_lan_6 or remove 10.1.1.5   
2024-07-20T18:36:37-04:00   Error   dhcpd   Dynamic and static leases present for 10.1.1.5.   
2024-07-20T18:33:13-04:00   Error   dhcpd   from the dynamic address pool for 10.1.0.0/16

You need /24 and not /16. Also, static (reservation) needs to be outside of the pool, not inside it.

You will not be able to "prepare" for VLANs in this way anyway, these need to be set up per VLAN interface, not "emulate" the VLANs by setting X different pools on a single interface. Need the interfaces in place to configure this, or you will be re-doing it anyway => waste of time.

Also, would use Kea, ISC DHCP is going away.

P.S. Make sure your wireless APs are able to handle the VLANs and number of SSIDs required (the number of SSIDs also has influence on speed/performance).