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

CARP and DHCP server

Scheduled Pinned Locked Moved HA/CARP/VIPs
6 Posts 4 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.
  • T Offline
    ttanemori
    last edited by Mar 28, 2014, 6:09 PM

    "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 Offline
      viragomann
      last edited by Mar 30, 2014, 7:31 PM

      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 Offline
        ttanemori
        last edited by Apr 2, 2014, 11:40 AM

        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
        • D Offline
          dotdash
          last edited by Apr 2, 2014, 3:01 PM

          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 Offline
            cthomas
            last edited by May 2, 2014, 3:56 AM

            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 Offline
              ttanemori
              last edited by May 2, 2014, 3:42 PM

              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.
                This community forum collects and processes your personal information.
                consent.not_received