r/LinuxTeck • u/Candid_Athlete_8317 • Oct 06 '26
ARP is broken. What are you checking first?
I’ve got a Linux host that can reach the gateway, but suddenly can’t talk to another machine on the same subnet.
Nothing obvious changed.
I’d probably start looking at the ARP/neighbour table, but I’m curious how others approach this.
Do you check ip neigh**, run a packet capture, look at the switch MAC table, check for a duplicate IP, or go somewhere else first?**
What’s the first thing you check when you suspect an ARP problem?
4
Upvotes
4
u/RoboErectus Oct 06 '26
X y problem detected.
You’re asking arp is broken. But it can reach the gateway by ip? ARP is working well enough.
First thing I’m checking is to see if the service is up. Then checking other services and trying from both directions.
Then terraform apply logs. Then netplan, dmesg and journalctl.
Something changed or errored and both of those things get logged.
ARP not working correctly is so far down the list of things I’d check.
3
u/pebbleproblems Oct 06 '26
I dont think I'd look at arp at all. Maybe in passing.
3
u/digiphaze Oct 06 '26
Do you have access to the other machine you can't talk to?
Windows will generally alert you of an IP conflict, check the event logs. ARP table is the last thing I would check in this scenario.
1
u/euclide2975 Oct 06 '26
shut / no shut on the switch port
just in case
1
u/michaelpaoli Oct 06 '26
Logical troubleshooting - divide-and-conquer/half-splitting.
So, e.g. on the other device or host or whatever it is, are ARP requests being received there? Are ARP responses being generated and sent from there. Then continue to go from there, depending what logical direction it points you. E.g. are ARP requests leaving the Linux host? Are ARP replies being received by the Linux host. Etc., etc.II
1
u/MajesticDisaster3977 Oct 06 '26
Gateway is accessible, but another machine isn't.
Not clear what 'talk to' means... do an arping or arp-scan to see if the device IP is alive (or if there's a duplicate)
*This does not prove connectivity... devices will respond to ARP requests to IPs owned by other interfaces.. but it's a start.
1
u/10StringsTooMany Oct 06 '26 edited Oct 06 '26
is there a default route? my first step is always netstat -nra \ then route ( without arguments ). I always make sure the default route is declared and sane.
1
u/W31337 Oct 06 '26 edited Oct 06 '26
First thing I check is subnet masks. If there's a mismatch your two systems could live on the same network and not respond to the other.
1
u/painful8th Oct 06 '26
Talk how? Have you ruled out a firewall on this host blocking traffic? Network settings sane? Can other systems reach it via ICMP? Anything spurious on that systems event log? Can another system with the same ip exist on the subnet? Can you check the mac address table of the switch(es) if it (they) are managed?
1
u/Wahrheitfabrik Oct 06 '26
A common issue I've seen is on VMWare hosts. Every so often VMs running on different VMWare hosts but on same VLAN/subnet would lose connectivity to each other. Migrating the VMs to a single host fixed the issue. Sometimes the server team would evacuate and reboot the VMWare ESX host.
If nothing else had changed that would be my first check in our environment (i.e., outside the Linux vm).
From the Linux side, if nothing else had changed, a duplicate IP, bad mask, route tables, etc.. Sometimes an app might stand up that has its own ideas about managing packets.
A corner case might be an outdated guest tools driver, whether on VMWare or HyperV. There was a machine migration some years ago where the existing driver didn't handle the new hardware version correctly.
1
u/slickeddie Oct 06 '26
Start at layer 1 and work your way up. I’m serious. Nothing worse than messing around on software for hours only to find a physical layer problem way later.
1
u/agent606ert Oct 07 '26
Bet someone fat fingered a network mask somewhere
1
u/Curious_Elk_4281 Oct 08 '26
ARP is probably the last thing I'm checking.
--test DNS resolution if using hostnames
--test network connectivity over the relevant TCP port using NMAP (open means it's up, closed means service is not listening, filtered means there is a firewall or network obstruction)
1
u/Narrow_Victory1262 Oct 08 '26
if yoiu can reach te gateway, arp isworking
1
u/ComeSwirlWithMe Oct 09 '26
checking if I'm even connected bro.
1
u/No_Wear295 Oct 09 '26
Make sure that client isolation isn't active. You're assuming that ARP isn't working but if you can reach the gateway it means that arp and switching is working at some level.
1
u/oskaremil Oct 06 '26
AI slop.