On 2022-07-06 21:05 +02, Christer Solskogen <christer.solsko...@gmail.com> wrote: > On Wed, Jul 6, 2022 at 4:47 PM Florian Obser <flor...@openbsd.org> wrote: > >> >> Are you comparing the same thing? I.e. did dhcpleased get a lease before >> and does /var/db/dhcpleased/$IF exist? >> > > Both nodes have /var/db/dhcpleased/$IF. If I reboot both firewalls only the > master have gotten the lease, until I do a switch over. > During a switchover I get this with debug on: > > tugs# dhcpleased -d -v -v > changed iface: re2[3] > state_transition[re2] Down -> Down, timo: -1 > > (when doing the switchover) > > state_transition[re2] Down -> Down, timo: -1 > state_transition[re2] Down -> Rebooting, timo: 1
interface coming up, setting timeout to 1 second > DHCPREQUEST on re2 we are sending DHCPREQUEST > iface_timeout[3]: Rebooting we did not get a DHCPACK within 1 second > state_transition[re2] Rebooting -> Rebooting, timo: 2 setting timeout to 2 seconds > DHCPREQUEST on re2 send another DHCPREQUEST Note that we are sending the DHCPREQUEST immediately and then wait at most 2 seconds. > parse_dhcp, from: 00:02:00:01:00:01, to: ff:ff:ff:ff:ff:ff > parse_dhcp: 79.160.116.238:67 -> 255.255.255.255:68 > .... we probably get a DHCPACK. > > It looks to me that it's rebooting twice? yes, because it didn't get a DHCPACK for the first DHCPREQUEST. Maybe the DHCP server was busy. I'm seeing this with my ISP's CPE once in a while, too. > > What's the correct way of doing this with ifstated? run "ifconfig $IF down" > or "ifconfig $IF delete"? I have no idea, I've never used ifstated. -- I'm not entirely sure you are real.