Skip to content

When configuration fails

Module
Getting Network Settings Automatically
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.0, GNU Bash 5.2.21, dhcpcd 10.0.6, tcpdump 4.99.4
On this page

“It says connected, but nothing works.” A link can be up while configuration is missing, incorrect, or duplicated. Read the settings and test a local and remote destination. Each fault leaves a different deciding observation.

Finish Leases, renewals, and options. Stop listeners and clients. Leave machine shells, then run netlab reset from the VM. Keep dhcp on and other modes off. Apply one fault at a time. Open fresh tablet shells after each repair.

At the VM prompt apply netlab break dhcp-off. Open two tablet terminals. In terminal 1 use the filtered DHCP listener from The initial lease exchange. It selects port 67 or port 68 and prints each message’s address and named type. Start sudo dhcpcd -4 eth0 in terminal 2. Read the address and routes, then test phone and web as shown.

When no server answers — listener
learner@tablet:~$ sudo tcpdump -l -n -v -i eth0 port 67 or port 68 | grep -E ' > |DHCP-Message|Server-ID \(54\), length 4:'[sudo] password for learner: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, Flags [none]
	    DHCP-Message (53), length 1: Discover
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, secs 4, Flags [none]
	    DHCP-Message (53), length 1: Discover
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, secs 12, Flags [none]
	    DHCP-Message (53), length 1: Discover^C3 packets captured
3 packets received by filter
0 packets dropped by kernellearner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. The focused DHCP listener shows repeated Discovers without a server reply.
Steps (10)
  1. Type sudo tcpdump -l -n -v -i eth0 port 67 or port 68 | grep -E ' > |DHCP-Message|Server-ID \(54\), length 4:'
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  7. The second terminal finished. Return here and press Ctrl+C to stop listening.
  8. Output: 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, Flags [none] DHCP-Message (53), length 1: Discover 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, secs 4, Flags [none] DHCP-Message (53), length 1: Discover 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 02:77:10:00:01:00, length 343, xid 0xbb2137f3, secs 12, Flags [none] DHCP-Message (53), length 1: Discover
  9. Press Ctrl + C
  10. Output: 3 packets captured 3 packets received by filter 0 packets dropped by kernel
When no server answers — client
learner@tablet:~$ sudo dhcpcd -4 eth0[sudo] password for learner: dhcpcd-10.0.6 starting
network namespace: tablet
eth0: soliciting a DHCP lease
eth0: probing for an IPv4LL address
eth0: using IPv4LL address 169.254.204.105
eth0: adding route to 169.254.0.0/16
eth0: adding default routelearner@tablet:~$ ip -4 address show eth08: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home
    inet 169.254.204.105/16 brd 169.254.255.255 scope global noprefixroute eth0
       valid_lft forever preferred_lft foreverlearner@tablet:~$ ip routedefault dev eth0 scope link src 169.254.204.105 metric 1001008 
169.254.0.0/16 dev eth0 scope link src 169.254.204.105 metric 1008 learner@tablet:~$ ping -c 1 -W 1 10.77.10.11PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data.

--- 10.77.10.11 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0mslearner@tablet:~$ 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@tablet:~$ sudo dhcpcd -4 -k eth0sending signal ALRM to pid 192
waiting for pid 192 to exitlearner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Read the fallback address and routes, then test phone and web.
Steps (21)
  1. Type sudo dhcpcd -4 eth0
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: dhcpcd-10.0.6 starting network namespace: tablet eth0: soliciting a DHCP lease eth0: probing for an IPv4LL address eth0: using IPv4LL address 169.254.204.105 eth0: adding route to 169.254.0.0/16 eth0: adding default route
  7. Type ip -4 address show eth0
  8. Press Enter
  9. Output: 8: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home inet 169.254.204.105/16 brd 169.254.255.255 scope global noprefixroute eth0 valid_lft forever preferred_lft forever
  10. Type ip route
  11. Press Enter
  12. Output: default dev eth0 scope link src 169.254.204.105 metric 1001008 169.254.0.0/16 dev eth0 scope link src 169.254.204.105 metric 1008
  13. Type ping -c 1 -W 1 10.77.10.11
  14. Press Enter
  15. Output: PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data. --- 10.77.10.11 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms
  16. Type ping -c 1 -W 1 10.77.20.80
  17. Press Enter
  18. 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
  19. Type sudo dhcpcd -4 -k eth0
  20. Press Enter
  21. Output: sending signal ALRM to pid 192 waiting for pid 192 to exit

