Bridge FDB and ports

Inspect L2 forwarding DB (MAC->port) and bridge port states

bridge fdb show br <name>; bridge link show

tool
iproute212 commands
tags
iproute2networktroubleshootingk8s

More iproute2 commands

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

    Show rtt/cwnd/retrans per socket for 443; pinpoint slow/lossy peers

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

    Forcibly 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>

    Assign a secondary IP/prefix live; note: not persisted across reboot

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

    Set jumbo MTU and bring link up; note: path MTU must match end-to-end

  • ip -j a | jq -r '.[] | select(.operstate=="UP") | .ifname + " " + (.addr_info[]?.local // "-")'

    Machine-readable interface dump; list UP links with their local IPs

all 12 iproute2 commands