Watch route and link events

Live stream of route, link, address and neighbor changes. Useful when a link keeps going up and down

ip monitor all

tool
iproute212 commands
tags
iproute2monitoringnetworkdebug

More iproute2 commands

  • bridge fdb show br <name>; bridge link show

    Show the L2 forwarding table (MAC->port) and bridge port states

  • ss -tip state established '( dport = :443 )'

    Show rtt, cwnd and retransmits for each connection to remote port 443. Helps find slow or lossy peers

  • ss -K dst <ip> dport = :8080

    Force-close matching sockets (kernel 4.9+). Needs CONFIG_INET_DIAG_DESTROY

  • ip addr add 10.0.0.5/24 dev <name> && ip addr show dev <name>

    Add a secondary IP with a prefix on the fly. Note: it is not saved after reboot

  • ip link set dev <name> mtu 9000 && ip link set dev <name> up

    Set a jumbo MTU and bring the link up. Note: the MTU must match along the whole path

all 12 iproute2 commands