I have a machine running FreeBSD 12.3 and I am looking for a way to monitor network changes through a shell script, specifically related to the network interfaces.
Some examples of things that I would like to detect are:
Some examples of things that I would like to detect are:
- When a network interface changes status (e.g. from active to no carrier)
- When a new DHCP IP addressed is assigned to a network interface