Quickly and simply troubleshoot networks from the command line
I love using command line tools, especially for troubleshooting networking. There are two simple commands you need to know; ipconfig and ping. Here’s a simple guide to finding where the problem :
- Open the command line by opening the “run” dialog box, entering
cmdand clicking OK - Ensure that the TCP/IP service is running by pinging the loopback address like so:
ping 128.0.0.1 - Run the
ipconfigcommand, which should give you information something like this: - If your address is not an APIPA address, ping your IP-address.
- Ping the default gateway
- Ping www.iana.org
- Ping the website or server you are trying to reach
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
If any of the above tests fail, you’ve found where the problem is.
Having once again forgotten most of the commands I use in the command shell in Linux in general and Ubuntu especially, I did a quick google search, which turned up
2008 STFU && RTFM