The client reports probing for an IPv4LL address, then uses 169.254.204.105/16. That is self-assigned, not a lease from router. Your number will differ. It installs 169.254.0.0/16 and a default route directly over the link. Both tests fail despite those routes. Special-purpose addresses explains the range and its limits.

Microsoft calls this Windows fallback APIPA, Automatic Private IP Addressing: see Microsoft’s APIPA page. RFC 3927, Dynamic Configuration of IPv4 Link-Local Addresses, defines communication on the same link. The replay establishes the lab client’s behavior.

Stop listening, release the client, leave both shells, and run netlab fix from the VM. Rebuilding leaves tablet without a lease. In a fresh tablet shell run sudo dhcpcd -4 eth0 again, read the route, and test web.

Remove dhcp-off and rejoin
learner@rootvolt:~$ netlab fix[sudo] password for learner: Fault dhcp-off removed.learner@rootvolt:~$ netlab shell tabletlearner@tablet:~$ ip -4 address show eth0learner@tablet:~$ sudo dhcpcd -4 eth0[sudo] password for learner: dhcpcd-10.0.6 starting
network namespace: tablet
eth0: soliciting a DHCP lease
eth0: offered 10.77.10.105 from 10.77.10.1
eth0: probing address 10.77.10.105/24
eth0: leased 10.77.10.105 for 43200 seconds
eth0: adding route to 10.77.10.0/24
eth0: adding default route via 10.77.10.1learner@tablet:~$ ip routedefault via 10.77.10.1 dev eth0 proto dhcp src 10.77.10.105 metric 1020 
10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1020 learner@tablet:~$ ping -c 1 -W 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.116 ms

--- 10.77.20.80 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.116/0.116/0.116/0.000 mslearner@tablet:~$ sudo dhcpcd -4 -k eth0sending signal ALRM to pid 346
waiting for pid 346 to exitlearner@tablet:~$ exitlogoutlearner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Remove dhcp-off, inspect the rebuilt tablet, rejoin, and verify a reply from web.
Steps (28)
  1. Type netlab fix
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: Fault dhcp-off removed.
  7. Type netlab shell tablet
  8. Press Enter
  9. Type ip -4 address show eth0
  10. Press Enter
  11. Type sudo dhcpcd -4 eth0
  12. Press Enter
  13. Output: [sudo] password for learner:
  14. Type the password (the terminal shows nothing)
  15. Press Enter
  16. Output: dhcpcd-10.0.6 starting network namespace: tablet eth0: soliciting a DHCP lease eth0: offered 10.77.10.105 from 10.77.10.1 eth0: probing address 10.77.10.105/24 eth0: leased 10.77.10.105 for 43200 seconds eth0: adding route to 10.77.10.0/24 eth0: adding default route via 10.77.10.1
  17. Type ip route
  18. Press Enter
  19. Output: default via 10.77.10.1 dev eth0 proto dhcp src 10.77.10.105 metric 1020 10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1020
  20. Type ping -c 1 -W 1 10.77.20.80
  21. Press Enter
  22. 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.116 ms --- 10.77.20.80 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.116/0.116/0.116/0.000 ms
  23. Type sudo dhcpcd -4 -k eth0
  24. Press Enter
  25. Output: sending signal ALRM to pid 346 waiting for pid 346 to exit
  26. Type exit
  27. Press Enter
  28. Output: logout

Separate a wrong gateway from a missing lease

Section titled “Separate a wrong gateway from a missing lease”

Apply netlab break dhcp-wrong-gateway from the VM. In terminal 1 on tablet obtain a lease with sudo dhcpcd -4 eth0. Wait a few seconds for address probes to finish, then start sudo tcpdump -n -i eth0 arp or icmp. Terminal 2 runs sudo ip neigh flush dev eth0, reads settings, and tests phone and web.

Predict: With a wrong gateway, can tablet still reach phone?

