[SOLVED] Some (but not all) network hosts can't talk to each other
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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
Can you ping the Pi host via the primary workstation successfully?
Code:
ping 192.168.1.16
With respect to Avahi...
Code:
avahi-browse -art
*You may need to discover avahi-utils package first.
Check for active firewalls on the host you're trying to reach.
Can you confirm the ip assignments on the pi at this time?
Code:
ip address
Code:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:2e:69:db brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:7b:3c:8e brd ff:ff:ff:ff:ff:ff
inet 192.168.1.16/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 85877sec preferred_lft 75077sec
inet6 fe80::9181:da2:27d5:37e/64 scope link
valid_lft forever preferred_lft forever
Quote:
Code:
ip route
Code:
$ ip route
default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.16 metric 303
192.168.1.0/24 dev wlan0 proto dhcp scope link src 192.168.1.16 metric 303
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.
Can you confirm that both hosts are connected to the same wifi AP?
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.
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.
That is interesting. My TPLink model doesn't seem to have that function. But in any case, in at least my current setup, all three hosts (my workstation, my laptop, and the Pi) were attached to the same router - but only two were able to talk to each other.
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.
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.