Lesson 2 of 9 · 25m
Addresses, Neighbors, and the ARP Boundary
Configure IPv4 and IPv6 addresses correctly, then verify local reachability through neighbor tables instead of assuming L2 works.
A host does not transmit to an IP address. On a local Ethernet segment it transmits to a MAC address, using ARP for IPv4 or neighbor discovery for IPv6. That distinction sounds academic until you lose an hour because the route is right, the firewall is open, and the gateway never answers a neighbor solicitation.
Configure addresses deliberately
The modern interface is ip, not ifconfig:
sudo ip addr add 192.0.2.14/24 dev eth0
sudo ip addr add 2001:db8:10::14/64 dev eth0
sudo ip link set eth0 up
ip -brief addr show dev eth0The prefix length is part of the address configuration. 192.0.2.14/32 may be legitimate on a point-to-point or loopback-style setup, but on normal Ethernet it means the host has no directly connected neighbors in that subnet. Wrong prefix lengths create the classic symptom: traffic to the gateway tries to route through the gateway, recursion collapses, and everything appears mysteriously unreachable.
Read the neighbor table before blaming routing
ip neigh show dev eth0
ip -6 neigh show dev eth0The states matter:
192.0.2.1 dev eth0 lladdr 52:54:00:9a:21:44 REACHABLE
192.0.2.9 dev eth0 FAILED
fe80::5054:ff:fe9a:2144 dev eth0 lladdr 52:54:00:9a:21:44 router STALEREACHABLE means a positive proof of reachability exists. STALE means the entry is known but old. PROBE means the kernel is checking. FAILED means resolution did not complete. A failed gateway neighbor entry is a local-link problem even if the destination you ultimately care about is on another continent.
Watch resolution happen
When you need ground truth, capture the neighbor exchange:
sudo tcpdump -ni eth0 arp or icmp6
ping -c 3 192.0.2.1For IPv4, you should see Who has 192.0.2.1? followed by a reply. For IPv6, look for neighbor solicitation and advertisement. If requests leave and no answer returns, inspect VLAN tagging, bridge membership, switch port state, MAC learning, security groups, or the peer's own firewall.
Duplicates, proxy ARP, and asymmetric weirdness
Duplicate address detection can leave an IPv6 address tentative and unusable. Proxy ARP can make a network appear flatter than it is. Gratuitous ARP can update caches after failover, but it can also reveal conflicting ownership of the same address. The neighbor table is where those stories become visible.
ip -details addr show dev eth0 | grep -E 'inet6?|tentative'Field notes
pingtests more than ICMP when the target is local: it exercises neighbor resolution first.PERMANENTentries are manually or statically managed and will not age like learned entries.- A correct MAC in the wrong VLAN is still the wrong neighborhood.
- Docker and bridge-heavy hosts often have several interfaces sharing similar MAC patterns; verify the interface column, not just the address.
- Deleting a neighbor entry is safe for diagnosis: the kernel will resolve it again if traffic continues.
Was this lesson helpful?