working. Depending on the command, you might also receive information
that helps you find and troubleshoot slow network problems.
You just used the first tool, ping, and its IPv6 version, ping6. These
commands send a request to the specified network host (another computer
that you specify on the same network), and if that computer receives the
message, it sends a response. It is recommended that you use the -c option
followed by a number to limit the number of times the ping request is made.
If that number is not stated, ping continues to make requests until you use
Ctrl+C to stop the process. Here is an example, which is useful for
determining whether your local connection is working:
Click here to view code image
matthew@seymour:~$ ping -c 3 google.com
PING google.com (74.125.225.103) 56(84) bytes of data.
64 bytes from ord08s08-in-f7.1e100.net (74.125.225.103): icmp_req=1
ttl=53 time=22.0 ms
64 bytes from ord08s08-in-f7.1e100.net (74.125.225.103): icmp_req=2
ttl=53 time=20.1 ms
64 bytes from ord08s08-in-f7.1e100.net (74.125.225.103): icmp_req=3
ttl=53 time=21.0 ms
--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 20.111/21.097/22.085/0.814 ms
The second tool, traceroute (along with its IPv6 version
traceroute6), tracks the route that packets take on an IP network from the
local computer to the network host specified. The traceroute6 tool is
intended for use with IPv6, although it isn’t necessary unless you want to
force the command to trace using only IPv6—otherwise traceroute tries
to resolve the name given and automatically uses whichever protocol is most
appropriate. Here is an example:
Click here to view code image
matthew@seymour:~$ traceroute google.com
traceroute to google.com (74.125.225.99), 30 hops max, 60 byte
packets
1 Cisco02420 (192.168.1.1) 0.149 ms 0.181 ms 0.304 ms
2 10.2.0.1 (10.2.0.1) 3.190 ms 3.227 ms 3.217 ms
3 65.201.51.216.sta.southslope.net (216.51.201.65) 3.397 ms 3.611
ms 3.720 ms
4 ss-dsl-sec1.nl.southslope.net (167.142.151.30) 3.622 ms 3.637
ms 3.649 ms
5 167.142.50.13 (167.142.50.13) 6.660 ms 6.665 ms 6.678 ms
6 ins-dc2-et-8-4.desm.netins.net (167.142.67.17) 6.599 ms 6.503
ms 7.482 ms