Posted: Thu Apr 15, 2021 21:30 Post subject: Assign wired and wireless networks to same subnet?
I have a Netgear Nighthawk R7000 router running DD-WRT v3.0-r42954 std (04/20/20). On it, I have four wireless SSIDs--two of them (one 5 GHz and one 2.4 GHz) are on the same subnet (192.168.1.x) (wl0 and wl1) . That is my primary network for my computers. I also have a 2.4 GHz network in a second subnet (192.168.10.x) (wl0.1) and a 5 GHz network in a third (192.168.5.x) (wl1.1). Those two are for dodgier devices (like IoT devices and guests). Those two are isolated from each other and from the 192.168.1.x network.
I also have several wired IoT devices. Right now, I have them on a different subnet (192.168.107.x). (I did this by going to the Switch Config tab, moving my wired ports to a new VLAN (vlan3), going to the Networking tab and making a new bridge (br1), and assigning the new VLAN to the new bridge. Then, under Port Setup on the same Networking tab, I assigned the bridge to a new subnet--192.168.107.x. I basically followed the instructions here: https://www.youtube.com/watch?v=0ds4o2RxHAc
). I haven't isolated the 192.168.107.x subnet from the rest of the router, yet.
I would really prefer them to be on the 192.168.10.x subnet, though. (My Samsung Smartthings hub and my Belkin Wemo "smart" switches won't talk to each other unless they're on the same subnet, apparently.) I tried assigning the bridge to the 192.168.10.x subnet, but that didn't work. (I don't actually care if they're on the .10.x subnet so much as I care that they're on the same network. They could all be on .107.x and I'd be perfectly happy.)
What do I need to do to get them to play together?
I posted this question on reddit, and somebody suggested assigning the wired devices and the wireless network to the same bridge.
I don't want to mess this up, so I'm double checking here. Do I just go to the "Networking" tab, "Assign to Bridge" and add a new line that puts wl1.1 interface on the br1 bridge? Is that all there is to it?
Ok, so I went to Setup>Networking. Under "Assign a Bridge", I clicked on "Add", and put "br1" under "Assignment", and "wl0.1" under "Interface". Then I clicked "Save" and "Apply". Then I did that process again except I put "wl1.1" under "Interface", and saved and applied.
Then, on the Wireless>Basic Settings tab, under "Virtual Interfaces", I changed "wl0.1" and "wl1.1" from "Unbridged" to "Bridged". Save, apply, reboot router.
When I do that, and I go to the Status>Lan page, the wired devices show up like they should, but none of the wireless devices do. Lots of devices show up on the Status>Wireless page under "Wireless Nodes">"Clients".
Maybe this is a DHCP issue? On Setup>Networking, under DHCPD, I have the following:
Code:
Multiple DHCP Server
Interface wl0.1: IP 192.168.10.1/255.255.255.0
DHCP 0 wl0.1 On Start 100 Max 50 Lease time 1440
Interface wl1.1: IP 192.168.5.1/255.255.255.0
DHCP 1 wl1.1 On Start 100 Max 50 Lease time 1440
Interface br1: IP 192.168.107.1/255.255.255.0
DHCP 2 br1 On Start 100 Max 50 Lease time 1440
but for the life of me, I can't remember how to change that. I tried deleting the DCHP 0 and DHCP 1, but that didn't work.
That was my first thought, but deleting them and rebooting the router didn't fix the issue. The wireless devices still don't show up on the Status>LAN page, and they don't have connectivity.
I have a bunch of devices assigned static IP addresses in the Services tab, but I wouldn't think that would affect anything.
Joined: 04 Aug 2018 Posts: 1446 Location: Appalachian mountains, USA
Posted: Mon Apr 19, 2021 20:38 Post subject:
On the Status>LAN page the listing of clients will just show clients connected to br1 but not to the individual interfaces. For many purposes the bridge has replaced its constituent parts.
Re not having connectivity... Go to Setup>Networking, find the section for br1 near the bottom, and be sure "Masquerade / NAT" is enabled. That's what specifies to connect it to the internet. You'll also need the bridge's subnet to be specified there. If you main network on br0 is on 192.168.1.1/24, perhaps you'll put br1 on 192.168.2.1/24 or some such. They must not overlap. Also enable "Net Isolation" if you want clients on br0 and br1 to be invisible to each other. Once you save and apply, check the DHCP setup at the bottom to see if it was thrown off by the temporary period of having the networking not quite right.
BTW, "AP Isolation" on the wifi interfaces in your new br1 is an interesting setting. If it is enabled in an interface, that interface's clients cannot see each other, but they can still see clients in the other interface on that bridge. Ordinarly AP Isolation would be left disabled for bridged wifi interfaces, so that all clients on the bridge can interact, but that's up to you. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
I checked those settings, and everything looks to be right.
The strange thing is that right now I have the wired devices already assigned to br1, and they work fine. I have wired ports 1, 2, and 3 assigned to vlan3, and vlan3 assigned to br1. The wired devices can see the internet, and they work normally. They show up on the Status>LAN page, they get appropriate IP addresses in the 192.169.107.x block, etc.
It's only when I try to assign wl0.1 and wl1.1 to br1 that I get the problem. (And even then, the wired devices on br1 work fine.) Under "Current bridging table" br1 shows the vlan3, wl0.1, and wl1.1 interfaces. The DHCP setup shows:
Code:
Interface br1 - IoTNetwork: IP 192.168.107.1/255.255.255.0
DHCP 0 br1 On Start 100 Max 100 Lease time 1440
So DHCP, connectivity, etc. are working for the wired devices, but not for the wireless devices that are ostensibly assigned to the same bridge.
If you have one of the workarounds in place and clients can connect to the VAPs, then there is something that is missing in your configuration somewhere that is preventing them to get to the internet... _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 04 Aug 2018 Posts: 1446 Location: Appalachian mountains, USA
Posted: Mon Apr 19, 2021 21:52 Post subject:
A fine point that is only a guess: Be sure the wifi interfaces are ALREADY unbridged (Applied or Saved+Rebooted) before you assign them to br1.
Like I said, a guess. But there are a lot of ordering requirements built into setting things up, so you never know. _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
The wifi interfaces are definitely unbridged. They work fine before I try to assign them to br1, and br1 works fine before I assign the wifi interfaces to it (and the wired devices work fine on br1 even after I assign the wifi interfaces to it).
I assigned the wifi interfaces to br1, saved and applied, and then checked "bridged" on the wireless setup.
As for the VAP workaround, I do not have that currently configured. Should I? I'm not really familiar with it at all. Is it for bridged and unbridged VAPs?
Both wireless interfaces are currently unbridged (and each operating on their own subnet, 192.168.10.x and 192.168.5.x, separately from my primary network on 192.168.1.x). In this configuration, they work.
When I assign them to br1, and then change them on Wireless>Basic Settings to "bridged" (in the hopes of getting them both on the same subnet as the wired devices), the wireless interfaces don't work.
Should I add those startup commands to get them working once I switch them to bridged?