A family’s home network is small: two laptops and a printer, all plugged into one switch. Every few weeks, someone says “the printer doesn’t work” or “my laptop can’t see the other one”. Each time, the cause is different.
In this project you are the person they call. For each fault below, you get the same network and a report of what someone typed. Read the clues, decide what is wrong, then check your answer with the questions. Every clue is something you have already met in this module.
The healthy network: laptop-a is 192.168.1.10, laptop-b is 192.168.1.11, the printer is 192.168.1.50, all with /24, on ports 1, 2 and 3 of switch sw1.
Fault 1: “The printer has vanished”
laptop-a’s owner tried to reach the printer, then you asked them to run ip addr on the printer’s little screen.
Fault 1: the printer does not answer at all
-
laptop-a: ping -c 1 192.168.1.50
laptop-a asks who has 192.168.1.50. Watch where the switch sends the question.
- Time
- 0 µs
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- laptop-a ARP cache
- 192.168.1.50: asking (INCOMPLETE)
-
sw1 sends a broadcast out of every other port
sw1 writes down where 02:00:00:00:00:0a is: port 1. The frame is for ff:ff:ff:ff:ff:ff, everyone on the network, so sw1 sends a copy out of every port except the one it came in on (2).
- Time
- 100.512 µs
- Cable
- sw1 2 → laptop-b eth0
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:0a → port 1
-
laptop-a: ARP: who has 192.168.1.50? Tell 192.168.1.10
laptop-a knows the IP address 192.168.1.50 but not its MAC address, so it asks everyone on the network: who has 192.168.1.50?
- Time
- 1 s
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
-
sw1 sends a broadcast out of every other port
The frame is for ff:ff:ff:ff:ff:ff, everyone on the network, so sw1 sends a copy out of every port except the one it came in on (2).
- Time
- 1 s
- Cable
- sw1 2 → laptop-b eth0
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
-
laptop-a: ARP: who has 192.168.1.50? Tell 192.168.1.10
laptop-a knows the IP address 192.168.1.50 but not its MAC address, so it asks everyone on the network: who has 192.168.1.50?
- Time
- 2 s
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
-
sw1 sends a broadcast out of every other port
The frame is for ff:ff:ff:ff:ff:ff, everyone on the network, so sw1 sends a copy out of every port except the one it came in on (2).
- Time
- 2 s
- Cable
- sw1 2 → laptop-b eth0
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
-
Nobody answered: laptop-a gives up on 192.168.1.50
After three questions with no answer, laptop-a stops asking. laptop-a prints: 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
- Time
- 3 s
- laptop-a ARP cache
- 192.168.1.50: nobody answered (FAILED)
-
printer: ip addr
printer runs ip addr.
- Time
- 3 s
The flood reached laptop-b and nobody else: the switch had no cable on port 3. The address was fine all along. Always check the bottom layer first: is it plugged in, and does ip addr say LOWER_UP?
Fault 2: “I printed, and it came out nowhere”
This time ping seems to work. But the printer never prints. You ask laptop-a’s owner to run tcpdump during a ping, then ip neigh.
Fault 2: the ping works, but who answered?
-
laptop-a: tcpdump -n
laptop-a runs tcpdump -n.
- Time
- 0 µs
-
laptop-a: ping -c 1 192.168.1.50
laptop-a runs ping -c 1 192.168.1.50. laptop-a knows the IP address 192.168.1.50 but not its MAC address, so it asks everyone on the network: who has 192.168.1.50?
- Time
- 0 µs
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- laptop-a ARP cache
- 192.168.1.50: asking (INCOMPLETE)
-
sw1 sends a broadcast out of every other port
sw1 writes down where 02:00:00:00:00:0a is: port 1. The frame is for ff:ff:ff:ff:ff:ff, everyone on the network, so sw1 sends a copy out of every port except the one it came in on (2, 3).
- Time
- 100.512 µs
- Cable
- sw1 2 → laptop-b eth0 (+1 more)
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:0a → port 1
-
laptop-b: ARP: 192.168.1.50 is at 02:00:00:00:00:0b
Someone answers the ARP question…
- Time
- 201.024 µs
- Cable
- laptop-b eth0 → sw1 2
- Ethernet
- 02:00:00:00:00:0b → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:0b
- On the wire
- 64 bytes
- laptop-b ARP cache
- 192.168.1.10 is at 02:00:00:00:00:0a
-
printer: ARP: 192.168.1.50 is at 02:00:00:00:00:50
printer answers only the one who asked: 192.168.1.50 is at 02:00:00:00:00:50. printer saves it in its ARP cache: 192.168.1.10 is at 02:00:00:00:00:0a.
- Time
- 201.024 µs
- Cable
- printer eth0 → sw1 3
- Ethernet
- 02:00:00:00:00:50 → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:50
- On the wire
- 64 bytes
- printer ARP cache
- 192.168.1.10 is at 02:00:00:00:00:0a
-
sw1 forwards it out of port 1 only
sw1 writes down where 02:00:00:00:00:0b is: port 2. sw1 knows 02:00:00:00:00:0a is on port 1, so only that port gets the frame.
- Time
- 301.536 µs
- Cable
- sw1 1 → laptop-a eth0
- Ethernet
- 02:00:00:00:00:0b → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:0b
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:0b → port 2
-
sw1 forwards it out of port 1 only
laptop-a keeps the first answer and ignores the second one, which arrives a moment later.
- Time
- 301.536 µs
- Cable
- sw1 1 → laptop-a eth0
- Ethernet
- 02:00:00:00:00:50 → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:50
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:50 → port 3
-
laptop-a: ICMP echo request seq=1 192.168.1.10 → 192.168.1.50
laptop-a sends an ICMP echo request ("are you there?") to 192.168.1.50, in a frame addressed to laptop-b. laptop-a saves it in its ARP cache: 192.168.1.50 is at 02:00:00:00:00:0b.
- Time
- 402.048 µs
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → 02:00:00:00:00:0b
- IP
- 192.168.1.10 → 192.168.1.50
- TTL
- 64
- ICMP
- echo request, seq 1
- On the wire
- 102 bytes
- laptop-a ARP cache
- 192.168.1.50 is at 02:00:00:00:00:0b
-
sw1 forwards it out of port 2 only
sw1 knows 02:00:00:00:00:0b is on port 2, so only that port gets the frame.
- Time
- 502.864 µs
- Cable
- sw1 2 → laptop-b eth0
- Ethernet
- 02:00:00:00:00:0a → 02:00:00:00:00:0b
- IP
- 192.168.1.10 → 192.168.1.50
- TTL
- 64
- ICMP
- echo request, seq 1
- On the wire
- 102 bytes
-
laptop-b: ICMP echo reply seq=1 192.168.1.50 → 192.168.1.10
laptop-b answers with an echo reply.
- Time
- 603.68 µs
- Cable
- laptop-b eth0 → sw1 2
- Ethernet
- 02:00:00:00:00:0b → 02:00:00:00:00:0a
- IP
- 192.168.1.50 → 192.168.1.10
- TTL
- 64
- ICMP
- echo reply, seq 1
- On the wire
- 102 bytes
-
sw1 forwards it out of port 1 only
sw1 knows 02:00:00:00:00:0a is on port 1, so only that port gets the frame.
- Time
- 704.496 µs
- Cable
- sw1 1 → laptop-a eth0
- Ethernet
- 02:00:00:00:00:0b → 02:00:00:00:00:0a
- IP
- 192.168.1.50 → 192.168.1.10
- TTL
- 64
- ICMP
- echo reply, seq 1
- On the wire
- 102 bytes
-
laptop-a receives ICMP echo reply seq=1 192.168.1.50 → 192.168.1.10
laptop-a gets the frame. The reply arrived 0.805 ms after the request left: that is the round-trip time. laptop-a prints: rtt min/avg/max/mdev = 0.805/0.805/0.805/0.000 ms
- Time
- 805.312 µs
- Ethernet
- 02:00:00:00:00:0b → 02:00:00:00:00:0a
- IP
- 192.168.1.50 → 192.168.1.10
- TTL
- 64
- ICMP
- echo reply, seq 1
- On the wire
- 102 bytes
-
laptop-a: tcpdump shows what it saw
laptop-a prints: 5 packets captured
- Time
- 1.805 ms
-
laptop-a: ip neigh
laptop-a runs ip neigh.
- Time
- 1.805 ms
tcpdump printed two ARP replies for one question, with two different MAC addresses. That is the fingerprint of a duplicate IP address. The ping “worked” because laptop-b answered it. The fix is to give laptop-b back its own address, 192.168.1.11. In Module 4 you will see how home routers hand out addresses automatically to stop this happening.
Fault 3: “The printer can hear me but won’t talk back”
The printer’s lights blink when laptop-a pings it, but the ping never gets a reply.
Fault 3: frames go in, nothing comes out
-
laptop-a: ping -c 1 192.168.1.50
laptop-a runs ping -c 1 192.168.1.50. laptop-a knows the IP address 192.168.1.50 but not its MAC address, so it asks everyone on the network: who has 192.168.1.50?
- Time
- 0 µs
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- laptop-a ARP cache
- 192.168.1.50: asking (INCOMPLETE)
-
sw1 sends a broadcast out of every other port
sw1 writes down where 02:00:00:00:00:0a is: port 1. The frame is for ff:ff:ff:ff:ff:ff, everyone on the network, so sw1 sends a copy out of every port except the one it came in on (2, 3).
- Time
- 100.512 µs
- Cable
- sw1 2 → laptop-b eth0 (+1 more)
- Ethernet
- 02:00:00:00:00:0a → ff:ff:ff:ff:ff:ff (broadcast)
- ARP
- who has 192.168.1.50? tell 192.168.1.10
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:0a → port 1
-
printer: ARP: 192.168.1.50 is at 02:00:00:00:00:50
The printer answers the ARP question, so laptop-a can send the ping.
- Time
- 201.024 µs
- Cable
- printer eth0 → sw1 3
- Ethernet
- 02:00:00:00:00:50 → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:50
- On the wire
- 64 bytes
- printer ARP cache
- 192.168.1.10 is at 02:00:00:00:00:0a
-
sw1 forwards it out of port 1 only
sw1 writes down where 02:00:00:00:00:50 is: port 3. sw1 knows 02:00:00:00:00:0a is on port 1, so only that port gets the frame.
- Time
- 301.536 µs
- Cable
- sw1 1 → laptop-a eth0
- Ethernet
- 02:00:00:00:00:50 → 02:00:00:00:00:0a
- ARP
- 192.168.1.50 is at 02:00:00:00:00:50
- On the wire
- 64 bytes
- sw1 MAC table
- learned 02:00:00:00:00:50 → port 3
-
laptop-a: ICMP echo request seq=1 192.168.1.10 → 192.168.1.50
laptop-a sends an ICMP echo request ("are you there?") to 192.168.1.50, in a frame addressed to printer. laptop-a saves it in its ARP cache: 192.168.1.50 is at 02:00:00:00:00:50.
- Time
- 402.048 µs
- Cable
- laptop-a eth0 → sw1 1
- Ethernet
- 02:00:00:00:00:0a → 02:00:00:00:00:50
- IP
- 192.168.1.10 → 192.168.1.50
- TTL
- 64
- ICMP
- echo request, seq 1
- On the wire
- 102 bytes
- laptop-a ARP cache
- 192.168.1.50 is at 02:00:00:00:00:50
-
sw1 forwards it out of port 3 only
sw1 knows 02:00:00:00:00:50 is on port 3, so only that port gets the frame.
- Time
- 502.864 µs
- Cable
- sw1 3 → printer eth0
- Ethernet
- 02:00:00:00:00:0a → 02:00:00:00:00:50
- IP
- 192.168.1.10 → 192.168.1.50
- TTL
- 64
- ICMP
- echo request, seq 1
- On the wire
- 102 bytes
-
printer receives ICMP echo request seq=1 192.168.1.10 → 192.168.1.50
printer gets the frame.
- Time
- 603.68 µs
- Ethernet
- 02:00:00:00:00:0a → 02:00:00:00:00:50
- IP
- 192.168.1.10 → 192.168.1.50
- TTL
- 64
- ICMP
- echo request, seq 1
- On the wire
- 102 bytes
-
laptop-a prints the result
laptop-a prints: 1 packets transmitted, 0 received, 100% packet loss, time 0ms
- Time
- 10 s
-
printer: ip route
printer runs ip route.
- Time
- 10 s
The printer’s subnet mask is wrong: /30 instead of /24. It still answered ARP (it was asked about its own address), but it would not send a reply to an address it thought was not on its own network. Faults like this, where one direction works and the other does not, are among the most confusing on real networks. Lesson 3.2 explains exactly how a device decides what “my network” means.
In the real world
Network engineers fix problems from the bottom up: first the cable or the Wi-Fi signal (ip addr), then the addresses (ip addr, ip neigh), then whether neighbours answer (ping), and only then the programs on top. You just did that three times. Module 8 turns it into a method with more tools.
Time to look back over the whole module before you go on.
Spaced review
This review picks questions for you, so it needs JavaScript.
Recap
NO-CARRIERinip addrmeans no signal on the cable: fix the cable first.- Two ARP replies with different MAC addresses for one question means a duplicate IP address.
- A wrong subnet mask can let frames in while replies never leave.
- Work from the bottom layer up: link, then addresses, then neighbours.
Join the discussion