A lease with the wrong gateway — listener
learner@tablet:~$ sudo dhcpcd -4 eth0[sudo] password for learner: dhcpcd-10.0.6 starting
network namespace: tablet
eth0: soliciting a DHCP lease
eth0: offered 10.77.10.105 from 10.77.10.1
eth0: probing address 10.77.10.105/24
eth0: leased 10.77.10.105 for 43200 seconds
eth0: adding route to 10.77.10.0/24
eth0: adding default route via 10.77.10.254learner@tablet:~$ sleep 6learner@tablet:~$ sudo tcpdump -n -i eth0 arp or icmptcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes12:36:04.979400 ARP, Request who-has 10.77.10.11 tell 10.77.10.105, length 28
12:36:04.979472 ARP, Reply 10.77.10.11 is-at 02:77:10:00:00:11, length 28
12:36:04.979475 IP 10.77.10.105 > 10.77.10.11: ICMP echo request, id 207, seq 1, length 64
12:36:04.979596 IP 10.77.10.11 > 10.77.10.105: ICMP echo reply, id 207, seq 1, length 64
12:36:05.483944 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28
12:36:06.515907 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28
12:36:07.539915 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28^C7 packets captured
7 packets received by filter
0 packets dropped by kernellearner@tablet:~$ sudo dhcpcd -4 -k eth0sending signal ALRM to pid 180
waiting for pid 180 to exitlearner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. After obtaining the lease, listen to local delivery and attempts to find the advertised gateway.
Steps (18)
  1. Type sudo dhcpcd -4 eth0
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: dhcpcd-10.0.6 starting network namespace: tablet eth0: soliciting a DHCP lease eth0: offered 10.77.10.105 from 10.77.10.1 eth0: probing address 10.77.10.105/24 eth0: leased 10.77.10.105 for 43200 seconds eth0: adding route to 10.77.10.0/24 eth0: adding default route via 10.77.10.254
  7. Type sleep 6
  8. Press Enter
  9. Type sudo tcpdump -n -i eth0 arp or icmp
  10. Press Enter
  11. Output: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  12. The second terminal finished. Return here and press Ctrl+C to stop listening.
  13. Output: 12:36:04.979400 ARP, Request who-has 10.77.10.11 tell 10.77.10.105, length 28 12:36:04.979472 ARP, Reply 10.77.10.11 is-at 02:77:10:00:00:11, length 28 12:36:04.979475 IP 10.77.10.105 > 10.77.10.11: ICMP echo request, id 207, seq 1, length 64 12:36:04.979596 IP 10.77.10.11 > 10.77.10.105: ICMP echo reply, id 207, seq 1, length 64 12:36:05.483944 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28 12:36:06.515907 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28 12:36:07.539915 ARP, Request who-has 10.77.10.254 tell 10.77.10.105, length 28
  14. Press Ctrl + C
  15. Output: 7 packets captured 7 packets received by filter 0 packets dropped by kernel
  16. Type sudo dhcpcd -4 -k eth0
  17. Press Enter
  18. Output: sending signal ALRM to pid 180 waiting for pid 180 to exit
A lease with the wrong gateway — client
learner@tablet:~$ sudo ip neigh flush dev eth0[sudo] password for learner: learner@tablet:~$ ip -4 address show eth08: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home
    inet 10.77.10.105/24 brd 10.77.10.255 scope global dynamic noprefixroute eth0
       valid_lft 43189sec preferred_lft 37789seclearner@tablet:~$ ip routedefault via 10.77.10.254 dev eth0 proto dhcp src 10.77.10.105 metric 1008 
10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1008 learner@tablet:~$ ping -c 1 -W 1 10.77.10.11PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data.
64 bytes from 10.77.10.11: icmp_seq=1 ttl=64 time=0.304 ms

--- 10.77.10.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.304/0.304/0.304/0.000 mslearner@tablet:~$ 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@tablet:~$ ip neigh show 10.77.10.25410.77.10.254 dev eth0 INCOMPLETE learner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. A valid lease coexists with default via 10.77.10.254 and an unresolved next hop.
Steps (20)
  1. Type sudo ip neigh flush dev eth0
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type ip -4 address show eth0
  7. Press Enter
  8. Output: 8: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home inet 10.77.10.105/24 brd 10.77.10.255 scope global dynamic noprefixroute eth0 valid_lft 43189sec preferred_lft 37789sec
  9. Type ip route
  10. Press Enter
  11. Output: default via 10.77.10.254 dev eth0 proto dhcp src 10.77.10.105 metric 1008 10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1008
  12. Type ping -c 1 -W 1 10.77.10.11
  13. Press Enter
  14. Output: PING 10.77.10.11 (10.77.10.11) 56(84) bytes of data. 64 bytes from 10.77.10.11: icmp_seq=1 ttl=64 time=0.304 ms --- 10.77.10.11 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.304/0.304/0.304/0.000 ms
  15. Type ping -c 1 -W 1 10.77.20.80
  16. Press Enter
  17. 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
  18. Type ip neigh show 10.77.10.254
  19. Press Enter
  20. Output: 10.77.10.254 dev eth0 INCOMPLETE
