Some (but not all) network hosts can't talk to each other
I'm having trouble with my local network. All the Linux hosts get DHCP addresses and connectivity. The problem is that they're not always able to communicate (SSH, ping) with each other. I've got two WiFi routers configured on channels far apart from each other. One router (my ISP's device) is at 192.168.1.1 and my TPLink AC1200 router is configured as an access point on the same network at 192.168.1.2.
Right now I've got a Raspberry Pi that was assigned 192.168.1.16 and has internet connectivity, but can't be seen or accessed from my primary workstation - even when it's connected through the same router (that would be the TPLink, at the moment). And I can't SSH from the Pi to my workstation, But my laptop - on the same network and logged in through the same router - can SSH in and pick the Pi up on nmap. Another issue that I think may be related is that, for some reason, I'm not always able to refer to all the hosts by "hostname.local" - although they'll generally work using the IP address (except when they're "off" the network, of course). Any ideas? Thanks, |
Quote:
Code:
ping 192.168.1.16 Code:
avahi-browse -art Check for active firewalls on the host you're trying to reach. |
1 Attachment(s)
Quote:
Code:
$ ping 192.168.1.16 Quote:
As you can see, this is a busy machine - lots of LXD bridges etc. Quote:
Good point. I forgot to mention that there are no firewalls on the local network. Thanks, |
Can you confirm the ip assignments on the pi at this time?
Code:
ip address Code:
ip route |
Quote:
Code:
$ ip a Quote:
Code:
$ ip route |
I know you said there was no firewall on any host....but just to be sure, run this from the Pi...
Code:
sudo iptables -S |
Regarding this comment...
Quote:
Code:
iw dev wlan0 link Code:
iwconfig wlan0 |
Quote:
Code:
$ sudo iptables -S |
If you have hosts connected via different wifi AP's this might present an issue (eg multicast traffic being blocked), although pinging should work with no issue. Some APs have features to keep wifi client hosts from being able to talk directly to each other as well.
Just in case this is applicable... https://www.tp-link.com/us/support/faq/2089/ |
Quote:
Thanks, |
Just a quick update: A couple of hours later, the Pi suddenly became available for SSH from my workstation. This is exactly the unpredictable behavior I've been experiencing with other hosts. Is it possible that there's something buggy about the way ARP is caching my host addresses and, for some hosts, it's taking a very long time? Full disclosure: I don't know all that much about ARP, but I'd like to hear what people who do understand it think.
|
dlanced, as ferrari mentioned, I also have a strong suspicion if both of your wifi AP have same keys and name then your systems might roam between them sometimes which would cause them to split. Make sure the devices are connected to the same AP.
|
Thanks. I have indeed seen some flipping between APs over the past months.
But all three of the devices I've been watching through the past six hours have been on the same AP. Besides that, why should they split even if they are one different APs? They're all on the same network. |
If your tp-link isn't configured as a bridge then they'd be on the same network the same way my 192.168.1.2 is on the same network as you.
|
Yes, I agree... focus your attention on the second AP device. I assume it is connected via ethernet? (Refer below link)
https://www.tp-link.com/en/support/faq/417/ WDS Bridging is described here https://www.tp-link.com/us/support/faq/440/ |
Quote:
So far I'm optimistic. Thanks! |
Well, that didn't go well. All my computers are now happily connected to the routers and the LAN, but they've all lost internet connectivity. All, that is, except my laptop (which I'm using now).
What I can see is that all the other devices have been issued new IPs (192.168.1.101 and up) - except for this one. The ISP router has a proper public IP and it looks perfect. But no other device has actual internet access. Any ideas? I'm afraid the IP of this laptop could be renewed any time which will kill this access, too. :) |
I assume the AP is hard wired to the main router?
As noted in the FAQ make sure the cable is plugged into a LAN port of the AP not WAN. Make sure the AP's LAN address is configured correctly and is outside the DHCP range of the main router. Make sure AP's DHCP server is disabled. |
Quote:
Quote:
Quote:
Quote:
Fixed now and everything looks good. <Whew> |
Glad that you found the issue. (It was mentioned in the guides as well).
|
I'm afraid I'm now back to where I started! There were a few weeks where all my NAT hosts could happily talk to each other, regardless of which AP they were connected to. But now some just aren't showing up. My Raspberry Pi, for instance, just doesn't appear in nmap results from my main workstation, but is getting its old DHCP IP from the primary router and can at least sometimes be seen from other hosts. And yesterday, I could only access one of my local hosts after having SSH'd in to it from a third host, and then SSH'd from there to my workstation!
So the routers are wired properly, the AP has a static IP (192.168.1.201) outside the DHCP range, and everyone has internet access. I can't think of anything I did to change the network configuration in the meantime, but I'd appreciate if anyone has any more ideas! Thanks, |
You have not changed any physical configurations or settings?
Are the missing hosts connected to AP or mixed wired and wireless? |
Quote:
Quote:
Code:
$ ssh 192.168.1.7 |
There are several reasons you might see a no route to host message.
If you can ping the computer then you might not be connecting to the correct computer. Check the address in the router. If the IP matches then ssh might not be running. If ssh running are you using some port other then 22 If ssh is running then it could be a firewall setting which is probably not it. |
Quote:
|
I think I tracked down the real problem causing me all this grief. I tried power cycling the TP-Link WiFi router and I got my full network back. I think something's falling over on the router over time that can be fixed with a reboot. I might contact TP-Link (it's still under warranty) to see what they have to say about this.
Sometimes it just comes down to bad hardware. Thanks to everyone around here who offered help on this! |
All times are GMT -5. The time now is 02:59 AM. |