Thanks for providing multiwan!
I installed multiwan_1.0k.ipk and luci-app-multiwan_1.0k.ipk from ftp://ftp.netlab7.com/ on an Asus wl-500gp with Backfire 10.03 brcm 47xx generic image. I have two wan interfaces (wan15cable and wan14dsl), each having a public IP address configured by dhcp. Multiwan finds the interfaces and configures them. Failover seems to work -- apart from DNS complaining: nameserver 195.186.1.162 refused to do a recursive query.
However load balancing does not. Traffic is always forwarded through the second interface as configured in /etc/config/multiwan. If I change the order of the interfaces in that file - traffic is forwarded trough the other interface. I observe traffic by the max download speed of a couple of torrents and the traffic counter on the interfaces as shown by ifconfig.
Any ideas?
Thanks
Kubu
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.13
92.105.81.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.14
91.138.20.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0.15
0.0.0.0 91.138.20.1 0.0.0.0 UG 0 0 0 eth0.15
0.0.0.0 92.105.81.1 0.0.0.0 UG 0 0 0 eth0.14
# ip route show table 123
192.168.1.0/24 dev eth0.13 proto kernel scope link src 192.168.1.1
92.105.81.0/24 dev eth0.14 proto kernel scope link src 92.105.81.205
91.138.20.0/22 dev eth0.15 proto kernel scope link src 91.138.21.138
default proto static
nexthop via 92.105.81.1 dev eth0.14 weight 8
nexthop via 91.138.20.1 dev eth0.15 weight 4
# ip route show table 10
192.168.1.0/24 dev eth0.13 proto kernel scope link src 192.168.1.1
92.105.81.0/24 dev eth0.14 proto kernel scope link src 92.105.81.205
91.138.20.0/22 dev eth0.15 proto kernel scope link src 91.138.21.138
default via 92.105.81.1 dev eth0.14 proto static src 92.105.81.205
# ip route show table 20
192.168.1.0/24 dev eth0.13 proto kernel scope link src 192.168.1.1
92.105.81.0/24 dev eth0.14 proto kernel scope link src 92.105.81.205
91.138.20.0/22 dev eth0.15 proto kernel scope link src 91.138.21.138
default via 91.138.20.1 dev eth0.15 proto static src 91.138.21.138
The configuration is:
# cat /etc/config/multiwan
config 'multiwan' 'config'
option 'default_route' 'balancer'
option 'resolv_conf' '/tmp/resolv.conf.auto'
config 'interface' 'wan14dsl'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'health_interval' '60'
option 'icmp_hosts' 'gateway'
option 'weight' '8'
option 'failover_to' 'balancer'
config 'interface' 'wan15cable'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'health_interval' '60'
option 'icmp_hosts' 'gateway'
option 'weight' '4'
option 'failover_to' 'balancer'
I reduced the health_interval. Failures of connections are very rare events. I do not fully understand the option failover_to.
To avoid problems with DNS I configured Google's public DNS server for the two interfaces:
# cat /etc/config/network
config 'interface' 'wan15cable'
option 'ifname' 'eth0.15'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'dns' '8.8.8.8'
option 'proto' 'dhcp'
config 'interface' 'wan14dsl'
option 'ifname' 'eth0.14'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'dns' '8.8.4.4'
option 'proto' 'dhcp'
(Last edited by kubu on 21 Apr 2010, 15:20)