Joined: 02 May 2019
|Posted: Thu May 02, 2019 7:13 Post subject: Routing between 2 subnet on the same router
I set up my router with 2 wireless subnets on my router following https://wiki.dd-wrt.com/wiki/index.php/Multiple_WLANs:
* 192.168.1.0/24 for my data server, laptop, subnet connected to LAN and WAN.
* 192.168.2.0/24 for a bunch of sensors platform using RaspberryPi or similar
I want to have my second subnet 192.168.2.0 connected to LAN and the first WLAN subnet 192.168.1.0, in order to access directly to the sensor (for example at 192.168.2.142) from my laptop (192.168.1.13).
I tried to bridge the interface without success (often I ended up to lose the separate subnet, or have the subnet gaining access to internet.
I tried to create a route in between the two subnets with:
* Destination LAN NET: 192.168.2.0
* Subnet Mask: 255:255:255:0
* Gateway: 192.168.1.1
Without success. When Pinging I got the following error "Redirect Host(New nexthop: 192.168.2.141)"
Here is a schematic:
I supposed it was as easy as:
* tell Laptop that SUBNET1 is his default gateway (normally done through dhcp)
* tell Sensor that SUBNET2 is his default gateway (normally done through dhcp)
* tell SUBNET1 that "WAN"-router is his default gateway.
* tell SUBNET1 that requests to 192.168.2./24 will be routed through SUBNET2 (static route)
* tell SUBNET2 that SUBNET1 is his default gateway (via routing)
I am open to any suggestion to make this works, and if this is a stupid idea, just let me know.
Router: Linksys WRT1900AC
Firmware Version: v3.0-r39572 std (04/19/19)
[edit 05/02/19: add Router+Firmware]
Last edited by megavolts on Thu May 02, 2019 15:19; edited 1 time in total
Joined: 18 Mar 2014