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

    CARP, Redundant DHCP Service

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

      Redundant DHCP service seems to be broken, testing with the build below:

      2.0-ALPHA-ALPHA
      built on Thu Apr 2 13:24:53 EDT 2009
      FreeBSD 7.1-RELEASE-p4

      Error extracted from System log:

      php: /status_services.php: The command '/usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/dhcpd -cf /var/dhcpd/etc/dhcpd.conf em1' returned exit code '1', the output was 'Internet Systems Consortium DHCP Server V3.0.5 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ /var/dhcpd/etc/dhcpd.conf line 15: ; (59): expecting IP address or hostname address ; ^ /var/dhcpd/etc/dhcpd.conf line 28: failover peer dhcp0: not found failover peer "dhcp0" ^ Configuration file errors encountered – exiting'

      Configuration file produced by GUI:

      cat dhcpd.conf

      option domain-name "parolink.biz";
      option ldap-server code 95 = text;
      option domain-search-list code 119 = text;
      default-lease-time 7200;
      max-lease-time 86400;
      log-facility local7;
      ddns-update-style none;
      one-lease-per-client true;
      deny duplicates;
      ping-check true;
      authoritative;
      failover peer "dhcp0" {
        secondary;
        address ;
        port 520;
        peer address 10.1.0.3;
        peer port 519;
        max-response-delay 10;
        max-unacked-updates 10;
        mclt 600;

      load balance max seconds 3;
      }
      subnet 10.1.0.0 netmask 255.255.255.0 {
              pool {
                      deny dynamic bootp clients;
                      failover peer "dhcp0";
                      range 10.1.0.10 10.1.0.245;
              }
              option routers 10.1.0.1;
              option domain-name "test.local";
              option domain-name-servers 10.1.0.2;
      }

      Address parameter seems to be missing the actual hostname or address.  After reading the dhcpd.conf man page, it would seem that the IP address of the pfsync interface would be appropriate here.....

      Can anyone duplicate this?

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