Posted: Sat May 18, 2024 15:45 Post subject: Unordinary dual WAN setup
Hi,
I have two routers (one of them is dd-wrt) which are connected via an unmanaged switch which is connected to other devices.
both routers have wan access and I can run code on both routers.
I've read that dual WAN is configured using VLANs which are specified by physical ethernet port on the router, in my case there is no direct connection to a physical ethernet port because of the switch.
Is it possible to setup dual WAN network by configuring the second router's MAC address as "virtual ethernet port" or by any other way?
x2 for using a managed switch between routers and LAN if they are sharing the same subnet or not. Otherwise, the Wiki is very dated and no longer applies for configuration of Dual WAN on DD-WRT:
Sticky:VLAN configuration via GUI - 1 CPU port _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
Thanks for your reply.
I'm new to VLANs so i hope you can help me understand more.
If replace the unmanaged switch with a managed switch and configure one of the ports (the one which the second wan router is connected to) to a different VLAN, can the DD-WRT "agree" with the managed switch about the configured VLAN so it will be possible for all the devices connected to both the DD-WRT and the switch to hop from one internet wan access to another?
I'm asking that because both dd-wrt and the managed switch can each configure VLANs, so how they are "knowing" or "agreeing" with each other regarding to the VLAN configuration?
Can I use second dd-wrt router instead of a managed switch?
Joined: 24 Oct 2008 Posts: 1088 Location: Latin America
Posted: Sun May 19, 2024 7:58 Post subject:
Let me summarize what is "dual WAN" for third-party firmwares: It means your router actually has an internal managed swith, and in that way you can go to the VLAN settings on your dd-wrt router and unselect one port from the LAN VLAN, create a new VLAN (your second WAN), and move that port there (remembering to add the CPU as well). The Wiki explains that in detail (altough there has been a few changes on details). Note: some very old routers don't support this, some routers support this via GUI, some routers require to do this via CLI. In some cases, the wiki of your particular router model explains the procedure. _________________ If you want support, please read first the announcements and forum rules.
Si usted desea ayuda, por favor lea primero los anuncios y las reglas del foro.
I've decided to purchase another ddwrt router to replace the switch, How should I configure the new and the old ddwrt?
You can get a managed switch for ~$20. I would go that route as the hardware is specifically built for it with firmware written in assembly code, so always much faster. Sure, a DDWRT router will do the same, but you don't really gain anything in the end except for a familiar interface. Go with something new and get a managed switch. _________________ - Linksys EA8500: I-Gateway, AP/VAP 5ghz only r57753: Features: WDS-AP, VLANs, Samba, WG, Entware
- Linksys EA8500: WDS Station x2 - r57753
- Netgear R6400v2: WAP/VAP 2.4ghz only w/VLANs over single trunk port. r57753
- Linksys MX4300 (WAP/VAP (7)) - r58244: Features in use: multiple VLANs over single trunk port
- Linksys MR7350: Testing r58244
- Linksys Velop WHW03v1 x2: OpenWRT w/GRETAP tunnel for VLANs on VAPs
- OSes: Fedora 39, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '95, never having owned a Windows PC.
Thanks, Any hint about how to configure the VLANs correctly for each of the router/switch?
For the managed switch i guess its pretty easy just add VLAN and add there the port that is connected to Router 2, but what about the configuration of the dd-wrt router? I guess the dd-wrt router needs to know about the new VLAN, so how should it be configured?
Joined: 16 Nov 2015 Posts: 6597 Location: UK, London, just across the river..
Posted: Mon May 20, 2024 13:11 Post subject:
Uner wrote:
Thanks, Any hint about how to configure the VLANs correctly for each of the router/switch?
For the managed switch i guess its pretty easy just add VLAN and add there the port that is connected to Router 2, but what about the configuration of the dd-wrt router? I guess the dd-wrt router needs to know about the new VLAN, so how should it be configured?
check VLAN sticky's here https://forum.dd-wrt.com/phpBB2/viewforum.php?f=53 _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 58184 WAP
TP-Link WR1043NDv2 -DD-WRT 58184 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 58381 Gateway/DoT,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 58381 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 58381 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913