Re: How to run script on network address change?

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Sun, 20 Jun 2021 19:50:30 +0300
On Sun, 20 Jun 2021 08:42:46 -0600
Ian Lepore <ian_at_freebsd.org> wrote:

> > I have FreeBSD 13_at_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
> > 
> >   
> 
> You could use /etc/dhclient-exit-hooks script to take action after an
> IP address is bound.  See the manpage for dhclient-script for more
> info.


Thanks, I see some forum posts with this.
Received on Sun Jun 20 2021 - 16:50:30 UTC

Original text of this message