Network troubleshooting

Here are some basic commands to trouble shoot networking issues:


ping <hostname>
  • send ICMP ECHO_REQUEST to network hosts
  • ping uses ICMP protocol (ports are only for TCP/UDP)
  • Check to see if a host is reachable from our computer


nmap -PN <hostname> -p <port(s>


netstat [--tcp] -p -l <hostname> 
sudo netstat -tapen | grep ":8000 " # find the process using port 8000
  • Print network connections
  • Find which process is using a certain port number


telnet <hostname> <port>
  • user interface to the TELNET protocol
  • Great for checking if a port is accepting connections
  • Possible to check login and send email through an smtp server


Tagged with: ,
Posted in Linux, Networking

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: