dhcpd v4.4.1 failed to start when built with --enable-use-sockets option

Zhengjing Jim Yang zy33 at cornell.edu
Mon Jan 28 20:42:36 UTC 2019


Hi,

I have some issue with dhcpd v4.4.1 when building it with --enable-use-sockets option.
The binary was built successfully on Red Hat Enterprise Linux 6.

$ ./configure  --enable-use-sockets
$ make
$ make install

When I tried to start up the server, it failed to start with the following errors in the logs below.

The same configuration works for dhcpd v4.3.5 with the same build option.
The same configuration also works for dhcpd v4.4.1 when built without using --enable-use-sockets option.

Did I miss something?

Thank you for your time.

Jim

----Log ----

Jan 28 14:47:46 test1 dhcpd: Wrote 0 class decls to leases file.
Jan 28 14:47:46 test1 dhcpd: Wrote 0 deleted host decls to leases file.
Jan 28 14:47:46 test1 dhcpd: Wrote 0 new dynamic host decls to leases file.
Jan 28 14:47:47 test1 dhcpd: Wrote 1233 leases to leases file.
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same subnet: bond0 bond0:1
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same shared network: bond0 bond0:1
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same subnet: bond0 bond0:2
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same shared network: bond0 bond0:2
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same subnet: bond0 bond0:3
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same shared network: bond0 bond0:3
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same subnet: bond0 bond0:4
Jan 28 14:47:47 test1 dhcpd: Multiple interfaces match the same shared network: bond0 bond0:4
Jan 28 14:47:47 test1 dhcpd: setsockopt: SO_BINDTODEVICE: No such device
Jan 28 14:47:47 test1 dhcpd:
Jan 28 14:47:47 test1 dhcpd: If you think you have received this message due to a bug rather
Jan 28 14:47:47 test1 dhcpd: than a configuration issue please read the section on submitting
Jan 28 14:47:47 test1 dhcpd: bugs on either our web page at www.isc.org or in the README file
Jan 28 14:47:47 test1 dhcpd: before submitting a bug.  These pages explain the proper
Jan 28 14:47:47 test1 dhcpd: process and the information we find helpful for debugging.
Jan 28 14:47:47 test1 dhcpd:
Jan 28 14:47:47 test1 dhcpd: exiting.

> uname -a
Linux  2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Sep 18 10:29:08 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

>ifconfig
bond0     Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:10.0.1.20  Bcast:10.0.1.63  Mask:255.255.255.192

          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:899836753 errors:0 dropped:0 overruns:0 frame:0
          TX packets:668845942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          ...

bond0:1   Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:10.0.1.21  Bcast:10.0.1.63  Mask:255.255.255.192
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

bond0:2   Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:10.0.1.22  Bcast:10.0.1.63  Mask:255.255.255.192
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1

bond0:3   Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff
          inet addr:10.0.1.23  Bcast:10.0.1.63  Mask:255.255.255.192
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1


# dhcp configuration:
local-address 10.0.1.21;
server-identifier 10.0.1.21;
pid-file-name "/opt/dhcp/var/dhcpd.pid";
lease-file-name "/opt/dhcp/etc/dhcpd.leases";
ddns-update-style none;
option ntp-servers 10.0.1.50
default-lease-time 3600;
max-lease-time 3600;
deny bootp;
authoritative;
ping-check true;
omapi-port 1000;
omapi-key omapi-key;

failover peer "test" {
        primary;
        address 10.0.1.21;
        port 647;
        peer address 10.0.2.21;
        peer port 847;
        max-response-delay 60;
        max-unacked-updates 10;
        mclt 900;
        split 128;
        load balance max seconds 3;
}

subnet 10.0.1.0 netmask 255.255.255.192 {
        option routers 10.0.1.1;
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190128/8e643ef0/attachment-0001.html>


More information about the dhcp-users mailing list