Well I think I have it working... should this combine the bandwidth or is this load balancing? I noticed if I do a bandwidth test it like randomly picks a wan to use and I seem to keep losing my connection with them both running... but I have verified that both VLAN's are pulling a ip and are functioning but I'm just not sure if its working right. Any help would be appreciated.
You are doing load sharing and not bonding, so you wont get twice your bandwidth unless you start multiple downloads.
nvram set vlan1ports="1 2 3 8*"
nvram set vlan3ports="4 8"
nvram set vlan3hwname=et0
nvram commit
reboot
change this
udhcpc -s /jffs/scripts/udhcpc-wan2.script -i vlan2
to
udhcpc -s /jffs/scripts/udhcpc-wan2.script -i vlan3
everything else is the same to the wrt54g
Thank you for the reply. I'll give this a try. This is for Dual, right? I want to get to Triple. How would I set that up?
Thanks again...
for triple, you'd do this:
nvram set vlan1ports="1 2 8*"
nvram set vlan3ports="4 8"
nvram set vlan3hwname=et0
nvram set vlan4ports="3 8"
nvram set vlan4hwname=et0
nvram commit
reboot
and in startup scripts...
udhcpc -s /jffs/scripts/udhcpc-wan2.script -i vlan3
udhcpc -s /jffs/scripts/udhcpc-wan3.script -i vlan4
/jffs/scrips/routes-triple.firewall
firewall:
/jffs/scripts/firewall-triple.firewall
--I forget where those scripts are found in this thread for triple, but they're in here somewhere
hope this helps
This did help. I have the vlan ports set up and all seems to be working there. However, I'm using static IP. Most of the code snippets I've looked through detail DHCP through scripts. I've found 1 instance in 54 pages that describes static IP, but the listing only provides that section. I'm not sure which of the scripts to delete and which to keep. Can you help there?
Thank you.
if [ "$STATE" = "on" ]; then
if [ "$PROTO" = "both" ]; then
iptables -A PREROUTING -t nat -p udp -d $(nvram get wan2_ipaddr) --dport $SPORT:$EPORT -j DNAT --to $TO
iptables -A PREROUTING -t nat -p tcp -d $(nvram get wan2_ipaddr) --dport $SPORT:$EPORT -j DNAT --to $TO
else
iptables -A PREROUTING -t nat -p $PROTO -d $(nvram get wan2_ipaddr) --dport $SPORT:$EPORT -j DNAT --to $TO
fi
fi
done
iptables -A PREROUTING -t nat -p icmp -d $(nvram get wan2_ipaddr) -j DNAT --to $(nvram get lan_ipaddr)
if [ $(nvram get remote_management) -eq 1 ]; then
iptables -A PREROUTING -t nat -p tcp -d $(nvram get wan2_ipaddr) --dport $(nvram get http_wanport) -j DNAT --to $(nvram get lan_ipaddr):$(nvram get http_lanport)
fi
if [ $(nvram get dmz_enable) -eq 1 ]; then
DMZ_IP=$(nvram get lan_ipaddr | sed -r 's/[0-9]+$//')$(nvram get dmz_ipaddr)
iptables -A PREROUTING -t nat -d $(nvram get wan2_ipaddr) -j DNAT --to $DMZ_IP
fi
iptables -A PREROUTING -t nat --dest $(nvram get wan2_ipaddr) -j TRIGGER --trigger-type dnat
iptables -A FORWARD -i $(nvram get wan2_ifname) -o $(nvram get lan_ifname) -j TRIGGER --trigger-type in
$IPTABLES -t mangle -N ETH1
$IPTABLES -t mangle -F ETH1
$IPTABLES -t mangle -A ETH1 -j MARK --set-mark 0x100
$IPTABLES -t mangle -A ETH1 -j CONNMARK --save-mark
$IPTABLES -t mangle -N ETH2
$IPTABLES -t mangle -F ETH2
$IPTABLES -t mangle -A ETH2 -j MARK --set-mark 0x200
$IPTABLES -t mangle -A ETH2 -j CONNMARK --save-mark
$IPTABLES -t mangle -N RANDOM
$IPTABLES -t mangle -F RANDOM
$IPTABLES -t mangle -A RANDOM -m random --average 50 -j ETH1
$IPTABLES -t mangle -A RANDOM -m random --average 50 -j ETH2
Well I think I have it working... should this combine the bandwidth or is this load balancing? I noticed if I do a bandwidth test it like randomly picks a wan to use and I seem to keep losing my connection with them both running... but I have verified that both VLAN's are pulling a ip and are functioning but I'm just not sure if its working right. Any help would be appreciated.
You are doing load sharing and not bonding, so you wont get twice your bandwidth unless you start multiple downloads.
Can I have outputs of ifconfig and ip route?
Where there are x's are an ip but I don't want to give it out to the public =P, I have a cable modem with a 5meg down 2 meg up in one input and my dsl which is only 1.5 meg down and 768kbps up in my second input. My question is if I'm playing a game if I'm doing this will it disconnect me constantly? Or should it grab one wan and stay stable? Thanks for the help btw I really appreciate it. Do you need the scripts I'm using?
Here is my ip route
192.168.2.0/24 dev br0 proto kernel scope link src 192.168.2.1
192.168.0.0/24 dev vlan2 proto kernel scope link src 192.168.0.2
xx.xxx.32.0/22 dev vlan1 proto kernel scope link src x.x.34.129
169.254.0.0/16 dev br0 proto kernel scope link src x.x.255.1
127.0.0.0/8 dev lo scope link
default equalize
nexthop via x.x.32.1 dev vlan1 weight 1
nexthop via 192.168.0.1 dev vlan2 weight 1
startup has udhcp and firewall has both firewall scripts.
It turns out it worked, however, system load went to the roof when downloading torrents, and the result is that I couldn't get any speed bumps.
Its two 10mbit cable lines.
I'm using the following firmware, maybe this is the cause:
Firmware: EzPlanet v24.1 (build 132 23/07/07) ipvs
Time: 16:32:53 up 16 min, load average: 1.36, 1.22, 0.65
I probably should update to a newer ddwrt version however I'm confused with that activation thing. Any information would be welcome.
I'm using the following firmware, maybe this is the cause:
Firmware: EzPlanet v24.1 (build 132 23/07/07) ipvs
Time: 16:32:53 up 16 min, load average: 1.36, 1.22, 0.65
I probably should update to a newer ddwrt version however I'm confused with that activation thing. Any information would be welcome.
Thanks again for the good work and support.
You're not using DD-WRT, you're using a fork of a very old build.
You should telnet in and run "top" to check what is using all the cpu/mem.
ezplanet is for inbound load balancing is it not? i remember finding that download.
try v24 at least, bs builds, from january works good.
"Inbound load balancing" requires a routing protocol between you and your ISP's. It seems that the ezplanet firmware was an attempt to make a gui for load balancing that was abandoned. There's a post in their news that states they use the firmware to load balance their servers but whatever their setup is, they can't be load balancing incoming data without a routing protocol which is not what the scripts do although DD-WRT is capable of it.
I'd stick to a firmware that has active development, like the one who's forums you're asking for help on.
got mine workin now on v24sp2
i had too set it up as i would with v23sp2 with jffs
also you can just update fw from v23sp2 too v24sp2 without resetting defaults
now dl at max speed on 2 cable modems which i couldnt achieve on v23sp2
got mine workin now on v24sp2
i had too set it up as i would with v23sp2 with jffs
also you can just update fw from v23sp2 too v24sp2 without resetting defaults
now dl at max speed on 2 cable modems which i couldnt achieve on v23sp2
How did you manage to get round the same network problem with the 2 cable modems?
I was just wondering if anyone experience the router freezen up or crashes on you and have to unplug the router to startup again? I'm experience that kind of problem maybe approximately 2-3 times a day. I'm running dual wan configuration on dd-wrt v23 sp2 nokiad generic std firmware on a WRT54G-TM router. I have follow the process on how to setup dual wan on the first post and flash my router with the mini than follow up with the stand nokiad std version. Any suggestion or fix i can take to fix the crashes of the router? Thanks a lot fellas.