Hi... First of all, thanks Adze for his great work.... Multiwan never worked for us properly, and mwan2 is almost there
I have 2 PPPoE wan links. I set mwan2 to load balance them (metric/weight=1). We use a rule for a custom checkip service, with equalize=1, and we see the reported IP changes every time we reload.
The problem we have is that sometimes, after reboot, wan1 is activated (ping -I pppoe-wan1 8.8.8.8 works), we can see mwan2 adding rules for it in logread, BUT the ip table 1 is empty (and table 3 only refers to wan2). If I restart wan1 (ifdown wan1 ; ifup wan1) everything fixes.
Before:
root@corpe-gt:~# ip route show table 1
root@corpe-gt:~# ip route show table 2
default via 192.168.153.1 dev pppoe-wan2 metric 1
root@corpe-gt:~# ip route show table 3
default via 192.168.153.1 dev pppoe-wan2 metric 1
After restarting wan1:
root@corpe-gt:~# ip route show table 1
default via 80.58.67.104 dev pppoe-wan1 metric 1
root@corpe-gt:~# ip route show table 2
default via 192.168.153.1 dev pppoe-wan2 metric 1
root@corpe-gt:~# ip route show table 3
default metric 1
nexthop via 80.58.67.104 dev pppoe-wan1 weight 1
nexthop via 192.168.153.1 dev pppoe-wan2 weight 1
We are using a custom built openwrt, r32576, no modifications. Uting qos-scripts with both interfaces defined there. Legacy multiwan not installed.
Any clue on what may be happening?
/etc/config/network (relevant lines)
config interface 'wan1'
option proto 'pppoe'
option ifname 'eth0.1'
option username 'adslppp@telefonicanetpa'
option password 'adslppp'
option peerdns '0'
option dns '8.8.8.8'
config interface 'wan2'
option proto 'pppoe'
option ifname 'eth0.2'
option username 'adslppp@telefonicanetpa'
option password 'adslppp'
option peerdns '0'
option dns '8.8.8.8'
/etc/config/mwan2
config 'interface' 'wan1'
option 'enabled' '1'
option 'metric' '1'
option 'weight' '1'
option 'track_ip' '8.8.8.8'
option 'count' '1'
option 'timeout' '2'
option 'interval' '5'
option 'down' '3'
option 'up' '8'
config 'interface' 'wan2'
option 'enabled' '1'
option 'metric' '1'
option 'weight' '1'
option 'track_ip' '8.8.4.4'
option 'count' '1'
option 'timeout' '2'
option 'interval' '5'
option 'down' '3'
option 'up' '8'
# We have openvpn routing that subnet. The routes are pushed by openvpn (seems to be working fine)
config 'rule'
option 'dest_ip' '10.100.0.0/16'
list 'use_interface' 'default'
# checkip service, for testing equalice=1
config 'rule'
option 'dest_ip' '188.165.xxx.xxx/32'
option 'proto' 'tcp'
option 'equalize' '1'
list 'use_interface' 'wan1'
list 'use_interface' 'wan2'
# default rule
config 'rule'
option 'dest_ip' '0.0.0.0/0'
#option 'equalize' '1'
list 'use_interface' 'wan1'
list 'use_interface' 'wan2'
Thanks in advance,
Julian.