Basic Network Troubleshooting in Linux

network tools Yoinsights Technologies

Basic Network Troubleshooting command:

  1. ping: Ping sends ICMP “echo” type packets that request a corresponding ICMP “echo-reply” response from the device at the target address.
  2. Using Telnet To Test Network Connectivity: An easy way to tell if a remote server is listening on a specific TCP port is to use the telnet command. By default, telnet will try to connect on TCP port 23, but you can specify other TCP ports by typing them in after the target IP address. HTTP uses TCP port 80, HTTPS uses port 443.

Example of testing server on the TCP port 22 reserved for SSH:

[root@yoinsights ~]#telnet 22

      3. traceroute :  It gives a listing of all the router hops between your server and the target server. This helps you verify that routing over the networks in between is correct.

  •  Traceroute works by sending a UDP packet destined to the target with a TTL of “0”.
  • The first router on the route recognizes that the TTL has already been exceeded and discards or “drops” the packet, but also sends an ICMP “time exceeded” message back to the source.
  • The traceroute program records the IP address of the router that sent the message and knows that that is the first hop on the path to the final destination.
  • The traceroute program tries again, with a TTL of “1”. The first hop, sees nothing wrong with the packet, decrements the TTL to 0 as expected, and forwards the packet to the second hop on the path. Router 2, sees the TTL of “0”, drops the packet and replies with an ICMP time exceeded message.
  • Traceroute now knows the IP address of the second router. This continues around and around until the final destination is reached.

Note: In Linux the traceroute command is “traceroute“. In Windows it is “tracert“.


  1. These are really impressive ideas for Troubleshoot in Linux Networking. You have touched some fastidious factors here. Any way keep up writing.

  2. I blog often and I truly appreciate your content. The article has really peaked my interest. I am going to bookmark your blog and keep checking for new details about once per week. I opted in for your RSS feed as well.

  3. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out much. I hope to give something back and help others like you aided me.

  4. That is the right blog for anyone who wants to find out about this topic. You understand so much its nearly onerous to argue with you (not that I truly would want…HaHa). You definitely put a new spin on a subject thats been written about for years. Nice stuff, just nice!

  5. ” Thanks for every other magnificent article. The place else may just anybody get that type of information in such a perfect method of writing? I have a presentation subsequent week, and I am at the search for such info. “

    • Hi Dani,
      We are glad to help you in your presentation. Subscribe us and don’t miss the new informative updates.

  6. Thanks , I have just been searching for info about this subject for ages and yours is the greatest I’ve discovered till now. But, what about the conclusion? Are you sure about the source?

  7. Magnificent issues altogether, you just gained a emblem new reader. What may you recommend about your publish that you made some days ago? Any certain?

  8. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.

  9. I just want to tell you that I’m all new to blogging and site-building and really liked you’re web page. Probably I’m likely to bookmark your site. You certainly have exceptional article content. Thanks a bunch for sharing with us your blog site.


Please enter your comment!
Please enter your name here