Posted: Tue Nov 24, 2020 23:18 Post subject: Setting up dual WAN
Hi Everyone,
I am working from home much more frequently than I used to. My internet connection is reasonably fast, but reasonably unreliable (disconnecting once or twice a day for 20 minutes or so). I've arranged for a slower backup internet connection to be installed. I am having issues setting up DD-WRT to automatically roll over to the new connection.
I am not confident that the extra vlan has been created successfully.
The commands I executed are:
Code:
root@DD-WRT:~# nvram get vlan0ports
1 2 3 4 5*
root@DD-WRT:~# nvram get vlan1ports
0 5
root@DD-WRT:~# nvram get vlan2ports
root@DD-WRT:~# nvram set vlan0ports="2 3 4 5*"
root@DD-WRT:~# nvram set vlan2ports="1 5"
root@DD-WRT:~# nvram vlan2hwname=et0
root@DD-WRT:~# nvram set wan2_ifnames=vlan2
root@DD-WRT:~# nvram set wan2_ifname=vlan2
root@DD-WRT:~# nvram set wan2_mtu=1500
root@DD-WRT:~# nvram commit
root@DD-WRT:~# ifconfig vlan2 192.168.1.2 netmask 255.255.255.0
ifconfig: SIOCSIFADDR: No such device
I then realized that the second wan will have a dynamic ip address, so I executed:
Code:
root@DD-WRT:~# nvram set wan2_proto=dynamic
root@DD-WRT:~# nvram commit
root@DD-WRT:~# ifconfig vlan2 192.168.1.1 netmask 255.255.255.0
ifconfig: SIOCSIFADDR: No such device
When I go to 192.168.1.1/Vlan.asp, I don't see any of my changes reflected. VLAN 0 has ports 1, 2, 3, and 4. And VLAN 1 is assigned to W. I do not see the VLANs tab under Setup, so I do not know if the output can be trusted. (Perhaps the page only works with the mega build of dd-wrt?).
The second wan is a dsl connection. I have set it to bridge mode, but I haven't set the pppoe credentials on it yet. I have given the modem a static ip address of 192.168.1.2. DD-WRT is running on 192.168.1.1. The primary WAN is a cable modem at 192.168.100.1.
I am not very familiar with networking, though I am a software developer, so I am comfortable in a linux shell.
In case it is useful:
Code:
root@DD-WRT:~# ifconfig vlan2
ifconfig: vlan2: error fetching interface information: Device not found
It is indeed a Linksys device with a Marvel chipset. When I authored the post, I was unaware of the differences between Broadcom and Marvell.
Separate from dd-wrt, I have been having issues putting my dsl modem in bridge mode. I will have to resolve those problems before I can progress with configuring my router.
Thank you for your assistance. I greatly appreciate it.