Linux "rtmon" Command Line Options and Examples
listens to and monitors RTnetlink

This manual page documents briefly the rtmon command. rtmon listens on netlink socket and monitors routing table changes. rtmon can be started before the first network configuration command is issued.


rtmon [ options ] file FILE [ all | LISTofOBJECTS ]

Command Line Options:

Print version and Show summary of options.file FILE [ all | LISTofOBJECTS ]Log output to FILE. LISTofOBJECTS is the list of object types that we want to monitor. It may contain'link', 'address', 'route' and 'all'. 'link' specifies the network device, 'address' the protocol (IPor IPv6) address on a device, 'route' the routing table entry and 'all' does what the name says.
rtmon -Version ...
Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link' means that no networking protocol isinvolved and 'help' prints usage information.
rtmon -family ...
Use IPv4. Shortcut for -family inet.
rtmon -4 ...
Use IPv6. Shortcut for -family inet6.
rtmon -6 ...