DHCP - Multiple Interfaces - possible bug?
-
Again.. Yes if say the dhcpd crashes/shuts down for some reason.. The service would show as down.. since it is.. But you making a change, like disabling specific interface.. Would cause pfsense to restart the service to reflect the new change in config.. So if the dhcpd was down, this change in config would cause a restart of it, or bring it back up because it was down.
You could also just hit the button to restart the service without making any changes to the config.
Does your log show why the service crashed or shutdown? If you hit that button and it doesn't restart the log should reflect why..
I have dhcpd running on way more than 3 interfaces ;)
-
Log report after trying to start DHCP service from services dashboard (hitting that button) with all 3 interface's DHCP enabled (it failed to start):
-
Looks like a problem with hn2 - says matches multiple shared networks... What networks do you have on these networks with masks.
Pfsense shouldn't allow you to create overlapping networks... But you could have an issue that slipped through or you changed mask after the network was created?
What are the networks you have on all of your interfaces?
Quick easy way to look and show this info would be just your menu when you ssh to the box - example here are mine.. Just hit networks that have public on them.
-
-
Well as long as your wan doesn't start with say 10.x something I don't see any overlap there..
Can you show say the dhcp server settings for that hn2 network (dmz) and your other.. Maybe there is something wrong in the config where it didn't update or something.
Give me a sec - we should be able to just look directly in the dhcpd.conf - one sec let me find the path, and post up mine as example.
Look at the dhpd.conf here
/var/dhcpd/etcDo you see anything that overlaps?
-
Sure thing:
I appreciate you keeping engaged, thanks.
I have to run for a job, but will be back online later this evening.
-
Well don't see anything overlapping there.. Odd.. The way I am reading that error is dhcpd thinks for some reason there is an overlap. Best to look direct in the dhcpd.conf
In your dhcpd.conf do you have this called out anywhere "shared-network"
Do you have any vips setup on pfsense?
https://redmine.pfsense.org/issues/6834For example pfblocker can setup a vip??
-
I reviewed dhcpd.conf @ /var/dhcpd/etc/ , but did not see anything regarding "shared-network". everything seems fine/normal within the conf file.
However, yes, I DO have two VIPs configured in association with haproxy, and I AM working with NAT as a result of the work with haproxy.
I have been setting up haproxy for a variety of use cases. I would not have thought there was such an association. Very interesting... I will read through this in detail tomorrow, run some tests, and report back.
Thanks for the clue.
-
To wrap this up... it was this same issue with a misconfigured VIP (https://redmine.pfsense.org/issues/6834). Essentially, in a VIP, you define the interface and an IP. If they do not align properly, this issue seems to surface.
A bit hard to track down, but now everything is working properly. Thanks John!
-
Glad you got it sorted!