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.

macOSroutinggatewaynetstatLow risk
Run `netstat -rn -f inet` to print the numeric IPv4 routing table including default gateway and interfaces.

01Command

Command
$ netstat -rn -f inet

02What 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

RiskLow risk
RequirementsBuilt-in on macOS.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-17 · Category: Network