1
General Discussion / Re: DHCP Server multiple subnets on same interface
« on: October 16, 2023, 06:24:04 pm »
I have an update:
Turns out this hack doesn't hold up -- any time interfaces are brought up/down, routing conflicts get in the way and can cause confusion and connectivity failures.
However, I did manage to get things going with a small modification:
* Use a subnet mask of /23 for the "dummy" VLAN interface.
* leave the static route in place with the smaller /24 mask.
Notes:
* Ensure your DHCP pool ranges are confined to the /24 (e.g., even though the "available" range for my 10.0.80.0 network shows "10.0.80.1 - 10.0.81.254", ensure your pool addresses don't exceed the range covered by the corresponding static route.
* The upper-half of the /23 subnet is effectively wasted, but make sure it doesn't conflict with a different subnet. If you give each subnet some breathing room, this shouldn't be a problem.
With this change, the configuration has been stable for almost a month, and has survived a couple reboots and interface reconfigurations.
Let me know if it works for you, or if I'm going to be sorry for doing this down the line...
Turns out this hack doesn't hold up -- any time interfaces are brought up/down, routing conflicts get in the way and can cause confusion and connectivity failures.
However, I did manage to get things going with a small modification:
* Use a subnet mask of /23 for the "dummy" VLAN interface.
* leave the static route in place with the smaller /24 mask.
Notes:
* Ensure your DHCP pool ranges are confined to the /24 (e.g., even though the "available" range for my 10.0.80.0 network shows "10.0.80.1 - 10.0.81.254", ensure your pool addresses don't exceed the range covered by the corresponding static route.
* The upper-half of the /23 subnet is effectively wasted, but make sure it doesn't conflict with a different subnet. If you give each subnet some breathing room, this shouldn't be a problem.
With this change, the configuration has been stable for almost a month, and has survived a couple reboots and interface reconfigurations.
Let me know if it works for you, or if I'm going to be sorry for doing this down the line...