ICMP, ping, and traceroute
On this page
Ping has been your “are you there?” test since Reading a machine’s network settings. A missing answer still leaves several possible causes. Look inside its request, compare different errors, and test whether a page can load while ping stays silent.
Before you start
Section titled “Before you start”Finish The reply must return. Leave machine shells and run netlab reset at the VM prompt if needed. Keep modes off. Open two terminals on laptop. Start each listener before sending from terminal 2; stop it with Ctrl+C after the tests.
Ask for an echo
Section titled “Ask for an echo”ICMP, the Internet Control Message Protocol, carries network reports and diagnostic messages inside IP. An echo request asks the destination to answer; an echo reply is that answer. One ping -c 1 10.77.20.80 produces one of each in this capture. The reply comes from web, not from router answering on web’s behalf.
Start sudo tcpdump -n -i eth0 arp or icmp in terminal 1. In terminal 2 run the normal ping, then the two unused-address tests below. Times and identifiers vary; your number will differ.
Find who reports a failure
Section titled “Find who reports a failure”Run ping -c 1 -W 4 10.77.10.99. The four-second reply timeout allows ARP’s short retry sequence to finish. A one-second timeout can end before this error appears. Laptop prints From 10.77.10.10 … Destination Host Unreachable: laptop itself reports failure. The capture contains only unanswered ARP requests for this attempt. No ICMP error travels on the wire.
Now try ping -c 1 -W 4 10.77.20.99. A real ICMP destination unreachable message, a report that delivery failed, returns from router’s 10.77.10.1 to laptop. Its text names the unused site address. This listener observes router’s report, not its separate site-side ARP attempt. Read the From address and the capture together.
learner@laptop:~$ sudo tcpdump -n -i eth0 arp or icmp[sudo] password for learner: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes15:09:24.524226 ARP, Request who-has 10.77.10.1 tell 10.77.10.10, length 28
15:09:24.524297 ARP, Reply 10.77.10.1 is-at 02:77:10:00:00:01, length 28
15:09:24.524299 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64
15:09:24.524406 IP 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 169, seq 1, length 64
15:09:25.028113 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28
15:09:26.038765 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28
15:09:27.062622 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28
15:09:28.590087 IP 10.77.10.10 > 10.77.20.99: ICMP echo request, id 171, seq 1, length 64
15:09:29.686637 ARP, Request who-has 10.77.10.10 tell 10.77.10.1, length 28
15:09:29.686696 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:10, length 28
15:09:31.638939 IP 10.77.10.1 > 10.77.10.10: ICMP host 10.77.20.99 unreachable, length 92^C11 packets captured
11 packets received by filter
0 packets dropped by kernellearner@laptop:~$ Steps (10)
- Type
sudo tcpdump -n -i eth0 arp or icmp - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes - Terminal 2 finished its tests. Return here and stop the listener with Ctrl+C.
- Output:
15:09:24.524226 ARP, Request who-has 10.77.10.1 tell 10.77.10.10, length 28 15:09:24.524297 ARP, Reply 10.77.10.1 is-at 02:77:10:00:00:01, length 28 15:09:24.524299 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64 15:09:24.524406 IP 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 169, seq 1, length 64 15:09:25.028113 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28 15:09:26.038765 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28 15:09:27.062622 ARP, Request who-has 10.77.10.99 tell 10.77.10.10, length 28 15:09:28.590087 IP 10.77.10.10 > 10.77.20.99: ICMP echo request, id 171, seq 1, length 64 15:09:29.686637 ARP, Request who-has 10.77.10.10 tell 10.77.10.1, length 28 15:09:29.686696 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:10, length 28 15:09:31.638939 IP 10.77.10.1 > 10.77.10.10: ICMP host 10.77.20.99 unreachable, length 92 - Press Ctrl + C
- Output:
11 packets captured 11 packets received by filter 0 packets dropped by kernel
learner@laptop:~$ ping -c 1 10.77.20.80PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data.
64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.326 ms
--- 10.77.20.80 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.326/0.326/0.326/0.000 mslearner@laptop:~$ ping -c 1 -W 4 10.77.10.99PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data.
From 10.77.10.10 icmp_seq=1 Destination Host Unreachable
--- 10.77.10.99 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0mslearner@laptop:~$ ping -c 1 -W 4 10.77.20.99PING 10.77.20.99 (10.77.20.99) 56(84) bytes of data.
From 10.77.10.1 icmp_seq=1 Destination Host Unreachable
--- 10.77.20.99 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0mslearner@laptop:~$ Steps (9)
- Type
ping -c 1 10.77.20.80 - Press Enter
- Output:
PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data. 64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.326 ms --- 10.77.20.80 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.326/0.326/0.326/0.000 ms - Type
ping -c 1 -W 4 10.77.10.99 - Press Enter
- Output:
PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data. From 10.77.10.10 icmp_seq=1 Destination Host Unreachable --- 10.77.10.99 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms - Type
ping -c 1 -W 4 10.77.20.99 - Press Enter
- Output:
PING 10.77.20.99 (10.77.20.99) 56(84) bytes of data. From 10.77.10.1 icmp_seq=1 Destination Host Unreachable --- 10.77.20.99 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
Let a router stop a packet
Section titled “Let a router stop a packet”ping -c 1 -t 1 10.77.20.80 sets the outgoing TTL with -t. Router cannot forward that request with a positive TTL remaining. It returns time exceeded, an ICMP report that the forwarding limit was reached. Then send with -t 2.
Predict: will the request sent with TTL 2 still have TTL 2 when web receives it?
A router error, then a destination answer
- laptop
- router
- web
- TTL 1: laptop to router Captured at laptop:eth0.
- Time exceeded: router to laptop Captured at laptop:eth0.
- TTL 2: laptop to router Captured at laptop:eth0.
- Forwarded: router to web Captured at web:eth0.
- Echo reply: web to router Captured at web:eth0.
- Reply arrives: router to laptop Captured at laptop:eth0.
In the capture6 messages at laptop:eth0 and web:eth0
- 1. TTL 1 Captured at laptop:eth0.
15:09:56.905276 02:77:10:00:00:10 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64 - 2. Time exceeded Captured at laptop:eth0.
15:09:56.905331 02:77:10:00:00:01 > 02:77:10:00:00:10, ethertype IPv4 (0x0800), length 126: 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 92 - 3. TTL 2 Captured at laptop:eth0.
15:09:57.408866 02:77:10:00:00:10 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64 - 4. Forwarded Captured at web:eth0.
15:09:57.408937 02:77:20:00:00:01 > 02:77:20:00:00:80, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64 - 5. Echo reply Captured at web:eth0.
15:09:57.408943 02:77:20:00:00:80 > 02:77:20:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64 - 6. Reply arrives Captured at laptop:eth0.
15:09:57.408946 02:77:10:00:00:01 > 02:77:10:00:00:10, ethertype IPv4 (0x0800), length 98: 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64
ping -c 1 -t 1 10.77.20.80; ping -c 1 -t 2 10.77.20.80, on Ubuntu 24.04.5 LTS; netlab 1.0; tcpdump 4.99.4. The values are the capture's. Six observations across laptop:eth0 and web:eth0 show the router error, then the same second request before and after forwarding, followed by its reply.Steps (6)
- TTL 1. laptop to router. Captured at laptop:eth0. Laptop sends with TTL 1. The next router cannot forward it with a positive TTL remaining.
15:09:56.905276 02:77:10:00:00:10 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64 - Time exceeded. router to laptop. Captured at laptop:eth0. Router returns time exceeded to laptop. This is a new packet reporting why the request stopped.
15:09:56.905331 02:77:10:00:00:01 > 02:77:10:00:00:10, ethertype IPv4 (0x0800), length 126: 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 92 - TTL 2. laptop to router. Captured at laptop:eth0. Laptop sends another echo request, this time with TTL 2.
15:09:57.408866 02:77:10:00:00:10 > 02:77:10:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64 - Forwarded. router to web. Captured at web:eth0. The same request arrives at web with TTL 1. Router used its site interface for this frame.
15:09:57.408937 02:77:20:00:00:01 > 02:77:20:00:00:80, ethertype IPv4 (0x0800), length 98: 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64 - Echo reply. web to router. Captured at web:eth0. Web sends an echo reply with its own starting TTL. The reply needs its own route to laptop.
15:09:57.408943 02:77:20:00:00:80 > 02:77:20:00:00:01, ethertype IPv4 (0x0800), length 98: 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64 - Reply arrives. router to laptop. Captured at laptop:eth0. The reply reaches laptop with TTL lowered by router. The packet names web as its source.
15:09:57.408946 02:77:10:00:00:01 > 02:77:10:00:00:10, ethertype IPv4 (0x0800), length 98: 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64
Check your answer
No. Router lowers it to 1 before forwarding. Web’s reply is another packet with its own starting TTL.
The router has a link address on each network. Its lane represents one device with two interfaces. The second request appears twice because two capture points observed it; those are not two requests sent by laptop.
Read a hop report
Section titled “Read a hop report”Traceroute sends probes with increasing TTLs and uses answers to report responding hops. Run traceroute -n 10.77.20.80; -n keeps addresses numeric. Here the responding hop addresses are 10.77.10.1 and 10.77.20.80.
Start a fresh listener, sudo tcpdump -n -i eth0 icmp or udp, for both TTL tests and traceroute. It labels the probes UDP: small messages of another kind, explained in TCP, UDP, and Ports. The last hop answers with a different error, shown as unreachable. Several probes can be in progress together. The listener shows more probes than the report has hop rows. Keep the printed order. The report describes forward probes, not the return route.
learner@laptop:~$ sudo tcpdump -n -i eth0 icmp or udp[sudo] password for learner: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes15:09:56.905276 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64
15:09:56.905330 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 92
15:09:57.408864 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64
15:09:57.408946 IP 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64
15:09:57.916935 IP 10.77.10.10.40331 > 10.77.20.80.33434: UDP, length 32
15:09:57.916978 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68
15:09:57.916993 IP 10.77.10.10.58018 > 10.77.20.80.33435: UDP, length 32
15:09:57.917006 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68
15:09:57.917012 IP 10.77.10.10.52600 > 10.77.20.80.33436: UDP, length 32
15:09:57.917025 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68
15:09:57.917030 IP 10.77.10.10.49741 > 10.77.20.80.33437: UDP, length 32
15:09:57.917065 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33437 unreachable, length 68
15:09:57.917080 IP 10.77.10.10.43013 > 10.77.20.80.33438: UDP, length 32
15:09:57.917087 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33438 unreachable, length 68
15:09:57.917091 IP 10.77.10.10.35846 > 10.77.20.80.33439: UDP, length 32
15:09:57.917105 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33439 unreachable, length 68
15:09:57.917111 IP 10.77.10.10.60711 > 10.77.20.80.33440: UDP, length 32
15:09:57.917125 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33440 unreachable, length 68
15:09:57.917139 IP 10.77.10.10.56121 > 10.77.20.80.33441: UDP, length 32
15:09:57.917153 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33441 unreachable, length 68
15:09:57.917168 IP 10.77.10.10.41741 > 10.77.20.80.33442: UDP, length 32
15:09:57.917190 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33442 unreachable, length 68
15:09:57.917204 IP 10.77.10.10.53078 > 10.77.20.80.33443: UDP, length 32
15:09:57.917220 IP 10.77.10.10.57245 > 10.77.20.80.33444: UDP, length 32
15:09:57.917239 IP 10.77.10.10.42396 > 10.77.20.80.33445: UDP, length 32
15:09:57.917257 IP 10.77.10.10.51270 > 10.77.20.80.33446: UDP, length 32
15:09:57.917282 IP 10.77.10.10.37558 > 10.77.20.80.33447: UDP, length 32
15:09:57.917306 IP 10.77.10.10.42100 > 10.77.20.80.33448: UDP, length 32
15:09:57.917332 IP 10.77.10.10.50212 > 10.77.20.80.33449: UDP, length 32^C29 packets captured
29 packets received by filter
0 packets dropped by kernellearner@laptop:~$ Steps (10)
- Type
sudo tcpdump -n -i eth0 icmp or udp - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes - Terminal 2 finished its tests. Return here and stop the listener with Ctrl+C.
- Output:
15:09:56.905276 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 169, seq 1, length 64 15:09:56.905330 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 92 15:09:57.408864 IP 10.77.10.10 > 10.77.20.80: ICMP echo request, id 170, seq 1, length 64 15:09:57.408946 IP 10.77.20.80 > 10.77.10.10: ICMP echo reply, id 170, seq 1, length 64 15:09:57.916935 IP 10.77.10.10.40331 > 10.77.20.80.33434: UDP, length 32 15:09:57.916978 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68 15:09:57.916993 IP 10.77.10.10.58018 > 10.77.20.80.33435: UDP, length 32 15:09:57.917006 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68 15:09:57.917012 IP 10.77.10.10.52600 > 10.77.20.80.33436: UDP, length 32 15:09:57.917025 IP 10.77.10.1 > 10.77.10.10: ICMP time exceeded in-transit, length 68 15:09:57.917030 IP 10.77.10.10.49741 > 10.77.20.80.33437: UDP, length 32 15:09:57.917065 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33437 unreachable, length 68 15:09:57.917080 IP 10.77.10.10.43013 > 10.77.20.80.33438: UDP, length 32 15:09:57.917087 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33438 unreachable, length 68 15:09:57.917091 IP 10.77.10.10.35846 > 10.77.20.80.33439: UDP, length 32 15:09:57.917105 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33439 unreachable, length 68 15:09:57.917111 IP 10.77.10.10.60711 > 10.77.20.80.33440: UDP, length 32 15:09:57.917125 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33440 unreachable, length 68 15:09:57.917139 IP 10.77.10.10.56121 > 10.77.20.80.33441: UDP, length 32 15:09:57.917153 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33441 unreachable, length 68 15:09:57.917168 IP 10.77.10.10.41741 > 10.77.20.80.33442: UDP, length 32 15:09:57.917190 IP 10.77.20.80 > 10.77.10.10: ICMP 10.77.20.80 udp port 33442 unreachable, length 68 15:09:57.917204 IP 10.77.10.10.53078 > 10.77.20.80.33443: UDP, length 32 15:09:57.917220 IP 10.77.10.10.57245 > 10.77.20.80.33444: UDP, length 32 15:09:57.917239 IP 10.77.10.10.42396 > 10.77.20.80.33445: UDP, length 32 15:09:57.917257 IP 10.77.10.10.51270 > 10.77.20.80.33446: UDP, length 32 15:09:57.917282 IP 10.77.10.10.37558 > 10.77.20.80.33447: UDP, length 32 15:09:57.917306 IP 10.77.10.10.42100 > 10.77.20.80.33448: UDP, length 32 15:09:57.917332 IP 10.77.10.10.50212 > 10.77.20.80.33449: UDP, length 32 - Press Ctrl + C
- Output:
29 packets captured 29 packets received by filter 0 packets dropped by kernel
learner@laptop:~$ ping -c 1 -t 1 10.77.20.80PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data.
From 10.77.10.1 icmp_seq=1 Time to live exceeded
--- 10.77.20.80 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0mslearner@laptop:~$ ping -c 1 -t 2 10.77.20.80PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data.
64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.109 ms
--- 10.77.20.80 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.109/0.109/0.109/0.000 mslearner@laptop:~$ traceroute -n 10.77.20.80traceroute to 10.77.20.80 (10.77.20.80), 30 hops max, 60 byte packets
1 10.77.10.1 0.051 ms 0.014 ms 0.013 ms
2 10.77.20.80 0.036 ms 0.008 ms 0.014 mslearner@laptop:~$ man -w traceroute/usr/share/man/man1/traceroute.db.1.gzlearner@laptop:~$ Steps (12)
- Type
ping -c 1 -t 1 10.77.20.80 - Press Enter
- Output:
PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data. From 10.77.10.1 icmp_seq=1 Time to live exceeded --- 10.77.20.80 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms - Type
ping -c 1 -t 2 10.77.20.80 - Press Enter
- Output:
PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data. 64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.109 ms --- 10.77.20.80 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.109/0.109/0.109/0.000 ms - Type
traceroute -n 10.77.20.80 - Press Enter
- Output:
traceroute to 10.77.20.80 (10.77.20.80), 30 hops max, 60 byte packets 1 10.77.10.1 0.051 ms 0.014 ms 0.013 ms 2 10.77.20.80 0.036 ms 0.008 ms 0.014 ms - Type
man -w traceroute - Press Enter
- Output:
/usr/share/man/man1/traceroute.db.1.gz
| What was sent | Who answered, with which message | What it shows |
|---|---|---|
| Echo to web | web: echo reply | The echo exchange works |
| Echo to an unused home address | laptop itself: an error printed, nothing on the wire | No neighbor answered ARP |
| Echo to an unused site address | router: destination unreachable | Router could not deliver it |
| Echo with TTL 1 | router: time exceeded | The first router stopped it |
| Echo with TTL 2 | web: echo reply | It crossed one router |
| First traceroute probes | router: time exceeded | The first hop |
| Later traceroute probes | web: destination unreachable | The final hop |
These rows summarize the listener and sender replays. The local-error row is laptop’s own report, with no ICMP message on the wire.
Test the service after silence
Section titled “Test the service after silence”At the VM prompt run netlab break icmp-filtered. This fault drops echo requests at web while leaving its page service running. Enter laptop again.
Predict: will the web page load under this fault?
learner@rootvolt:~$ netlab break icmp-filtered[sudo] password for learner: Fault icmp-filtered applied.learner@rootvolt:~$ netlab statusLab is up. Modes on: none. Fault: icmp-filtered.
MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START
laptop home 10.77.10.10/24 10.77.10.1 same
phone home 10.77.10.11/24 10.77.10.1 same
router home, site 10.77.10.1/24 10.77.20.1/24 - same
web site 10.77.20.80/24 10.77.20.1 same
Switch sw-home (home): laptop, phone, router
Switch sw-site (site): router, web
Services: web http 80, web https 443, web http 8080, web ssh 22learner@rootvolt:~$ Steps (9)
- Type
netlab break icmp-filtered - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
Fault icmp-filtered applied. - Type
netlab status - Press Enter
- Output:
Lab is up. Modes on: none. Fault: icmp-filtered. MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START laptop home 10.77.10.10/24 10.77.10.1 same phone home 10.77.10.11/24 10.77.10.1 same router home, site 10.77.10.1/24 10.77.20.1/24 - same web site 10.77.20.80/24 10.77.20.1 same Switch sw-home (home): laptop, phone, router Switch sw-site (site): router, web Services: web http 80, web https 443, web http 8080, web ssh 22
learner@laptop:~$ ping -c 1 -W 1 10.77.20.80PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data.
--- 10.77.20.80 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0mslearner@laptop:~$ curl -sS http://10.77.20.80/hello.txtHello from web.learner@laptop:~$ Steps (6)
- Type
ping -c 1 -W 1 10.77.20.80 - Press Enter
- Output:
PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data. --- 10.77.20.80 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms - Type
curl -sS http://10.77.20.80/hello.txt - Press Enter
- Output:
Hello from web.
Check your answer
Yes. curl -sS http://10.77.20.80/hello.txt returns Hello from web. The failed echo test did not test this service.
Leave machine shells, then run netlab fix and netlab status from the VM before the exercise.
learner@rootvolt:~$ netlab fix[sudo] password for learner: Fault icmp-filtered removed.learner@rootvolt:~$ netlab statusLab is up. Modes on: none. Fault: none.
MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START
laptop home 10.77.10.10/24 10.77.10.1 same
phone home 10.77.10.11/24 10.77.10.1 same
router home, site 10.77.10.1/24 10.77.20.1/24 - same
web site 10.77.20.80/24 10.77.20.1 same
Switch sw-home (home): laptop, phone, router
Switch sw-site (site): router, web
Services: web http 80, web https 443, web http 8080, web ssh 22learner@rootvolt:~$ Steps (9)
- Type
netlab fix - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
Fault icmp-filtered removed. - Type
netlab status - Press Enter
- Output:
Lab is up. Modes on: none. Fault: none. MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START laptop home 10.77.10.10/24 10.77.10.1 same phone home 10.77.10.11/24 10.77.10.1 same router home, site 10.77.10.1/24 10.77.20.1/24 - same web site 10.77.20.80/24 10.77.20.1 same Switch sw-home (home): laptop, phone, router Switch sw-site (site): router, web Services: web http 80, web https 443, web http 8080, web ssh 22
Mistakes to recognize
Section titled “Mistakes to recognize”“No ping reply means the machine is off.” The file still loads.
“Traceroute shows the reply path.” It reports answers to forward probes, not that reverse path.
Good to know
Section titled “Good to know”Networks may deliberately filter ICMP. Silence is not proof of an absent host; Host discovery in Network Scanning and Enumeration returns to that security consequence.
Try it yourself
Section titled “Try it yourself”From phone, predict what three tests prove: ping -c 1 10.77.10.1, ping -c 1 10.77.20.80, and ping -c 1 -W 4 10.77.10.99. Run them and compare. State one conclusion each result cannot support.
Solution
learner@phone:~$ ping -c 1 10.77.10.1PING 10.77.10.1 (10.77.10.1) 56(84) bytes of data.
64 bytes from 10.77.10.1: icmp_seq=1 ttl=64 time=0.118 ms
--- 10.77.10.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.118/0.118/0.118/0.000 mslearner@phone:~$ ping -c 1 10.77.20.80PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data.
64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.338 ms
--- 10.77.20.80 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.338/0.338/0.338/0.000 mslearner@phone:~$ ping -c 1 -W 4 10.77.10.99PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data.
From 10.77.10.11 icmp_seq=1 Destination Host Unreachable
--- 10.77.10.99 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0mslearner@phone:~$ Steps (9)
- Type
ping -c 1 10.77.10.1 - Press Enter
- Output:
PING 10.77.10.1 (10.77.10.1) 56(84) bytes of data. 64 bytes from 10.77.10.1: icmp_seq=1 ttl=64 time=0.118 ms --- 10.77.10.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.118/0.118/0.118/0.000 ms - Type
ping -c 1 10.77.20.80 - Press Enter
- Output:
PING 10.77.20.80 (10.77.20.80) 56(84) bytes of data. 64 bytes from 10.77.20.80: icmp_seq=1 ttl=63 time=0.338 ms --- 10.77.20.80 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.338/0.338/0.338/0.000 ms - Type
ping -c 1 -W 4 10.77.10.99 - Press Enter
- Output:
PING 10.77.10.99 (10.77.10.99) 56(84) bytes of data. From 10.77.10.11 icmp_seq=1 Destination Host Unreachable --- 10.77.10.99 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
The first two answer; they do not prove a page service works. Phone itself reports the last failure from 10.77.10.11; it does not prove every other destination is absent.
- Separate a local report from a received ICMP error.
- Use TTL answers as evidence about forward hops.
- Test the intended service when echo is silent.
Next, Practice: Reaching Another Device diagnoses a broken next hop.
Further reading
Section titled “Further reading”- RFC 792: ICMP message formats.
- Ubuntu traceroute manual, matching the installed
traceroute.db.1manual located in the replay.