Check your answer

Yes. Phone is local and answers. The default route names 10.77.10.254. ARP asks for that address without an answer; its neighbor entry says INCOMPLETE. This next hop cannot deliver the request to web.

Compare Practice: Reaching Another Device: here the wrong value arrived automatically. Stop listening, release the client, then run netlab fix from the VM and rejoin as before.

Apply netlab break address-conflict from the VM. Phone takes laptop’s address. Tablet’s own lease is not the fault; it observes two other machines. Obtain a lease, wait for its probes to finish, then run sudo tcpdump -n -i eth0 arp and host 10.77.10.10. The address filter keeps this conflict in view.

In terminal 2 clear tablet’s neighbor entries, ping 10.77.10.10 once, then read ip neigh show 10.77.10.10. Also test web. One broadcast question receives replies from both 02:77:10:00:00:10 and 02:77:10:00:00:11. Both claim the same IPv4 address. A successful ping does not establish which owner will receive the next request.

Observe an address conflict — listener
learner@tablet:~$ sudo dhcpcd -4 eth0[sudo] password for learner: dhcpcd-10.0.6 starting
network namespace: tablet
eth0: soliciting a DHCP lease
eth0: offered 10.77.10.105 from 10.77.10.1
eth0: probing address 10.77.10.105/24
eth0: leased 10.77.10.105 for 43200 seconds
eth0: adding route to 10.77.10.0/24
eth0: adding default route via 10.77.10.1learner@tablet:~$ sleep 6learner@tablet:~$ sudo tcpdump -n -i eth0 arp and host 10.77.10.10tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes12:35:01.315520 ARP, Request who-has 10.77.10.10 tell 10.77.10.105, length 28
12:35:01.315595 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:11, length 28
12:35:01.315596 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:10, length 28
12:35:06.487360 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28
12:35:06.487400 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28
12:35:08.694310 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28
12:35:08.694382 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28
12:35:13.477658 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28
12:35:13.477718 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28
12:35:18.517363 ARP, Request who-has 10.77.10.10 tell 10.77.10.105, length 28
12:35:18.517499 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:11, length 28^C11 packets captured
11 packets received by filter
0 packets dropped by kernellearner@tablet:~$ sudo dhcpcd -4 -k eth0sending signal ALRM to pid 182
waiting for pid 182 to exitlearner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. One ARP question for 10.77.10.10 receives answers from two different MAC addresses.
Steps (18)
  1. Type sudo dhcpcd -4 eth0
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Output: dhcpcd-10.0.6 starting network namespace: tablet eth0: soliciting a DHCP lease eth0: offered 10.77.10.105 from 10.77.10.1 eth0: probing address 10.77.10.105/24 eth0: leased 10.77.10.105 for 43200 seconds eth0: adding route to 10.77.10.0/24 eth0: adding default route via 10.77.10.1
  7. Type sleep 6
  8. Press Enter
  9. Type sudo tcpdump -n -i eth0 arp and host 10.77.10.10
  10. Press Enter
  11. Output: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  12. The second terminal finished. Return here and press Ctrl+C to stop listening.
  13. Output: 12:35:01.315520 ARP, Request who-has 10.77.10.10 tell 10.77.10.105, length 28 12:35:01.315595 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:11, length 28 12:35:01.315596 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:10, length 28 12:35:06.487360 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28 12:35:06.487400 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28 12:35:08.694310 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28 12:35:08.694382 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28 12:35:13.477658 ARP, Request who-has 10.77.10.105 tell 10.77.10.10, length 28 12:35:13.477718 ARP, Reply 10.77.10.105 is-at 02:77:10:00:01:00, length 28 12:35:18.517363 ARP, Request who-has 10.77.10.10 tell 10.77.10.105, length 28 12:35:18.517499 ARP, Reply 10.77.10.10 is-at 02:77:10:00:00:11, length 28
  14. Press Ctrl + C
  15. Output: 11 packets captured 11 packets received by filter 0 packets dropped by kernel
  16. Type sudo dhcpcd -4 -k eth0
  17. Press Enter
  18. Output: sending signal ALRM to pid 182 waiting for pid 182 to exit
