On 16/02/2010, at 1:57 AM, Dominique Goncalves wrote: > Hello, > > I've installed two OpenBSD 4.6 servers with dhcpd and synchronisation > option (server1 & server2). So far everything works, leases are sync > between servers. > > If I shutdown server1, server2 will give address to new computers but > when server1 will be up it will not have these new leases. If this > happens, It may be duplicate IP addresses. > > Is there a way to keep in sync leases when a server is down then up?
run rsync before starting dhcpd? there's still a race, but its a lot smaller than before. > > > server1: > # cat /etc/hostname.vr0 > inet 192.168.42.251 255.255.255.0 192.168.42.255 > # grep dhcpd /etc/rc.conf.local > dhcpd_flags=" -y 192.168.42.251 -Y 192.168.42.252 vr0 " > > server2: > # cat /etc/hostname.vr0 > inet 192.168.42.252 255.255.255.0 192.168.42.255 > # grep dhcpd /etc/rc.conf.local > dhcpd_flags=" -y 192.168.42.252 -Y 192.168.42.251 vr0 " > > dhcpd.conf is the same in server1 and server2 > > TIA, > Regards. > > -- > There's this old saying: "Give a man a fish, feed him for a day. Teach > a man to fish, feed him for life."