Package: dhcp3-server
Version: 3.0.6.dfsg-1
Followup-For: Bug #385608
Hi,
there was no answer for the bug reporter for more than a year, so let
me share some toughts since I also stumbled on this bug :
I happen to have a failover configuration with 2 servers, each with the
following definition in /etc/dhcp3/dhcpd.conf :
on castor:
~~~~~~~~~
failover peer "dhcp-failover-example" {
primary;
address castor.example.com;
port 519;
peer address pollux.example.com;
peer port 519;
max-response-delay 60;
max-unacked-updates 10;
mclt 3600;
split 128;
load balance max seconds 3;
}
and it's sibling pollux :
lover peer "dhcp-failover-example" {
secondary;
address pollux.example.com;
port 519;
peer address castor.example.com;
peer port 519;
max-response-delay 60;
max-unacked-updates 10;
mclt 3600;
}
after reinstalling the second server (pollux) on a brand new machine
with a fresh install of lenny/testing, the 2 servers got unsynchronized
with the following error :
Dec 18 09:19:58 pollux dhcpd: failover peer dhcp-failover-example: invalid
argument
but I didn't noticed it right away and at the same time I was running out of
free addresses with the following message on the master :
Dec 18 09:11:53 castor dhcpd: DHCPDISCOVER from 00:17:42:3c:14:75 via eth0:
peer holds all free leases
after digging a bit I found the culprit was /etc/hosts on pollux (the
reinstalled server) which had :
127.0.1.1 pollux.example.com pollux
this specific line is incompatible with having the FQDN in dhcpd.conf
after I commented out the line in the hosts file and restarted dhcpd, it
went fine
a short term solution until a correction is found is to have the IP
address in the failover declaration :
failover peer "dhcp-failover-example" {
secondary;
address 192.168.1.16; # pollux
[...]
but this is a bit cumbersome esp. with the advent of IPv6
so the long term approach might be to have dhcp3-server capable of
handling host name instead of IP address in conf file
...or else the bug lies in netcfg who should not set local address to
127.0.1.1 unlike what is said here http://bugs.debian.org/316099
'hope this helps
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (99, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages dhcp3-server depends on:
ii debconf [debconf-2.0] 1.5.17 Debian configuration management sy
ii debianutils 2.28.2 Miscellaneous utilities specific t
ii dhcp3-common 3.0.6.dfsg-1 common files used by all the dhcp3
ii libc6 2.7-3 GNU C Library: Shared libraries
dhcp3-server recommends no packages.
-- debconf information excluded
--
Cyril Chaboisseau
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]