OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: tomstephens89 on August 04, 2023, 02:19:25 PM

Title: DHCP Relay (multiple scopes)
Post by: tomstephens89 on August 04, 2023, 02:19:25 PM
I initially posted this feature request in the 19.7 release but since its not really been ackowledged figured I'd post it again.

It would be good if DHCP scopes could be defined for address space outside of the locally connected subnets and the DHCP server respond to DHCP requests which are relayed up from a L3 switched core.

In small deployments where L3 switching is being used for internal routing, it would remove the need for a seperate DHCP server.

Thanks
Tom
Title: Re: DHCP Relay (multiple scopes)
Post by: franco on August 04, 2023, 02:23:10 PM
The plan is to replace the current dhcrelay with a MVC/API equivalent but since isc-dhcp is EoL we re going to look for a different upstream provider. Since we haven't decided on one the actual "feature scope" for the future is a bit unclear. But I think this will be worked on for 24.1. Best to make a new feature request and we will see what we can do about it.


Cheers,
Franco
Title: Re: DHCP Relay (multiple scopes)
Post by: harshw on October 05, 2023, 08:01:29 PM
Hi Franco

Saw this: https://github.com/opnsense/core/issues/6829. So ISC-Kea is out of consideration and in any case, it has $$$ paywalls for features and needed MySQL or PostgreSQL for the lease db (which is a heavy requirement)

With OpenBSD's dhclient being favored, would you reckon we could still see this in 24.1?
Title: Re: DHCP Relay (multiple scopes)
Post by: mimugmail on October 05, 2023, 10:03:34 PM
Quote from: tomstephens89 on August 04, 2023, 02:19:25 PM
I initially posted this feature request in the 19.7 release but since its not really been ackowledged figured I'd post it again.

It would be good if DHCP scopes could be defined for address space outside of the locally connected subnets and the DHCP server respond to DHCP requests which are relayed up from a L3 switched core.

In small deployments where L3 switching is being used for internal routing, it would remove the need for a seperate DHCP server.

Thanks
Tom

This is already possible with Freeradius plugin. I added a DHCP section with this feature :)
Title: Re: DHCP Relay (multiple scopes)
Post by: harshw on October 06, 2023, 02:24:34 AM
Thanks mimugmail ! Installed the plugin and taking a look - does this only support static leases or does it do dynamic ranges etc as well?
Title: Re: DHCP Relay (multiple scopes)
Post by: mimugmail on October 06, 2023, 01:25:47 PM
I'd say yes but I dont use it
Title: Re: DHCP Relay (multiple scopes)
Post by: FraLem on May 25, 2024, 08:50:31 AM
Hi,
Anyone managed to replace a Multi-scope Windows DHCP server with the freeradius dhcp service?
Thanks
Title: Re: DHCP Relay (multiple scopes)
Post by: mimugmail on May 25, 2024, 12:12:15 PM
This should be possible with kea now
Title: Re: DHCP Relay (multiple scopes)
Post by: FraLem on May 29, 2024, 06:59:18 PM
Hi,

Just to confirm Kea does support the scenario.

Thanks for the info.