Tools for configuring and troubleshooting network connectivity

Putting It All Together

The ping utility is the simplest way of ensuring that you can reach a remote computer. If ping works, you can usually assume the network is configured correctly (or at least correctly enough for the packets to arrive at their destination).

To be sure that everything is configured properly, check whether you can reach the remote machine with either the hostname or the IP address. If you cannot reach it using the hostname but you can with the IP address, the problem is most likely with DNS, so use the dig utility to try that out.

Interestingly enough, if you can reach the remote machine with the hostname, but not with the IP address, this often indicates a DNS problem as well (the entry for that host points to the wrong IP address).

If you cannot connect with either the hostname or IP address, the simplest approach is to start with the local machine and work your way outward.

The first question is whether IP is configured correctly on the local system. To check the IP configuration, use ip addr (or ip a to be even lazier).

Next, you can ping the router to ensure that you are connected to it, and, if that works, ping another address beyond the router to ensure that the router is forwarding packets successfully. If you still haven't identified the problem, traceroute or tracepath should provide clues about where the packets are getting lost.

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content