HA/CARP, with DHCP error
-
Re: CARP DHCP Failover in VLANs
Hi Team,
I have been assigned to set up a HA on two pfsense XG7100U (DHCP failover with CARP). The config is done via GUI. The sync works fine but when I turn on the DHCP on my multi-network setup (that is I turn on DHCP on my user VLAN), it returns with an error and LAN DHCP also stops working. I am quite a rookie with pfsense, but I would try to explain my design as a need some help here. this is my configuration in this diagram below:
![0_1589880186650_202083d0-8f66-47aa-9988-821b4d77e136-image.png](Uploading 0%)VIP is also configured fine. But when I turn on DHCP on the user interface, I get this error on the system log and no DHCP is assigned to the users on VLAN 20 and 50:
https://forum.netgate.com/topic/106394/dhcp-not-working-properly-solvedPlease what am I missing? What am I not getting right?
-
Did you setup the DHCP server for HA?
https://docs.netgate.com/pfsense/en/latest/book/highavailability/example-redundant-configuration.html
Sometimes you need to restart DHCP on both boxes to get DHCP in sync. -
Thanks @dotdash ,
I had tried that before when I got that from some of the forums. However, I followed the steps that were listed in the link that you shared. I guess the results were still the same, please see
Even after the restart, these were the results (DHCP set on LAN and USER VLANs)
Thanks, and open to all help please -
After a PM, I just looked at your post again, as I couldn't remember the exact details. This time I looked closer and noticed you have an error in the subnet mask on vlan 20. 172.16.46.0/22 is not the subnet boundry. Perhaps it was supposed to be /24. The subnet would be 172.16.44.0/22 and would encompass 172.16.44.1-172.16.47.254, which conflicts with the subnets defined on vlans 50 and 99. This could be the root cause of the dhcp failure.
-
@dotdash . Thanks for you help so far. I made the changes based on your suggestions, but was not successful.
-
@bimpe said in HA/CARP, with DHCP error:
https://forum.netgate.com/topic/106394/dhcp-not-working-properly-solved
The XMLRPC process will automatically add +100 to each skew when synchronizing the VIPs to the secondary node.
skew on second server with DHCP is more than 20 by ifconfig | grep carp ?