Bridge FDB and ports iproute2
Inspect L2 forwarding DB (MAC->port) and bridge port states
bridge fdb show br <name>; bridge link show
more iproute2
all 12 commands →
Per-socket TCP internals
ss -tip state established '( dport = :443 )'
Kill sockets by filter
ss -K dst <ip> dport = :8080
Add secondary IP
ip addr add 10.0.0.5/24 dev <name> && ip addr show dev <name>
Set interface MTU
ip link set dev <name> mtu 9000 && ip link set dev <name> up
JSON addr to jq
ip -j a | jq -r '.[] | select(.operstate=="UP") | .ifname + " " + (.addr_info[]?.local // "-")'