Forrest logo
back to the route tool

route:tldr:4de18

route: Display the information of route table.
$ route -n
try on your machine

The "route -n" command is used in Linux and Unix-like operating systems to display the network routing table in a concise, numerical format. Here's a breakdown of the different components of this command:

  • "route" is the actual command itself, used to manipulate the IP routing table.
  • "-n" is an option or switch that specifies the output format should be shown in numbers instead of attempting to resolve host names.

By combining these two elements, "route -n" command provides a list of all the routes present in the routing table, including the destination networks, netmasks, gateway addresses, interface names, and other relevant information. The numerical format helps provide a quick overview of the routing configuration without the need for hostname resolution, making it useful for troubleshooting network connectivity issues.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the route tool