Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Switch Carp MASTER to BACKUP via terminal

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    8 Posts 3 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cássio Elias
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        To enter CARP maintenance mode (demotes primary to backup mode):

        pfSsh.php playback enablecarpmaint
        

        To leave CARP maintenance mode:

        pfSsh.php playback disablecarpmaint
        

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 1
        • C
          Cássio Elias
          last edited by

          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 !?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            It demotes all interfaces with CARP VIPs on them. You'll need to better describe what you are seeing.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • C
              Cássio Elias
              last edited by

              @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.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                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.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • C
                  Cássio Elias
                  last edited by

                  No. WLAN connected to a Switch, and via VLAN on a Wireless Router

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by Derelict

                    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?

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.