Assign wired and wireless networks to same subnet?

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Thu Apr 15, 2021 21:30    Post subject: Assign wired and wireless networks to same subnet? Reply with quote
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?
Sponsor
derpaderp
DD-WRT Novice


Joined: 01 Apr 2021
Posts: 3

PostPosted: Fri Apr 16, 2021 3:57    Post subject: Reply with quote
Also hoping this gets a reply as I could also use this for other reasons. Hopefully the extra traffic on this post gets it noticed.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Apr 16, 2021 10:39    Post subject: Reply with quote
You can create a bridge e.g. br1 with 192.168.10.x subnet and place everything else on that bridge with assign to bridge.

The trick (and this has been discussed over and over) to leave the interfaces you want to put on the bridge like wl0.1 and wl1.1 *bridged*

At this moment they are all unbridged and that is not working.

Why must these interfaces stay bridged ?
Because they are, to ..... br1 Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087


Last edited by egc on Fri Apr 16, 2021 14:31; edited 1 time in total
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Fri Apr 16, 2021 14:29    Post subject: Reply with quote
And VLANs are hardware-specific, so you would have to look at the switched ports wiki to create a new vlan to assign to the bridge.

https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports

On that note, we should probably move this to the Broadcom forum at some point so some folks don't gripe.

_________________
"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
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Fri Apr 16, 2021 17:18    Post subject: Reply with quote
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.
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Mon Apr 19, 2021 16:03    Post subject: Reply with quote
What do I need to do to get this working?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Mon Apr 19, 2021 16:27    Post subject: Reply with quote
You should only have one extra dhcp server listening on BR1, most likely.
_________________
"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
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Mon Apr 19, 2021 20:13    Post subject: Reply with quote
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.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1446
Location: Appalachian mountains, USA

PostPosted: Mon Apr 19, 2021 20:38    Post subject: Reply with quote
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.
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Mon Apr 19, 2021 21:20    Post subject: Reply with quote
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.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Mon Apr 19, 2021 21:26    Post subject: Reply with quote
And this is where we bring in the VAP workaround from the build release threads that has been discussed plenty of times:

Quote:
VAPs not working at boot fixed for unbridged VAPs in 40562 - 40566. Effective startup commands discussion thread is here.


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
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1446
Location: Appalachian mountains, USA

PostPosted: Mon Apr 19, 2021 21:52    Post subject: Reply with quote
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.
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Mon Apr 19, 2021 21:59    Post subject: Reply with quote
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?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Mon Apr 19, 2021 22:22    Post subject: Reply with quote
When you create the VAP, what is the default setting, bridged or unbridged? If it's bridged, leave it alone.

The workarounds linked in that blurb from the build thread post are for bridged vaps in more recent releases.

_________________
"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
LDL707
DD-WRT Novice


Joined: 14 Oct 2012
Posts: 14

PostPosted: Mon Apr 19, 2021 22:27    Post subject: Reply with quote
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?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum