Posted: Wed Feb 17, 2010 20:21 Post subject: RT-N16 & Dual WAN
I'm trying to setup dual WAN (based on Wiki articles) but have no luck (errors during ip route add defaults part RTNETLINK: No such process).
What I have:
RT-N16 (10.0.0.1)
WAN Modem1 (82.1.1.1 - dhcp based)
WAN Modem2 (192.1.1.1 - static)
Comp1 (10.0.0.10)
Comp2 (10.0.0.20)
Comp3 (10.0.0.30)
DD-WRT v24-sp2 (02/03/10) big - build 13832
What I want:
1) route WAN traffic from Comp2 & Comp3 through Modem1
2) route WAN traffic from Comp1 through Modem2
3) pressing EZSetup button - either all traf through Modem 1 or previous mode
4) adjust firewall rules through Web GUI (80 port to Comp2, 25/443 port to Comp3, 1234 port to Comp1)
Kindly ask to provide me with the full script :)
p.s. I've made such a config (except button) under Oleg's firmware & wl-550gE... But have troubles with dd-wrt & n16
You can't change the VLAN port assignments for gigabit switches. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
You can't change the VLAN port assignments for gigabit switches.
Actually, I can. And did it
The trick was to turn on vlan3 and assign 192.1.1.X ip to it. After it no problems - some ip rules & some iptables, that's it.
I'll post complete script here soon, so gurus will adjust & optimize it
I have a Asus RT-N16 and I have also been trying to get dual-WAN working without much luck. Now my situation is that I have fast a cable line that is really unstable and a slow ADSL line that is really stable, so what I want to do is to use both lines simultaneously and when the cable line stops working I do not lose the Internet only lose the speed until the cable line starts working.
Alternatively another setup that might work would be using the cable line all the time until it stops working and then automatically fail over the the ADSL line until the cable line comes back up then it starts using the cable line again. Could you suggest how I might accomplish this?
ip route add 82.1.1.0/25 dev vlan3 table 82
ip route add 10.0.0.0/24 dev br0 table 82
ip route add default via 82.1.1.100 prio 82 table 82
ip rule del from 10.0.0.20
ip rule del from 10.0.0.30
ip rule add from 10.0.0.20 table 82 prio 82
ip rule add from 10.0.0.30 table 82 prio 82
ip route delete default
ip route add default via 192.1.1.1
If I had dual WAN I would test this, but if it truly works, this needs to be added to the Wiki. I wonder if it works for routers with switches other than what the RT-N16 has..? _________________ Optware, the Right Way
Asus RT-AC68U
Asus RT-N66U
Asus RT-N10
Asus RT-N12
Asus RT-N16 x5
Asus WL520gU
Engenious ECB350
Linksys WRT600Nv1.1
Linksys WRT610Nv1
Linksys E2000
Netgear WNDR3300
SonicWall NSA220W
SonicWall TZ215W
SonicWall TZ205W
SonicWall TZ105W
ip route add 82.1.1.0/25 dev vlan3 table 82
ip route add 10.0.0.0/24 dev br0 table 82
ip route add default via 82.1.1.129 prio 82 table 82
ip rule del from 10.0.0.20
ip rule del from 10.0.0.30
ip rule add from 10.0.0.20 table 82 prio 82
ip rule add from 10.0.0.30 table 82 prio 82
ip route delete default
ip route add default via 192.1.1.1
----------------------------------
Remark about 44044 port - for the torrent client. Other ports opened for the Comp2 & Comp3 through Web GUI.
p.s. how to change port/bind of Web GUI?? I wanna run Squid/Pound on 10.0.0.1:80, but GUI already there _________________ Asus WL-550gE -> Asus RT-N16 -> Linksys WRT32X
Don't use VLAN 0 on gigabit models and whichever VLAN you add needs to have vlan#hwname=et0 set.
http://www.dd-wrt.com/wiki/index.php/Switched_Ports _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
I have Asus N-16 I am using the latest firmware of DD-WRT mega 19519 .
I am testing dual wan using two ports
The first one is a DHCP client to other device which is directly connected to the Modem.
The Second one is connected though RG-45 to a router that has 3G USB stick connected.
12. If you don't see vlan2 you didn't do something right so start over. If vlan2 doesn't have an ip address run:
udhcpc -s /jffs/scripts/udhcpc-wan2.script -i vlan2 and see what happens. (If it throws an error or hangs
something is wrong with the file maybe. If it shows an ip then you are golden.