Date: Sun, 20 Jun 2021 19:50:30 +0300 From: Rozhuk Ivan <rozhuk.im@gmail.com> To: Ian Lepore <ian@freebsd.org> Cc: freebsd-net@freebsd.org, freebsd-hackers@FreeBSD.org Subject: Re: How to run script on network address change? Message-ID: <20210620195030.7ddad8b9@rimwks.local> In-Reply-To: <29b67c76692658ba3618a2b1f9d62a7b77501247.camel@freebsd.org> References: <20210620165215.0f3dd15c@rimwks.local> <29b67c76692658ba3618a2b1f9d62a7b77501247.camel@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Jun 2021 08:42:46 -0600 Ian Lepore <ian@freebsd.org> wrote: > > 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 > > > > > > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210620195030.7ddad8b9>