Observe an address conflict — client
learner@tablet:~$ sudo ip neigh flush dev eth0[sudo] password for learner: learner@tablet:~$ ip -4 address show eth08: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home
    inet 10.77.10.105/24 brd 10.77.10.255 scope global dynamic noprefixroute eth0
       valid_lft 43189sec preferred_lft 37789seclearner@tablet:~$ ip routedefault via 10.77.10.1 dev eth0 proto dhcp src 10.77.10.105 metric 1008 
10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1008 learner@tablet:~$ ping -c 1 -W 1 10.77.10.10PING 10.77.10.10 (10.77.10.10) 56(84) bytes of data.
64 bytes from 10.77.10.10: icmp_seq=1 ttl=64 time=0.245 ms

--- 10.77.10.10 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.245/0.245/0.245/0.000 mslearner@tablet:~$ ip neigh show 10.77.10.10 # after both replies10.77.10.10 dev eth0 lladdr 02:77:10:00:00:11 REACHABLE learner@tablet:~$ ping -c 1 -W 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.158 ms

--- 10.77.20.80 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.158/0.158/0.158/0.000 mslearner@tablet:~$ sleep 1learner@tablet:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Tablet's own settings are correct, and both its local and remote tests answer.
Steps (23)
  1. Type sudo ip neigh flush dev eth0
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type ip -4 address show eth0
  7. Press Enter
  8. Output: 8: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home inet 10.77.10.105/24 brd 10.77.10.255 scope global dynamic noprefixroute eth0 valid_lft 43189sec preferred_lft 37789sec
  9. Type ip route
  10. Press Enter
  11. Output: default via 10.77.10.1 dev eth0 proto dhcp src 10.77.10.105 metric 1008 10.77.10.0/24 dev eth0 proto dhcp scope link src 10.77.10.105 metric 1008
  12. Type ping -c 1 -W 1 10.77.10.10
  13. Press Enter
  14. Output: PING 10.77.10.10 (10.77.10.10) 56(84) bytes of data. 64 bytes from 10.77.10.10: icmp_seq=1 ttl=64 time=0.245 ms --- 10.77.10.10 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.245/0.245/0.245/0.000 ms
  15. Type ip neigh show 10.77.10.10 # after both replies
  16. Press Enter
  17. Output: 10.77.10.10 dev eth0 lladdr 02:77:10:00:00:11 REACHABLE
  18. Type ping -c 1 -W 1 10.77.20.80
  19. Press Enter
  20. 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.158 ms --- 10.77.20.80 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.158/0.158/0.158/0.000 ms
  21. Type sleep 1
  22. Press Enter
  23. The third terminal read the neighbor table between requests from laptop and phone.

To see the neighbor entry change as well, use a third terminal at the VM prompt:

  1. Enter laptop, clear its neighbor entries, and ping tablet’s leased address. Use your own address reading; your number will differ.
  2. Exit and read tablet’s neighbor entry from the VM with netlab shell tablet -- ip neigh show 10.77.10.10.
  3. Repeat the first step on phone, then read tablet’s entry again. Compare the two MAC addresses.
Observe two owners of one address
learner@rootvolt:~$ netlab shell laptop[sudo] password for learner: learner@laptop:~$ sudo ip neigh flush dev eth0[sudo] password for learner: learner@laptop:~$ ip -4 address show eth04: eth0@if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home
    inet 10.77.10.10/24 scope global eth0
       valid_lft forever preferred_lft foreverlearner@laptop:~$ ping -c 1 -W 1 10.77.10.105PING 10.77.10.105 (10.77.10.105) 56(84) bytes of data.
64 bytes from 10.77.10.105: icmp_seq=1 ttl=64 time=0.125 ms

--- 10.77.10.105 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.125/0.125/0.125/0.000 mslearner@laptop:~$ exitlogoutlearner@rootvolt:~$ netlab shell tablet -- ip neigh show 10.77.10.1010.77.10.10 dev eth0 lladdr 02:77:10:00:00:10 DELAY learner@rootvolt:~$ netlab shell phonelearner@phone:~$ sudo ip neigh flush dev eth0[sudo] password for learner: learner@phone:~$ ip -4 address show eth06: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home
    inet 10.77.10.10/24 scope global eth0
       valid_lft forever preferred_lft foreverlearner@phone:~$ ping -c 1 -W 1 10.77.10.105PING 10.77.10.105 (10.77.10.105) 56(84) bytes of data.
