Joined: 06 Apr 2007 Posts: 545 Location: New Hampshire
Posted: Mon Apr 28, 2008 13:07 Post subject:
through ip route
ip route's default gateway is to equalize the out bound connections. iptables then marks those outbound packets, so it knows how to route them, and to do source network address translation (or SNAT).
if you do ip route, you will see that it equalizes the outbound connections. _________________
Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std
running dd-wrt RC7-9433 it defaults to vlan1, how can i equalize it?
Code:
root@DD-WRT:~# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.1
81.*.*.0/22 dev vlan2 proto kernel scope link src 8*.**.*4.*
81.*.*.0/22 dev vlan1 proto kernel scope link src 8*.**.*3.*
169.254.0.0/16 dev br0 proto kernel scope link src 169.254.255.1
127.0.0.0/8 dev lo scope link
default via 8*.*.*.* dev vlan1
root@DD-WRT:~#
Joined: 06 Apr 2007 Posts: 545 Location: New Hampshire
Posted: Mon Apr 28, 2008 15:51 Post subject:
trickstar wrote:
running dd-wrt RC7-9433 it defaults to vlan1, how can i equalize it?
Code:
root@DD-WRT:~# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.1
81.*.*.0/22 dev vlan2 proto kernel scope link src 8*.**.*4.*
81.*.*.0/22 dev vlan1 proto kernel scope link src 8*.**.*3.*
169.254.0.0/16 dev br0 proto kernel scope link src 169.254.255.1
127.0.0.0/8 dev lo scope link
default via 8*.*.*.* dev vlan1
root@DD-WRT:~#
Code:
ip route delete default
ip route add default scope global equalize nexthop via <gateway> dev vlan1 nexthop via <gateway> dev vlan2
or, if you use the scripts:
Code:
ip route add default scope global equalize nexthop via $(nvram get wan_gateway) dev $(nvram get wan_ifname) nexthop via $(nvram get wan2_gateway) dev $(nvram get wan2_ifname)
_________________
Linksys EA6500v2 | 5GHz 1st Floor AP | Advanced Tomato 1.28.0000 -2.9-131 K26ARM USB AIO-64K
Netgear WNR2000v3 | 2nd Floor AP | DD-WRT v3.0-r27805 std
im using the v24 script. i tried the second code posted (or, if you use the scripts:), this is what i get.
Code:
root@DD-WRT:~# ip route add default scope global equalize nexthop via $(nvram get wan_gateway) dev $(nvram get wan_ifname)
RTNETLINK answers: File exists
root@DD-WRT:~# nexthop via $(nvram get wan2_gateway) dev $(nvram get wan2_ifname)
-sh: nexthop: not found
root@DD-WRT:~#
never mind the above msg, needed to delete default
Code:
root@DD-WRT:~# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.1
8*.*.*.0/22 dev vlan2 proto kernel scope link src 8*.*.*.*
8*.*.*.0/22 dev vlan1 proto kernel scope link src 8*.*.*.*
169.254.0.0/16 dev br0 proto kernel scope link src 169.254.255.1
127.0.0.0/8 dev lo scope link
default equalize
nexthop via 8*.*.*.* dev vlan1 weight 1
nexthop via 8*.*.*.* dev vlan2 weight 1
root@DD-WRT:~#
I got an Asus WL-500W with V24 RC7 9433 mega build, and it doesn't show up the VLAN button un the web gui. Eko indicated that the 500W doesn't use this option at all, and that's why it doesn't show up. Can I still make the dual/triple wan to work with this router?
I configure the vlan as describe in 1st post and run the code in administration-command.
Normal Wan port still works as normal. However I cannot get wan2 (port4) to work. How do I go about to know if port 4(wan2) manage to obtain an IP addres??