2

This question already has an answer here:

How can I get the routing tables in command line? On a normal unix machine I can use

[user@server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0        0 enp5s0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 enp5s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 enp5s0

On my macbook, this does not work

[user@macbook ~]# > route -n
usage: route [-dnqtv] command [[modifiers] args]

What be the equivilent command?

marked as duplicate by klanomath, nohillside Jan 7 '16 at 19:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

Try

netstat -r

Note that this will resolve the names of the gateways if possible. This takes some time. If you don't need this, run

netstat -rn

Not the answer you're looking for? Browse other questions tagged .