OpenWrt Forum Archive

Topic: Mwan3 ethernet unkown in DHCP

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

Hi,
I am using mwan3 package to switch between Ethernet and 3g dongle for fail over case. When I am configuring my Ethernet as static ip, everything is working fine along with switching between Ethernet and 3g dongle. But when I configure my Ethernet for dhcp protocol, Ethernet is either unknown or offline. Sometimes I am able to get "tracking is active" for Ethernet in dhcp case. On debugging a little, I came to know that mwan3 is unable to get the default route for Ethernet. Below are my network and mwan3 configuration files.

My network configuration is :-
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'dhcp'
        option metric '1'
        option hostname 'gaurh'

config interface 'wan'
        option proto '3g'
        option device '/dev/ttyUSB0'
        option service 'umts'
        option apn '#777'
        option username 'internet'
        option password 'internet'
        option metric '2'
And mwan3 configuration :-

config interface 'lan'
        option enabled '1'
        list track_ip '8.8.4.4'
        list track_ip '8.8.8.8'
        list track_ip '208.67.222.222'
        list track_ip '208.67.220.220'
        option reliability '2'
        option count '1'
        option timeout '2'
        option interval '5'
        option down '3'
        option up '8'

config interface 'wan'
        option enabled '1'
        list track_ip '8.8.8.8'
        list track_ip '208.67.220.220'
        option reliability '1'
        option count '1'
        option timeout '2'
        option interval '5'
        option down '3'
        option up '8'

config member 'lan_m1_w3'
        option interface 'lan'
        option metric '1'
        option weight '3'

config member 'lan_m2_w3'
        option interface 'lan'
        option metric '2'
        option weight '3'

config member 'wan_m1_w2'
        option interface 'wan'
        option metric '1'
        option weight '2'

config member 'wan_m2_w2'
        option interface 'wan'
        option metric '2'
        option weight '2'

config policy 'lan_only'
        list use_member 'lan_m1_w3'

config policy 'wan_only'
        list use_member 'wan_m1_w2'

config policy 'balanced'
        list use_member 'lan_m1_w3'
        list use_member 'wan_m1_w2'

config policy 'lan_wan'
        list use_member 'lan_m1_w3'
        list use_member 'wan_m2_w2'

config policy 'wan_lan'
        list use_member 'lan_m2_w3'
        list use_member 'wan_m1_w2'

config rule '#h#ttps'
        option sticky '1'
        option dest_port '443'
        option proto 'tcp'
        option use_policy 'balanced'

config rule 'default_rule'
        option dest_ip '0.0.0.0/0'
        option use_policy 'lan_wan'

I am stuck at this issue for a long time. Any help will be appreciated.

(Last edited by will.shivam5555 on 15 Mar 2017, 10:54)

Hi , Please give suggestion regarding this !!!!!

The discussion might have continued from here.