I have three raspberry pis connected together on a subnet via a hub. I've given them all static IPs and I'm using one main Pi to ping the other two Pis.
Once the main Pi starts pinging another Pi, each ping returns back totally fine. But when I initially start the ping it can take around 5 seconds to receive its first response back. This leads to 30%+ in packet loss or so and makes it so that when I run scripts they often fail at transmitting messages due to timeouts trying to connect.
Here is a photo of the packet loss when pinging one pi then the other:
I'm very new to networking so please let me know what information I can provide to better diagnose the issue.
I've tried replacing the raspberry pis, the ethernet cables, and the hub but no luck as of yet. I'm wondering if there is some limitation on the Pis Im unaware of or if this might be a faulty hardware issue with my hub supplier.
EDIT: I ran
IP neighbor show with the following results
pi@raspberrypi:~ $ ip neighbor show 192.168.2.1 dev wlan0 lladdr 40:c7:29:4e:4d:f8 STALE 192.168.3.32 dev enxb827eb9c0ecf lladdr 00:e0:4c:53:44:58 STALE 192.168.2.131 dev wlan0 lladdr 02:0f:b5:87:93:39 REACHABLE 192.168.3.37 dev enxb827eb9c0ecf lladdr 00:e0:4c:53:44:58 STALE
The reason it shows two different networks is that I'm connected to the internet over wifi on the
192.168.2 network. And I'm connected via ethernet to the other 2 pis over
192.168.3. Both Pis IPs can be seen there as
EDIT2: I noticed from playing around with
IP neighbor show that if I ping a pi then run
IP neighbor show it says
REACHABLE next to that pi. But then if I ping the other Pi then the first Pi I pinged will display
STALE and the new one will be
REACHABLE this happens each time I ping the other Pi.