Main Menu

Search

LINUX: NETSTAT Command To Check Communication Between Source and Destination IP's / Ports (How To Doc) (Troubleshooting Doc)

Below netstat command can be used.
netstat -ao

below is example output of above command.

# netstat -ao
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       Timer
tcp        0      0 *:768                       *:*                         LISTEN      off (0.00/0/0)
tcp        0      0 testserver03cn01.testingcompany.c:cbt *:*                         LISTEN      off (0.00/0/0)
tcp        0      0 *:teradataordbms            *:*                         LISTEN      off (0.00/0/0)
tcp        0      0 *:ssh                       *:*                         LISTEN      off (0.00/0/0)
tcp        0      0 localhost.localdoma:tambora *:*                         LISTEN      off (0.00/0/0)
tcp        0      0 192.168.21.1:mdc-portmapper 192.168.21.5:nfs            ESTABLISHED off (0.00/0/0)
tcp        0      0 192.168.6.101:792           192.168.6.131:nfs           ESTABLISHED off (0.00/0/0)


Products to which Article Applies

All Linux Operating Systems
 

Additional Reference

https://linux.die.net/man/8/netstat


tarun boyella


No comments:

Post a Comment