64 bytes from 10.77.10.105: icmp_seq=1 ttl=64 time=0.107 ms

--- 10.77.10.105 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.107/0.107/0.107/0.000 mslearner@phone:~$ exitlogoutlearner@rootvolt:~$ netlab shell tablet -- ip neigh show 10.77.10.10 # after phone10.77.10.10 dev eth0 lladdr 02:77:10:00:00:11 DELAY learner@rootvolt:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. Trigger discovery from each owner and compare tablet's changing neighbor entry.
Steps (41)
  1. Type netlab shell laptop
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type sudo ip neigh flush dev eth0
  7. Press Enter
  8. Output: [sudo] password for learner:
  9. Type the password (the terminal shows nothing)
  10. Press Enter
  11. Type ip -4 address show eth0
  12. Press Enter
  13. Output: 4: eth0@if3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home inet 10.77.10.10/24 scope global eth0 valid_lft forever preferred_lft forever
  14. Type ping -c 1 -W 1 10.77.10.105
  15. Press Enter
  16. Output: PING 10.77.10.105 (10.77.10.105) 56(84) bytes of data. 64 bytes from 10.77.10.105: icmp_seq=1 ttl=64 time=0.125 ms --- 10.77.10.105 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.125/0.125/0.125/0.000 ms
  17. Type exit
  18. Press Enter
  19. Output: logout
  20. Type netlab shell tablet -- ip neigh show 10.77.10.10
  21. Press Enter
  22. Output: 10.77.10.10 dev eth0 lladdr 02:77:10:00:00:10 DELAY
  23. Type netlab shell phone
  24. Press Enter
  25. Type sudo ip neigh flush dev eth0
  26. Press Enter
  27. Output: [sudo] password for learner:
  28. Type the password (the terminal shows nothing)
  29. Press Enter
  30. Type ip -4 address show eth0
  31. Press Enter
  32. Output: 6: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link-netns sw-home inet 10.77.10.10/24 scope global eth0 valid_lft forever preferred_lft forever
  33. Type ping -c 1 -W 1 10.77.10.105
  34. Press Enter
  35. Output: PING 10.77.10.105 (10.77.10.105) 56(84) bytes of data. 64 bytes from 10.77.10.105: icmp_seq=1 ttl=64 time=0.107 ms --- 10.77.10.105 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.107/0.107/0.107/0.000 ms
  36. Type exit
  37. Press Enter
  38. Output: logout
  39. Type netlab shell tablet -- ip neigh show 10.77.10.10 # after phone
  40. Press Enter
  41. Output: 10.77.10.10 dev eth0 lladdr 02:77:10:00:00:11 DELAY

Stop the listener and release the client. Run netlab fix from the VM and rejoin as before. The repair restores phone’s distinct address.

Fault Settings show Works Fails Deciding observation
No server 169.254.204.105/16, no lease Nothing outside the link-local range in this lab Phone and web Link-local address; Discovers without replies
Wrong gateway Lease; default via 10.77.10.254 Phone Web 10.77.10.254 is INCOMPLETE
Address conflict Tablet’s lease and route are correct Pings to 10.77.10.10 and web answer Which owner answers is not fixed One address, two MAC addresses

“No Internet means no address.” An address can exist with an unusable gateway. Test the path separately.

“Restarting fixes it, so the cause does not matter.” A reset removes evidence as well as changes. Record the deciding observation first.

DHCP clients normally accept configuration from a responding server without proving that it is the intended administrator’s server. A second, unwanted server can supply a gateway it controls. Operating DHCP and DNS covers operating these services in Intermediate.

Ask a partner to apply one of these faults from the VM without telling you which, then start tablet’s client and wait for its address. For the conflict, have them repeat the two-owner discovery sequence too. Run three commands on tablet: ip -4 address show eth0, ip route, and ip neigh. Compare repeated neighbor readings if needed. Name the fault and the deciding observation, then run netlab fix from the VM and rejoin.

Solution

A link-local address points to the unanswered lease case. A home lease with the wrong default next hop points to the gateway case. Correct tablet settings with a changing entry for the duplicated address point to the conflict. Use the repair sequence shown after the first fault to confirm recovery.

  • Missing, wrong, and duplicated configuration leave different evidence.
  • Local and remote tests answer different questions.
  • Fix the cause, rejoin, and check the corrected settings.

Next, Practice: Getting Network Settings Automatically saves and repairs a lease.