Top

The basics of using the ping program

December 18, 2007

So some of you may have heard your local technician or your IT administrator at work use the term ‘Ping’. So whats it mean and how can you use it.

Firstly ping is a small program that runs in DOS or a command prompt from Windows or from a command line interface in Linux or Unix.

Ping when used allows you to send a small message to another device on your network or on a remote network such as the internet. You are sending this message to the devices IP Address. (each network device has an address called its IP address) See my previous post on IP Addresses

If your network is working properly you should be able to receive a reply from the machine that you sent the message to, this will then tell you that your connection to that remote device is intact.

So when will the ping program be useful, well lets say for instance you go to access your broadband internet and it doesn’t appear to work, you open your browser and your internet site does not display. The ping program can tell you if you have access to your broadband modem and also tell you if you can ping the outside world (internet).

OK so how do we use the ping program. In Windows we need to open a command prompt. To do this for Windows XP and Vista you will need to go to the start button and choose run and then type cmd and then press OK or enter. For windows 98 or millenium you will need to go to start and run and type command and then press OK or enter. (See picture below)

Run Command
Run Command

So once you hit OK you will see a command prompt box appear as in the picture below

Command Prompt
Command Prompt

So now we need to ping one or two things to see if we have access or not. So what ip address or addresses do we ping.

In the command prompt above I have typed ipconfig, this command will give you your ip address, default gateway and subnet mask as shown in the image below.

Ipconfig
Ipconfig

So it is the default gateway on your PC that I would like you to ping first. So I’m going to type ping 192.168.1.1 and you will need to replace the 192.168.1.1 with whatever your IP address is, so the command is;

ping 192.168.1.1

You should see 4 replies if you are connected to your broadband modem as in the image below. If you receive the replies from your default gateway the next step is to ping an Ip address from the internet and then finally a domain name on the internet. In the sample below I have pinged yahoo.com’s ip address and then their domain name.

So it’s ping 216.109.112.135 and then ping yahoo.com.

Using the ping command
Pinging IP address

So to wrap up, we have learnt

1. How to find find our own ip address and default gateway.

2. The usefulness of the ping command to see if we are connected to our broadband modem and or the internet.

3. How to ping our default gateway and a device on the internet such as yahoo.com’s servers.

Comments

Got something to say?





Bottom