OpenWrt Forum Archive

Topic: failover with mroute

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm using OpenWrt Kamikaze - With X-Wrt Extensions 8.09 .

I installed the m-route package (opkg install m-route) to use a second wan as a failover.

I've set it up and it now load balances between the two wan connections, but I only want wan2 to come up if connectivity is lost on wan.


Below is a dump of my /etc/config/mroute file

configwebsettings'webadmin'
        option 'userlevel' '1'
        option 'enable' '1'

config 'mroute' 'settings'
        option 'os' 'OpenWrt'
        option 'debug' '5'
        option 'sleeptime' '5'
        option 'testip' '204.225.44.3'
        option 'timeout' '2'
        option 'success' '2'
        option 'failure' '3'
        option 'resetif' '5'

config 'wanif' 'wan'
        option 'name' 'WAN'
        option 'weight' '1'

config 'lanif' 'lan'
        option 'name' 'LAN'

config 'wanif' 'wan1'
        option 'name' 'WAN_2'
        option 'weight' '2'

config 'mroute' 'system'
        option 'apply' '/usr/lib/lua/lua-xwrt/applys/mroute.lua'

Any ideas?

OpenWrt does not have such a package. X-Wrt has it's own support.

Thanks Dogge, I was under the impression this package was part of openwrt. Apologies.

The discussion might have continued from here.