logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rtmon - listens to and monitors RTnetlink

Author

rtmon was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.

       This  manual  page was written by Michael Prokop <mika@grml.org>, for the Debian project (but may be used
       by others).

                                                                                                        RTMON(8)

Description

       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.  For example if you
       insert:

       rtmonfile/var/log/rtmon.log

       in a startup script, you will be able to view the full history later.  Certainly, it is possible to start
       rtmon at any time. It prepends the history with the state snapshot dumped at the moment of starting.

Name

       rtmon - listens to and monitors RTnetlink

Options

rtmonsupportsthefollowingoptions:-Version
              Print version and exit.

       help   Show summary of options.

       fileFILE[all|OBJECTS]
              Log  output  to  FILE. OBJECTS 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
              (IP  or  IPv6)  address  on a device, 'route' the routing table entry and 'all' does what the name
              says.

       -family[inet|inet6|link|help]
              Specify protocol family. 'inet' is IPv4, 'inet6' is IPv6, 'link' means that no networking protocol
              is involved and 'help' prints usage information.

       -4     Use IPv4. Shortcut for -family inet.

       -6     Use IPv6. Shortcut for -family inet6.

       -0     Use a special family identifier meaning that no networking  protocol  is  involved.  Shortcut  for
              -family link.

See Also

ip(8) ip-monitor(8)

Synopsis

rtmon [ OPTIONS ] fileFILE[ all | OBJECTS ]

       OPTIONS := { f[amily] { inet | inet6 | link | help } | -4 | -6 | -0 | -V[ersion] }

       OBJECTS:=[link][address][route]

Usage Examples

#rtmonfile/var/log/rtmon.log
              Log to file /var/log/rtmon.log, then run:

       #ipmonitorfile/var/log/rtmon.log
              to display logged output from file.

See Also