Back to Lab Listing

Lab Objective:

Learn how to use the ping command and its switches.

Lab Purpose:

Ping is short for Packet Internet Groper. It’s a TCP/IP service that uses ICMP to report on the IP connectivity of network devices. Bear in mind that firewalls and ACLs can block ICMP, so the fact that a ping fails may not indicate that the device is down. You would use ping along with traceroute and other tools.

Lab Tool:

Any Windows PC

Lab Topology:

Please use the following topology to complete this lab exercise. I used a virtual Windows 10 PC running inside VirtualBox, but if you are using Windows, you can use your home PC. Just check your firewall settings don’t block the test.

ping command

Lab Walkthrough:

Task 1:

Pull up a command prompt by typing ‘cmd’ into the search box.

ping command2

Task 2:

At the command prompt, issue the ping /? command. Check your study guide for more information on all the available switches.

ping command3

Task 3:

Ping our website at 101labs.net and note the output. Yours will differ from mine, especially if my site moves hosting companies.

You will see that the URL resolves to an IP address, the ping packet is 32 bytes, the time to live before the packet expires is 235 milliseconds, and the response times range from 363 to 402 ms. Four ping packets were sent, and all four received a response.

ping command4

Task 4:

Find the IP address of your home router, then issue a ping command and repeat it until you stop it with the Ctrl+C keys (ping -t). DO NOT try this at work. DO NOT ping a public IP address, or you may be accused of a hacking attempt. You can find your home router IP through the admin panel or ipconfig /all.

Your home firewall may block this if you have it configured that way.

ping command5

ping command6

Task 5:

Ping 101labs.net again. This time specify five ping packets to be sent (instead of four) and set the packet size to 1500 bytes (instead of the default 32). The command is ping -n 5 -l 1500 101labs.net.

ping command7

Notes:

Ping is a useful troubleshooting tool, but you will often use it in conjunction with other command-line tools to gather information before coming to a conclusion. Many websites and ISPs block ping traffic, so find one on which it works.

Newsletter Subscribe

Stay Informed, Stay Inspired: Subscribe for Cutting-Edge IT-Certification Insights

101 Labs Newsletter