OpenWrt Forum Archive

Topic: mwan3 configuration

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

hi all
I have 2 connection with same bandwidth
I want do load balancing to use aggregate bandwidth and increase my bandwidth for downloads
but I can't do it with this configuration
please help me to get all of my bandwidth
please help
Best Regards

MWAN Config
config interface 'wan'
        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 'wwan'
        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 'wan_m1_w3'
        option interface 'wan'
        option metric '1'
        option weight '3'

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

config member 'wan2_m1_w2'
        option interface 'wwan'
        option metric '1'
        option weight '2'

config member 'wan2_m2_w2'
        option interface 'wwan'
        option metric '2'
        option weight '2'

config policy 'wan_only'
        list use_member 'wan_m1_w3'

config policy 'wan2_only'
        list use_member 'wan2_m1_w2'

config policy 'balanced'
        list use_member 'wan_m1_w3'
        list use_member 'wan2_m1_w2'

config policy 'wan_wan2'
        list use_member 'wan_m1_w3'
        list use_member 'wan2_m2_w2'

config policy 'wan2_wan'
        list use_member 'wan_m2_w3'
        list use_member 'wan2_m1_w2'

config rule 'sticky_even'
        option src_ip '0.0.0.0/0.0.0.1'
        option dest_port '443'
        option proto 'tcp'
        option use_policy 'wan_wan2'

config rule 'sticky_odd'
        option src_ip '0.0.0.1/0.0.0.1'
        option dest_port '443'
        option proto 'tcp'
        option use_policy 'wan2_wan'

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

Network Config
config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd49:5895:44e3::/48'

config interface 'lan'
    option type 'bridge'
    option proto 'static'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option _orig_ifname 'eth0'
    option _orig_bridge 'true'
    option ifname 'eth0'
    option ipaddr '192.168.1.5'

config interface 'wan2'
    option proto 'dhcp'
    option ifname 'usb1'
    option metric '20'
    option peerdns '0'

config interface 'wan'
    option ifname 'usb0'
    option _orig_ifname 'usb0'
    option _orig_bridge 'false'
    option proto 'dhcp'
    option metric '10'

config interface 'lan2'
    option _orig_ifname 'radio0.network1'
    option _orig_bridge 'false'
    option proto 'static'
    option type 'bridge'
    option ifname 'lan2'
    option ipaddr '192.168.100.1'
    option netmask '255.255.255.0'

config interface 'vlan1'
    option type 'bridge'
    option _orig_ifname 'eth0.1 usb0'
    option _orig_bridge 'true'
    option proto 'static'
    option ipaddr '192.168.11.1'
    option netmask '255.255.255.0'
    option ifname 'eth0.1'

config interface 'vlan2'
    option type 'bridge'
    option _orig_ifname 'eth0.2 usb1'
    option _orig_bridge 'true'
    option proto 'static'
    option netmask '255.255.255.0'
    option ifname 'eth0.2'
    option ipaddr '192.168.12.1'

config interface 'vlan3'
    option type 'bridge'
    option _orig_ifname 'eth0.3 usb2'
    option _orig_bridge 'true'
    option proto 'static'
    option netmask '255.255.255.0'
    option ifname 'eth0.3'
    option ipaddr '192.168.13.1'

config interface 'wwan'
    option proto 'dhcp'
    option metric '20'

where am I wrong?
please help
Best Regards

It appears to be set up properly, but realize that it is not technically possible for anything implemented only by the customer's end to form a true "bond" of multiple ISP lines.  In order to bond and double the bandwidth of a single download, you need cooperation from the ISP to combine both of the lines back into a single public IP. 

What mwan does is balance multiple user connections between the two Internet services.  So if you are downloading a file, it goes through one ISP only.  If you or another user on the LAN request another file while it is still downloading, the other file should go through the other ISP.

Thanks alot for your reply
I understand what you are saying
I mean downloading by IDM that gets multiple links
I have tplink r470t load balance and with that I download with all wans by one download from IDM
is it possible with openwrt?
please help
Best Regards

mk24 wrote:

It appears to be set up properly, but realize that it is not technically possible for anything implemented only by the customer's end to form a true "bond" of multiple ISP lines.  In order to bond and double the bandwidth of a single download, you need cooperation from the ISP to combine both of the lines back into a single public IP. 

What mwan does is balance multiple user connections between the two Internet services.  So if you are downloading a file, it goes through one ISP only.  If you or another user on the LAN request another file while it is still downloading, the other file should go through the other ISP.

I solved the problem
thanks alot

The discussion might have continued from here.