ip-monitor
watches for network state changes in real-time and reports them to stdout
TLDR
SYNOPSIS
ip [options] monitor [all | OBJECT-LIST] [file FILENAME] [label] [all-nsid] [dev DEVICE]
DESCRIPTION
ip monitor watches for network state changes in real-time and reports them to stdout. It uses netlink sockets to receive kernel notifications about network configuration changes.This is useful for debugging network issues, monitoring dynamic changes, and understanding how network configuration evolves over time. Multiple event types can be monitored simultaneously by listing them.
PARAMETERS
all
Monitor all object types (default)link
Monitor link state changesaddress
Monitor address changesroute
Monitor routing table changesmroute
Monitor multicast routing changesneigh
Monitor neighbour/ARP table changesrule
Monitor policy routing rule changesmaddress
Monitor multicast address changesnexthop
Monitor nexthop object changesnetconf, prefix, acaddress, stats, nsid
Monitor per-device configuration, IPv6 prefixes, anycast addresses, statistics and namespace ID changeslabel
Prefix each message with its object type, e.g. [LINK] or [NEIGH]all-nsid
Listen to all network namespaces that have an nsid assigneddev DEVICE
Only print events related to this devicefile FILE
Replay events from file (generated with rtmon)-t, -timestamp
Print a full timestamp on a separate line before each event-ts, -tshort
Print a short ISO-style timestamp on the same line as each event
INSTALL
CAVEATS
Output can be verbose on active systems. Only events occurring after startup are shown; use rtmon started at boot to keep a full history.
HISTORY
ip monitor is part of iproute2, developed by Alexey Kuznetsov. The netlink interface it uses was introduced in Linux 2.2 and has been enhanced in subsequent kernel versions.
