OpenWrt Forum Archive

Topic: mwan3 error on restart

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

I'm running mwan3 1.5-8 and get the following errors when doing a mwan3 restart:
sh: enabled: unknown operand
uci: Entry not found
uci: Entry not found

mwan3 seems to be working, but do I have something wrong or missing?

My network file:
config switch 'eth0'
    option enable '1'

config switch_vlan 'eth0_1'
    option device 'eth0'
    option vlan '1'
    option ports '0 2 3 4 8t'

config switch_vlan 'eth0_4081'
    option device 'eth0'
    option vlan '4081'
    option ports '0 8t'

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.1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.0.1'
    option netmask '255.255.255.0'

config interface 'wan'
    option ifname 'eth0.4081'
    option proto 'dhcp'
    option ipv6 '0'
    option metric '10'
    option mtu '1500'
    option dns ' '

config interface 'wan6'
    option ifname '@wan'
    option proto 'dhcpv6'

config switch_vlan 'eth0_4082'
    option device 'eth0'
    option vlan '4082'
    option ports '1 8t'

config interface 'wan2'
    option ifname 'eth0.4082'
    option proto 'dhcp'
    option ipv6 '0'
    option dns ' '
    option mtu '1500'
    option metric '20'

my mwan3 file:
config interface 'wan'
    option reliability '1'
    option count '1'
    option timeout '2'
    option interval '5'
    option down '3'
    option up '5'
    option enabled '1'
    list track_ip '207.67.222.222'
    list track_ip '8.8.8.8'

config interface 'wan2'
    option reliability '1'
    option count '1'
    option timeout '2'
    option interval '5'
    option down '3'
    option up '5'
    option enabled '1'
    list track_ip '208.67.222.222'
    list track_ip '8.8.8.8'

config member 'wan_g1_w3'
    option interface 'wan'
    option metric '1'
    option weight '3'

config member 'wan_g2_w3'
    option interface 'wan'
    option metric '2'
    option weight '3'

config member 'wan2_g1_w2'
    option interface 'wan2'
    option metric '1'
    option weight '2'

config member 'wan2_g2_w2'
    option interface 'wan2'
    option metric '2'
    option weight '2'

config policy 'wan_only'
    list use_member 'wan_g1_w3'

config policy 'wan2_only'
    list use_member 'wan2_g1_w2'

config policy 'balanced'
    list use_member 'wan_g1_w3'
    list use_member 'wan2_g1_w2'

config policy 'wan_wan2'
    list use_member 'wan_g1_w3'
    list use_member 'wan2_g2_w2'

config policy 'wan2_wan'
    list use_member 'wan_g2_w3'
    list use_member 'wan2_g1_w2'

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

Try 1.5-10

The discussion might have continued from here.