<< 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/BSD | What it does |
|---|---|---|
ip addr | ifconfig | Show interfaces |
ip route | netstat -rn | Routing table |
ip route get X | route -n get X | Trace route decision |
ip link | ifconfig | Interface state |
ip neigh | arp -a | ARP table |
ss | netstat | Socket stats |
ip netns | — | Namespaces (Linux only) |