Using netstat command

The netstat command, which is known as network statistics, is a versatile command with lots of features. This command is used to print network connections details, kernel routing table information, interface statistics, open ports, and so on. In this section, we restrict ourselves to the usage of the netstat command to fetch the routing table information only. 

Following are the examples to illustrate the usage of netstat command.

  • Use the netstat command to display the kernel routing table information with the -r option as shown here:
$ netstat -r
  • Use the netstat command to display the kernel routing table information without resolving the hostname or port names as shown here:
$ netstat -anr
netstat is one of the few commands that is available by default on Unix-like operating systems and Windows operating systems as well.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.229.111