View the IPv4 Routing Table with netstat -rn
Check which gateway and interface your Mac's traffic actually uses — essential when a VPN changes routes silently.
Run `netstat -rn -f inet` to print the numeric IPv4 routing table including default gateway and interfaces.
01Command
Command
$ netstat -rn -f inet02What it does
The -r flag prints the kernel routing table and -n shows addresses numerically without DNS resolution. Limiting with -f inet keeps the output to IPv4 so the default route is easy to spot; use -f inet6 for IPv6. Look at the 'default' row: its gateway and interface (utun*, en0, etc.) tell you exactly where non-local traffic is being sent, which is the quickest way to verify VPN split tunneling took effect.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- netstat — show network status (macOS)Evidence: Documents -r for the routing table, -n for numeric output, and -f inet to limit to IPv4.
Last verified: 2026-09-17 · Category: Network