rtmon
Monitor kernel routing table changes
TLDR
Save all network state changes to a file
$ sudo rtmon file path/to/file
Specify the type of change to log$ sudo rtmon file link
SYNOPSIS
rtmon [options] file path
DESCRIPTION
rtmon monitors and records network state changes to a file. It captures link changes, address modifications, and routing table updates for later analysis.
The output can be replayed or analyzed to understand network configuration history.
PARAMETERS
file path
Output file for network state changestype
Filter by change type (link, address, route)
CAVEATS
Requires root privileges. Output file can grow large over time with frequent changes.
HISTORY
Part of iproute2 package, providing network monitoring and logging capabilities.
SEE ALSO
ip(8), ip-monitor(8)
