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 changes
type
Filter by change type (link, address, route)

INSTALL

sudo apt install iproute2
sudo pacman -S iproute2
sudo apk add iproute2
sudo zypper install iproute2
brew install iproute2
nix profile install nixpkgs#iproute2

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)