Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    CARP + Redundant DHCP Server

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    3 Posts 3 Posters 2.0k 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.
    • N
      nastraga
      last edited by

      Running the latest snapshot (have been upgrading).

      Relevant portion of config file:

      <virtualip><vip><mode>carp</mode>
                              <interface>wan</interface>
                              <vhid>1</vhid>
                              <advskew>100</advskew>
                              <password>xpert007</password>

                              <type>single</type>
                              <subnet_bits>24</subnet_bits>
                              <subnet>192.168.4.150</subnet></vip>
                      <vip><===== Problem</vip></virtualip>

      Not sure where it came from, but extra <vip>was killing the logic that generates dhcpd.conf for the secondary server.  Removing this tag made secondary DHCP work.

      Found strangeness here:

      /etc/inc/services.inc around line 160

      foreach ($a_vip as $vipent) {
            if($int == $real_dhcpif) {
                    /* this is the interface! */
                    $dhcpdconf .= "have an interface, ip = ".$vipent['ip']." advskew = ".$vipent['advskew']."\n";
                    if($vipent['advskew'] < "20")
                                        $skew = 0;
                    }
              }

      Seems to loop through all virtual IPs, but if statement has no effect because variables are defined before the loop and do no change.
      Shouldn't this evaluate once for applicatable virtual IP?  Strange (blank?) VIP with no parameters was always setting the skew to 0.

      Would be nice to document that advskew for CARP on peer must be >= 20 for secondary DHCP server to work correctly as well.

      Thanks again for making pfSense the great platform it is today  ;D</vip>

      1 Reply Last reply
      Reply Quote 0
      • E
        eri--
        last edited by

        Can you please file an issue on redmine.pfsense.org?

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

          I have seen this happen before, usually when someone incorrectly used proxy arp VIPs on the master which sync'd to the slave as empty entries.

          The DHCP server code needs a little better logic though in that regard, though. I thought I committed a fix for this when I found the issue, I don't see it now.

          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy