Bridging 2 subnets behind same DD-WRT

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


Joined: 19 Sep 2020
Posts: 25

PostPosted: Fri Sep 25, 2020 2:16    Post subject: Bridging 2 subnets behind same DD-WRT Reply with quote
I have been racking my head how to do this with new DDWRT - worked find on my old linksys boxes 10 years ago...

I have upgraded my home router - like it or hate it - I have the Netgear R8000 Nighthawk. I managed to finally get DDWRT installed. Currently on v3.0-r44406 std

At home I have ATT Fiber --> ATT Modem (192.168.1.x DHCP) ---> multiple home devices and then to my office ---> DD-WRT (r8000) with 2 sets of devices behind it. I want to use 10.0.0.x subnet range under the DDWRT managed dhcp range but I have several servers I am playing with I want on 10.0.1.x subnet for playing with a bunch of servers I got really cheap... setting up a proxmox cluster at home and having some fun..

These work just fine on the 10.0.0.x subnet using dhcp but I want to put them on 10.0.1.1-255 for my own learning.

I have DDWRT(r8000) WAN port connect to the ATT side. I have personal computers and office equipment happy in dhcp on 10.0.0.2-255 range.

I have a switch connected on port 2 of router - connected to several servers (4 right now but I have 40 more).

I want all the servers to be static at 10.0.1.1-40 for easy addressing long term.

What do I need to do to DDWRT settings to let 10.0.0.x subnet talk to 10.0.1.x subnet?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12882
Location: Netherlands

PostPosted: Fri Sep 25, 2020 6:32    Post subject: Reply with quote
Welcome to the forum

To get the best possible support follow the forum guide lines, link in my signature at the bottom of this post.

The forum guide lines tell you what information you need to post and in what forums to post to get the best possible support (and other very useful information).

I am now transferring this post to the appropriate forum (Advanced Networking) 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
gozippy
DD-WRT Novice


Joined: 19 Sep 2020
Posts: 25

PostPosted: Fri Sep 25, 2020 12:34    Post subject: Bridging 2 subnets behind same DD-WRT Reply with quote
Question still stands:

How can I get DDWRT managed DHCP subnet 10.0.0.x to see and talk to static ip addressed 10.0.x.x connected to same dd-wrt router?
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Sep 26, 2020 2:56    Post subject: Reply with quote
So as I understand it, you have the R8000 daisy-chained to the primary router (WAN to LAN, respectively), and now want to establish a second local network behind the R8000.

I *assume* you mean both wired and wireless. This would require establishing a new bridge (e.g., br1), perhaps a VAP (if you were NOT willing to move either the 2.4GHz or 5GHz radio from the default bridge (br0) to the new bridge), creating a new VLAN (e.g., vlan3) and moving one or more ports from the default VLAN to the new VLAN, then adding the AP/VAP and new VLAN to the new bridge. Finally configuring the new bridge w/ DHCP, DNS, etc.

Problem is, VLANs are hardware dependent, and as such, should be asked in the appropriate hardware forum for your router's chipset (in this case, Broadcom) since only the folks there know enough to configure VLANs properly (can't be done using the GUI, only the CLI).

That said, another option is to use FreshTomato, which has the advantage of being able to configure all of this in the GUI. I just helped another dd-wrt user accomplish the same thing, only it was an ASUS RT-N12D1. But the process is identical, and relatively easy, at least when using tomato. It's dd-wrt that makes it difficult.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=326626

P.S. There is no *bridging* here, as suggested in your title. When you establish multiple IP networks behind the WAN, each has its own ethernet segment, acts independently, and can only communicate w/ each other via IP routing.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
gozippy
DD-WRT Novice


Joined: 19 Sep 2020
Posts: 25

PostPosted: Sat Sep 26, 2020 3:17    Post subject: Reply with quote
eibgrad wrote:
So as I understand it, you have the R8000 daisy-chained to the primary router (WAN to LAN, respectively), and now want to establish a second local network behind the R8000.


Correct

eibgrad wrote:

I *assume* you mean both wired and wireless. This would require establishing a new bridge (e.g., br1), perhaps a VAP (if you were NOT willing to move either the 2.4GHz or 5GHz radio from the default bridge (br0) to the new bridge), creating a new VLAN (e.g., vlan3) and moving one or more ports from the default VLAN to the new VLAN, then adding the AP/VAP and new VLAN to the new bridge. Finally configuring the new bridge w/ DHCP, DNS, etc.


No - I am connecting office pc and printer and such on the LAN port 1 and each receives IP via dhcp in the range the DDWRT router is set for - 10.0.0.100+ so I am getting for instance 10.0.0.20 for the pc and the printer pulls 10.0.0.21 but these change from time to time... I can see and talk to anything over the 10.0.0.x subnet as expected.

I have my proxmox stack of servers to play with on my desk for fun - and I would like them on a separate subnet. These are connected by a gigE switch connected PHYSICALLY to port 2 for instance on the r8000 DDWRT enabled device.

I want them on 10.0.1.1-40 static to correspond to the node number in the stack I assign manually.

I have played with a dozen settings and still cannot get the computers on 10.0.0.x range to see or talk to any on the 10.0.1.x sub.
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Sat Sep 26, 2020 3:57    Post subject: Reply with quote
I assume 10.0.0.x is actually 10.0.0.0/24 and 10.0.1.x is actually 10.0.1.0/24. And if so, each is its own unique network. And by definition, needs to have its own VLAN. And then you would route between them. But it sounds like you're trying to somehow have these two different networks be distinguishable while part of the *same* VLAN, which makes no sense. The only way they could be part of the same VLAN is if each was actually a part of the same network (e.g., 10.0.0.0/16). Then they would be bridged, and there would be no reason they couldn't communicate.

I'm getting the impression you've configured something offbeat there when it comes to these networks, making it difficult for me to understand. You're going to have to do a better job of explaining exactly what you did to configure these networks.

_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
gozippy
DD-WRT Novice


Joined: 19 Sep 2020
Posts: 25

PostPosted: Sat Sep 26, 2020 5:40    Post subject: Reply with quote
eibgrad wrote:
I assume 10.0.0.x is actually 10.0.0.0/24 and 10.0.1.x is actually 10.0.1.0/24. And if so, each is its own unique network. And by definition, needs to have its own VLAN. And then you would route between them. But it sounds like you're trying to somehow have these two different networks be distinguishable while part of the *same* VLAN, which makes no sense. The only way they could be part of the same VLAN is if each was actually a part of the same network (e.g., 10.0.0.0/16). Then they would be bridged, and there would be no reason they couldn't communicate.

I'm getting the impression you've configured something offbeat there when it comes to these networks, making it difficult for me to understand. You're going to have to do a better job of explaining exactly what you did to configure these networks.


Brother - typical engineer - overthinking it...

I want to simply use the address space for the subnet 10.0.1.0-255 as static I manually assign, and the 10.0.0.1-255 space subnet for my dhcp devices. I want both vlans to see each other and route appropriately between static devices on 10.0.1.1 thu 10.0.1.40 and the devices connected on dhcp served up by DDWRT also with the defined range 10.0.0.1-255 --> so yes /16 space is what I am looking for wherein I let ddwrt assign 10.0.0.1 (local assigned to ddwrt device) 10.0.0.1-255 on dhcp (I have it currently starting at 100) and let those devices look and see everything all 40 devices I static assign from 10.0.1.1 thru 10.0.0.40

When I set subnet mask to 255.255.0.0 or 255.255.255.0 and play with vlan and bridge settings I cannot seem to get them to see eachother behind the ddwrt device. Again - no dmz, no port forwarding issues, stock ddwrt installed a few days ago to the r8000. LAN1 I is connected to my switch with pc and other things I dont care are dhcp assigned ip... my 40 servers (4 right now on my desk) I want on the 10.10.1.1 thru 40 so technically it could be 255.255.254.0 but I want ability to add more stacks... so stack one would be 10.10.1.x and stack two 10.10.2.x

clear as mud? and thanks for the help... just trying to sort this so I can have these servers on static but not under the dhcp range or above it in that x/24 space...

anyhow - I cannot see the two groups...
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12882
Location: Netherlands

PostPosted: Sun Sep 27, 2020 10:30    Post subject: Reply with quote
Either use one large subnet (/16) and then you do not need to "play with vlan and bridge settings" as you have one subnet, or create different subnets and then you have to use VLAN's https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports

The DDWRT interfaces are not isolated by default.
You isolate the subnets (interfaces) by enabling Net isolation in the GUI of the interface (on the Setup/Networking page where you also set the interface settings and add a DHCP server on the bottom of the page)

_________________
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
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Dec 15, 2020 15:57    Post subject: Reply with quote
eibgrad wrote:
to configure VLANs properly (can't be done using the GUI, only the CLI).


are you sure that's still an accurate statement?

i just configured vlans strictly from the GUI on a router running v3.0-r40559 from august 2019 and it worked...
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Tue Dec 15, 2020 16:26    Post subject: Reply with quote
It's accurate, unless you a using one of a select few Broadcom models that do support it (or at least did at one point in time).

I don't know what "a router" is, and r40559... Laughing


Last edited by blkt on Tue Dec 15, 2020 16:28; edited 1 time in total
SurprisedItWorks
DD-WRT Guru


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

PostPosted: Tue Dec 15, 2020 16:27    Post subject: Reply with quote
MuzzleVelocity wrote:
eibgrad wrote:
to configure VLANs properly (can't be done using the GUI, only the CLI).


are you sure that's still an accurate statement?

i just configured vlans strictly from the GUI on a router running v3.0-r40559 from august 2019 and it worked...

The GUI's VLAN page is for routers (mostly or all old ones... not sure) with Broadcom hardware. Routers with Atheros hardware end up needing swconfig and related commands in Startup instead. (A link detailing it for the modern Linksys WRTblah routers is in my signature below.)

_________________
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.
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Dec 15, 2020 19:02    Post subject: Reply with quote
blkt wrote:
I don't know what "a router" is


in this case it was an old Belkin F7D3302
MuzzleVelocity
DD-WRT User


Joined: 23 Apr 2010
Posts: 125

PostPosted: Tue Dec 15, 2020 19:06    Post subject: Reply with quote
SurprisedItWorks wrote:
The GUI's VLAN page is for routers (mostly or all old ones... not sure) with Broadcom hardware


ah, yes that vlan test I did was on a very old broadcom based router.

That is very disappointing to hear that it won't work so easily on newer routers! I will need to check out the link in your sig...
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Tue Dec 15, 2020 19:28    Post subject: Reply with quote
That signature link is specifically for Marvell WRT hardware.

For example, if you need help with R9000 vlan search specifically for that model in Atheros subforum.
SurprisedItWorks
DD-WRT Guru


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

PostPosted: Tue Dec 15, 2020 19:43    Post subject: Reply with quote
blkt wrote:
That signature link is specifically for Marvell WRT hardware.

For example, if you need help with R9000 vlan search specifically for that model in Atheros subforum.

Exactly! It was meant to be only an example. To get the specifics right, you have to search out a discussion that applies to your particular hardware. Sorry about being vague. (Like my mind sometimes. What?)

_________________
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.
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