Networking: Two hosts on one LAN can't talk — subnet mask or network address mismatch
The hosts disagree about which addresses are local, so one tries to route traffic that should go straight across the LAN.
Subnet mask mismatchwrong subnet maskHosts on the same network cannot ping each otherGateway is not on the same subnetSIOCADDRT: Network is unreachable Meaning
With 192.168.1.10/24 and 192.168.1.200/25 they compute different local networks. Use the same mask on every host, check DHCP-provided masks, and compare with ip addr / ipconfig. A /16 on one side and /24 on the other often causes one-way connectivity.
Common causes
- Manually entered wrong mask
- Different DHCP scopes on one segment
- Overlapping subnets (/24 vs /25)
- Gateway outside the host's subnet
- Typo in the third octet
⚡ Quick fix
- Compare
ip -4 addr/ipconfigon both hosts - Use one consistent mask and gateway in the subnet
- Check the DHCP scope options
Detailed fix by platform
Linux
ip -4 addr show eth0; ip route; ipcalc 192.168.1.200/25
How to diagnose
- Mask — Same on both?
- Gateway — Inside subnet?
- DHCP — One scope?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- 169.254.x.x self-assigned IP (DHCP failed) Networking: IPv4 address 169.254.x.x (Autoconfiguration / APIPA) — the PC couldn't get an address from DHCP
- arp -a shows (incomplete) Networking: `arp -n` shows (incomplete) / Destination Host Unreachable — no ARP reply from the next hop
- Network is unreachable connect: Network is unreachable (ENETUNREACH)
Most viewed in Networking
- Native VLAN mismatch / wrong VLAN, no connectivity Networking: %CDP-4-NATIVE_VLAN_MISMATCH / device on the wrong VLAN can't reach the gateway
- Port err-disabled (psecure-violation) Networking: %PM-4-ERR_DISABLE: psecure-violation error detected on Gi0/5, putting Gi0/5 in err-disable state
- Rogue DHCP server hands out wrong gateway/DNS Networking: Clients receive the wrong default gateway or DNS server — a rogue DHCP server (often a home router) answers first
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026