How to run script on network address change?

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Sun, 20 Jun 2021 13:52:15 UTC
Hi!


I have FreeBSD 13@amd64 router with DHCP client on uplink.

How to run script on IP address change?


I do not see events from devd, only:
!system=IFNET subsystem=em3 type=LINK_DOWN
!system=IFNET subsystem=em3 type=LINK_UP