LinuxCommandLibrary

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)

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community