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

    CARP and DHCP server

    HA/CARP/VIPs
    4
    6
    1.7k
    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.
    • T
      ttanemori
      last edited by

      "CARP (Failover)" under "Status" shows that the primary box is "Master," and the backup box shows "backup."

      However, dhcpd on the primary box is disabled, and I cannot enable it. DHCP IP range on both boxes are same.

      Normally, if I configure CARP, is the primary box turn off dhcpd automatically?

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Do you have configured the "Failover peer IP" for the DHCP server and the CARP advskew correctly on both machines?
        The DHCP service use "20" as threshold to determine whether a machine is backup or master.

        1 Reply Last reply Reply Quote 0
        • T
          ttanemori
          last edited by

          Failover IP should be fine. I read manual, and both machines have correct IP each other. But I am not sure about advskew. I saw it in the manual, but I could not understand what to do.

          I thought I should have changed the number on these pages (attached - left is master, right is backup), but values are already there, and the left one is higher than right one.

          I attached another screen shot (service.PNG). This is what I do not understand. dhcpd on the master does not start at all.

          Could you help me to make my system work?

          Thank you.

          carp.PNG
          carp.PNG_thumb
          service.PNG
          service.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • dotdashD
            dotdash
            last edited by

            Check system logs, DHCP. The errors are usually helpful. Make sure you are using the IP of the Interface you are running DHCP on as the failover peer IP. eg- 192.168.100.3 on the primary (if the primary is 192.168.100.2 and secondary is .3)

            1 Reply Last reply Reply Quote 0
            • C
              cthomas
              last edited by

              Check the DHCP Log - Do you see an error message indicating that 'dhcpd is already running' ?

              If so, remove the following file using the GUI Command Prompt:  rm /var/dhcpd/var/run/dhcpd.pid

              -ct

              1 Reply Last reply Reply Quote 0
              • T
                ttanemori
                last edited by

                Thank you very much for your help.

                Log told me some ideas. In my case, interface assignment on both devices was slightly different. After I reassigned them, it began to work.

                Thanks again!

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