LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rtmon

Monitor kernel routing table changes

TLDR

Save all network state changes to a file
$ sudo rtmon file path/to/file
copy
Specify the type of change to log
$ sudo rtmon file link
copy

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
copy
sudo pacman -S iproute2
copy
sudo apk add iproute2
copy
sudo zypper install iproute2
copy
brew install iproute2
copy
nix profile install nixpkgs#iproute2
copy

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)

Copied to clipboard
Kai