When I type `route -n` into the Mac terminal, why doesn't it show a routing table? [closed]

StackOverflow https://stackoverflow.com/questions/18497905

سؤال

I read in "TCP/IP Network Administration" by O'Reilly, 2002, that typing the route -n command should bring up a routing table.

When I typed it into the terminal on a Mac, it returned the following:

usage: route [-dnqtv] command [[modifiers] args]

What is the correct command to use to see the routing table in my terminal?

هل كانت مفيدة؟

المحلول

On Mac OS X you can use netstat(1). In your case, netstat -nr, probably.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top