Forrest logo
back to the netstat tool

netstat:tldr:9e738

netstat: List routes and do not resolve IP addresses to hostnames.
$ netstat --route --numeric
try on your machine

The command netstat --route --numeric is used to display the network routing table and show the numeric values instead of resolving hostnames and service names. Here is a breakdown of the different options used in this command:

  • netstat: This is the command-line tool that displays network connections, routing tables, and other network statistics.
  • --route or -r: This option tells netstat to display the routing table.
  • --numeric or -n: This option tells netstat to display IP addresses and port numbers in numerical format instead of resolving them to hostnames and service names.

So, when you run the netstat --route --numeric command, you will see the network routing table showing the source and destination IP addresses, subnets, gateway addresses, and interface information. The IP addresses and port numbers will be displayed in their numeric form.

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 netstat tool