Switch Carp MASTER to BACKUP via terminal
-
Could anyone help? Is there any way to change the CARP of my network card from MASTER to BACKUP via the pfSense terminal? Or does anyone know any scripts in this regard?
-
To enter CARP maintenance mode (demotes primary to backup mode):
pfSsh.php playback enablecarpmaint
To leave CARP maintenance mode:
pfSsh.php playback disablecarpmaint
-
Thanks for listening. The problem is that these commands only worked on the LAN interface. I wonder if there is how this command works on other interfaces, such as the WLAN interface too !?
-
It demotes all interfaces with CARP VIPs on them. You'll need to better describe what you are seeing.
-
@Derelict said in Switch Carp MASTER to BACKUP via terminal:
It demotes all interfaces with CARP VIPs on them. You'll need to better describe what you are seeing.
I enter pfSense through the LAN interface through Putty. On the command line, I activate the command described above. It turns out that only the CARP VIP of the LAN interface, changes to backup. The CARP VIP of the WLAN interface, it does not change.
-
WLAN as in an actual wireless interface on pfSense acting as an AP or client?
I find it difficult to believe that would ever have worked properly with CARP in the first place.
-
No. WLAN connected to a Switch, and via VLAN on a Wireless Router
-
It does not matter what interface you are connected to when you issue that command. It demotes all CARP VIPs on that node to advskew 254.
If you run that (or use enter CARP Mantenance mode in Status > CARP - which does the same thing) and you still see MASTER VIPs on that node, your HA is not properly-configured in the first place.
Are all of your CARP VIPs MASTER/BACKUP before you try to put the master into maintenance mode?