On 2013-04-29 08:40, Jim Pingle wrote:
On 4/29/2013 9:13 AM, Ulrik Lunddahl wrote:
My question is now, can you use the build in DHCP server on some subnets
and DHCP relay on other subnets at the same time ?

Unfortunately, that isn't possible. You can't be both a server and a
relay, even if they are on separate interfaces.

I'm not sure what the underlying technical reasoning is for that, I
think it's something in how the relay daemon requires attaching to
interfaces, but I could be misremembering that.

Jim

Looking at a 2.0.3-release system, it appears that dhcpd and dhcrelay are both from ISC DHCPD 4.2.4. Both daemons support binding to specific interfaces, and as long as they don't overlap, ISC does support running both simultaneously. It's possible (although insane) to have dhcrelay listen on interface #1 and forward the requests to dhcpd listening on interface #2.

(Disclaimer: IIRC I've done this under Linux and OpenBSD. I've never tried it on FreeBSD, so YMMV.)

pfSense, on the other hand, has a bunch of checks to make sure this doesn't happen. (Is this left over from when dnsmasq was used for DHCP?) It would likely be non-trivial to allow both to run simultaneously, and might require a complete redesign of the two GUI areas involved (.../services_dhcp.php & .../services_dhcp_relay.php) to avoid pathological coupling.

Hey! Even better, I *can* make pfSense do this as long as I shut off the DHCP server, enable the DHCP relay on some interfaces, and *then* (re-)enable the DHCP server on some non-conflicting interfaces. I'm pretty sure that's a bug, though :-).

-Adam Thompson
 [email protected]
_______________________________________________
List mailing list
[email protected]
http://lists.pfsense.org/mailman/listinfo/list

Reply via email to