I currently have a raspberry pi4B (p0
) with four raspberry pi Zeros (p1-4
) all conected to the pi0
via USB (using usb gadget mode for a network connection). To be specific i'm using a pi Cluster Hat.
At the moment the p0
has an IP on my home network of 192.168.1.86
. p1-4
have IPs of 172.19.181.1-4
.
Accessing p1-4
from p0
via the network using their IPs works perfectly. However if I want to access p1-4
from another desktop computer desk
then they don't show on the home network. From what I've read this makes sense, as the 172.19.181.x
part of the IP of the p1-4
defines a new sub net that can't be accessed from outside.
My mental image of how these interconnect is this (not sure if correct):
My question is: is there a way that I can have desk
communicate directly with p1-4
? is the whole p0
and p1-4
system considered it's own sub network even though there is no seperate router between?
Also, how do the raspberry pis all behave if I remove them from the router's network? Right now the router assigns the p0
an IP of 192.168.1.86
which p1-4
use in order to communicate with it, whereas the p1-4
always have their IP's the same (172.19.181.1-4
). For now I want to have all the pis on the home network for development, but will eventually want to remove the pi's (0-4) from the network and still have them be able to communicate without worrying about p0
having it's IP reassigned. Is this possible?