DD-WRT:Dual-WAN for simple round-robin load equalization

(copied from forum-posting by user aldoir Dual-WAN forum posting

You'll need to create a new VLAN, called vlan2.

Enter in the web interface, Settings/VLANs. Set Port 4 to a new VLAN.

Enter in the console, and do the following commands

commands to set VLANs

Here are the scripts I used to startup the interface. You need to call them in rc_firewall

wan2.firewall

//edit - dont like this bit, it doesnt seem to be for DHCP connection and looks like its for a static IP connection

routes.firewall

firewall.firewall

Once everything works, you should use the command ' ip route equalize' (search with Google for the syntax) to balance the load, or do a -j MARK --set-mark 0xN00 via iptables to redirect your traffig to WAN1 (0x100) or WAN2 (0x200)

If you need further assistance, post in forums or PM-me

The firewall scripts does not yet implement the full DD-WRT firewall, only the basic port/range forwarding.

This is script works for both outgoing AND incoming connections (most scripts only treats outgoing), so you should be able to accept connections in both links simultaneous (eg. web in one and FTP in another).