Remove DHCP (IPv6) stale lease

I temporarily installed a new Micro-SD in one Raspberry Pi 4, with same host name, to troubleshoot some hardware issues. This led OpenWRT to assign a different IPv6 address.

When I had cleared the hardware issue, I installed back the original Micro-SD.

Now the DHCP lease is fine for IPv4, but the IPv6 address is not the current IPv6 address on this RPi4. Since the DNS resolution picks the IPv6 address first, using the host name leads to timeouts. Using the raw IPv4 or IPv6 address works (I can access the RPi4 and everything seems OK).

How can I force the IPv6 lease to terminate, without waiting for 11+ hours, and without disrupting any other IPv6 lease?

1 Like