In: Computer Science
4. Identify the tool is used with the netstat command to view a system's routing table? Run the identified command and highlight the output of the command with an appropriate result and discussion.
With the help of netstat command, a user can troubleshoot and configure the network. It also works as a monitoring tool for connections over the network. User can find incoming and outgoing connections, port listening, routing tables and usage statistics of a network.
For the example, i am using centos 7.4 Linux OS. Below are the commands we can use in netstat
netstat -a
With this command we can list all listening ports (both TCP and UDP) Below is the output screenshot
Result shows all the listening and established connections by both TCP and UDP ports.
Proto field is for the protocol (TCP or UDP)
Recv-Q is for the received requests and Send-Q is for sending requests
Local address is the port of the service and the ip assigned to it. for localhost it is 0.0.0.0 or localhost
foreign address with which the communication is happening with port and ip
State is the State of connection (whether it is Listening or Established)
Hope this will help you.