Hi List,

i am using two machines in our network as DHCP servers and want to
synchronise them via the -Y and -y switches. After a while, they get out
of sync and have slight differences in their leasefiles. After
investigating a bit, i activated the sync_debug mode in
/usr/src/usr.sbin/dhcpd/sync.c by setting sync_debug != 0:

int sync_debug = 1;

recompiled dhcpd and installed it. Watching the logs shows, that the
messages aren't received properly:

on sparc64:
 Jun 29 13:42:03 sparci dhcpd[23673]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 -> ip 192.168.1.144, start 1340970122, end 1343562122
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.244 (192.168.1.244)
Jun 29 13:42:03 sparci dhcpd[23673]: 192.168.1.244(sync): truncated or
invalid packet
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 -> ip 192.168.1.144, start 1340970123, end 1343562123
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.244 (192.168.1.244)


on amd64 (virtual):
Jun 29 13:42:03 infra0 dhcpd[21062]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 infra0 dhcpd[21062]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 infra0 dhcpd[21062]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 -> ip 192.168.1.144, start 1340970122, end 1343562122
Jun 29 13:42:03 infra0 dhcpd[21062]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 infra0 dhcpd[21062]: sending sync message to
192.168.1.241 (192.168.1.241)
Jun 29 13:42:03 infra0 dhcpd[21062]: 192.168.1.241(sync): truncated or
invalid packet
Jun 29 13:42:03 infra0 dhcpd[21062]: 192.168.1.241(sync): truncated or
invalid packet

on amd64 (real hardware):
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.244(sync): truncated or
invalid packet
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.241(sync): truncated or
invalid packet
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.241(sync): truncated or
invalid packet

These are logentries from three machines, to rule out anything is
related to the second host running on virtual hardware. The dhcpd syncs
are started in unicast mode with "-Y 192.168.1.244 -Y 192.168.1.240 -y
192.168.1.241" (on the sparc64, and vice versa on the other hosts).
Multicast syncs don't change the situation.

Is there anything, i can do about the truncated messages to get this
working as it should?

marc

Reply via email to