1
High availability / Re: CARP with DHCP on WAN
« on: January 20, 2022, 05:46:58 pm »
Great, nice to hear a success
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
We've effectively arrived on the same method to achieve this. Except your calls, Spali, are probably much better since you are using the config system's normal calls (which I'm not familiar with. I'm instead smashing in console commands via exec, equivalent to using a hammer. (unsanitized code execution risks here!)If it works for you, then I you've done a good job
I am trying to do this on Dual WAN using Spali's script and the primary kicks but the secondary WAN just sits there.regarding DHCP, currently not tested, but according to docs and setup DHCP synced with failover defined, I assume this should work on the LAN side.
bitcore's solution works, though I don't know if we need to kill the dhcp server on the backup.. if it all works correct, dhcp should failover to the backup when the primary fails.. if you sync all leases, the backup should take over as dhcp server.
If anyone sees this before I figure it out.. how can I tweak Spali's script to kick both WAN interfaces when there is a failure?
$subsystem = !empty($argv[1]) ? $argv[1] : '';
$type = !empty($argv[2]) ? $argv[2] : '';
$type will either contain "MASTER" or "BACKUP".