<< My macOS net cheatsheet

macOS networking is way more locked down. No namespaces, limited interface creation, no raw access to a lot of stuff without kernel extensions (which Apple is killing off). the following is an oversimplified cheatsheet. might be extended in the future.

Linux (iproute2)macOS/BSDWhat it does
ip addrifconfigShow interfaces
ip routenetstat -rnRouting table
ip route get Xroute -n get XTrace route decision
ip linkifconfigInterface state
ip neigharp -aARP table
ssnetstatSocket stats
ip netnsNamespaces (Linux only)