ip-monitor
watches for network state changes in real-time and reports them to stdout
TLDR
Monitor all network state changes
SYNOPSIS
ip monitor [type] [options]
DESCRIPTION
ip monitor watches for network state changes in real-time and reports them to stdout. It uses netlink sockets to receive kernel notifications about network configuration changes.
This is useful for debugging network issues, monitoring dynamic changes, and understanding how network configuration evolves over time. Multiple event types can be monitored simultaneously.
PARAMETERS
link
Monitor link state changesaddress
Monitor address changesroute
Monitor routing table changesneigh
Monitor neighbour/ARP table changesrule
Monitor policy routing rule changesmaddress
Monitor multicast address changesfile FILE
Replay events from file (generated with rtmon)
CAVEATS
Monitoring requires appropriate privileges to access netlink sockets. Output can be verbose on active systems. Events are reported in real-time but may be buffered.
HISTORY
ip monitor is part of iproute2, developed by Alexey Kuznetsov. The netlink interface it uses was introduced in Linux 2.2 and has been enhanced in subsequent kernel versions.
