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?
To open a terminal session, double-click on "Terminal. app". Inside the Terminal application, the route print command is "netstat -nr". This will display the current routing table for the logged-in user.
Use route -n flush several times . Afterwards add your routes with route add.
Go to System Preference >> Network, and you can "Set Service Order" of the network interfaces and effectively change the default route order in the routing table.
On a Cisco router, the show ip route command is used to display the IPv4 routing table of a router. A router provides additional route information, including how the route was learned, how long the route has been in the table, and which specific interface to use to get to a predefined destination.
On Mac OS X you can use netstat(1)
. In your case, netstat -nr
, probably.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With