Hey everyone! I've recently started using OpenWRT, and I'm facing an issue. When using mwan3 (I have two ISPs), I experience very slow speeds, very high ping, and sometimes even network drops. Can anyone help me figure out what might be causing this?
WAN is the primary connection. I want to use WAN1 when WAN is unavailable. Also, for some clients, I want to set WAN1 as the primary gateway due to its faster network speed
I'm a little confused about all this, everything worked fine in OPNsense, but I have a need to use OWRT
Did I understand you correctly, this is how it should look?
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0b:343c:2374::/48'
option packet_steering '1'
config interface 'lan'
option device 'eth3'
option proto 'static'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option delegate '0'
config interface 'wan'
option device 'eth2'
option proto 'dhcp'
option peerdns '0'
option metric '1'
list dns '8.8.8.8'
config interface 'wan1'
option device 'eth4'
option proto 'dhcp'
option metric '2'
list dns '8.8.8.8'
config interface 'lan1'
option proto 'static'
option device 'eth1'
option ipaddr '172.168.5.1'
option netmask '255.255.255.0'
I think it's supposed to look like this. It switches to wan1 if wan goes down, and returns the connection if wan becomes available again.
Also, the client with the address 192.168.5.191 always gets access to wan1 due to its higher speed.
But I'm not entirely sure if this is correct
/etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0b:343c:2374::/48'
option packet_steering '1'
config interface 'lan'
option device 'eth3'
option proto 'static'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option delegate '0'
config interface 'wan'
option device 'eth2'
option proto 'dhcp'
option peerdns '0'
option metric '1'
list dns '8.8.8.8'
config interface 'wan1'
option device 'eth4'
option proto 'dhcp'
option metric '2'
list dns '8.8.8.8'
config interface 'lan1'
option proto 'static'
option device 'eth1'
option ipaddr '172.168.5.1'
option netmask '255.255.255.0'
I don't know if it's important to you, but just to clarify that if option peerdns is not set to 0, the DNS servers advertised by the provider via DHCP will also be added to the list of upstream servers among the custom DNS.