Posted: Thu May 02, 2019 7:13 Post subject: Routing between 2 subnet on the same router
Hi all,
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)"
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.
Joined: 18 Mar 2014 Posts: 12877 Location: Netherlands
Posted: Thu May 02, 2019 7:52 Post subject:
The VAP is not isolated from the main network unless you tick Net isolation on the GUI or put in firewall rules yourself
So if you just tick Disable on Net isolation and delete any firewall rules you added yourself you should be fine and the VAP and main network are connected.
Routing has nothing to do with these kind of setups, you have to use firewall rules to isolate or connect
I use the modern method to setup a VAP see my notes