Page 1 of 1

Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 9:22 am
by XueHai8
I have multiple subnets on my home network and 3 of my Pi's are on 192.168.3.x
If my PC is on 192.168.2.x, then I can't connect via SSH to any of the Pi's on 192.168.3.x
Is this a setting in the Raspberry Pi or would be something in my Router?
Thanks!

Re: Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 9:33 am
by epoch1970
To go from network to network, packets have to pass through a gateway (aka router).
The router has one leg on each network and can filter and forward as required.

The device you want to configure is the one that accesses/manages both networks, probably your ISP router.

Re: Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 12:29 pm
by XueHai8
Ok. I think I understand now. Thought it might be something with the Pi that was keeping me out from another subnet.
I'll dig around my router's rules and learn up on it.
Thanks!!

Re: Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 2:16 pm
by rpdom
There are two things that are required.

Firstly a router that will route traffic from one subnet to the other.

Secondly, every machine on those subnets will need to know the IP address of the router, so it knows how to get to the other subnet.

Re: Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 4:13 pm
by drgeoff
rpdom wrote:
Sun May 06, 2018 2:16 pm
There are two things that are required.

Firstly a router that will route traffic from one subnet to the other.

Secondly, every machine on those subnets will need to know the IP address of the router, so it knows how to get to the other subnet.
Many ISP supplied routers do not support multiple subnets.

Re: Can''t access Pi from other Subnet

Posted: Sun May 06, 2018 4:36 pm
by hippy
XueHai8 wrote:
Sun May 06, 2018 12:29 pm
I'll dig around my router's rules and learn up on it.
You might need a switch rather than router to handle multiple subnets on the same network.

Some routers are effectively switch-plus-router, will put everything coming in from the LAN side out on all other cables on the LAN side, others won't.

Re: Can''t access Pi from other Subnet

Posted: Mon May 07, 2018 3:03 am
by XueHai8
I have a pfSense router with 4 physical Lan Interfaces. So apparently I just gotta learn how to set up routing on it. :)
Thanks all!

Re: Can''t access Pi from other Subnet

Posted: Mon May 07, 2018 8:40 am
by epoch1970
XueHai8 wrote:
Mon May 07, 2018 3:03 am
I have a pfSense router with 4 physical Lan Interfaces. So apparently I just gotta learn how to set up routing on it. :)
Thanks all!
I don't think you need to do much on the router, except to setup filtering to allow traffic to flow between the interfaces you're interested in.