Hello ,
I’m trying to make my router work with 2 WAN so I will use both of them in the same time
so if I have in WAN1 rate of 3Mbps\1Mbps and in WAN2 I have 5Mbps\1Mbps I will be able to work at 8Mbps\2Mbps
I have almost mange to do this - but it doesn’t work stable, sometime it doesn’t use WAN2(or WAN1) at all
2sims-together.PNG
/interface lte
set [ find ] apn=interne. authentication=pap name=WAN1 network-mode=auto password=*** user=****
set [ find ] apn=internet authentication=pap name=WAN2 network-mode=auto password=*** user=****
/ip pool
add name=dhcp_pool1 ranges=10.0.0.125-10.0.0.127
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether1 lease-time=1h name=\
dhcp1
/ip address
add address=10.0.0.121/24 interface=ether1 network=10.0.0.0
/ip dhcp-client
add add-default-route=no dhcp-options=hostname,clientid disabled=no \
interface=WAN1
add add-default-route=no dhcp-options=hostname,clientid disabled=no \
interface=WAN2
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.0.0.121
/ip dns
set allow-remote-requests=yes cache-size=5000KiB max-udp-packet-size=512 \
servers=8.8.8.8,8.8.4.4
/ip firewall mangle
add action=mark-connection chain=input in-interface=WAN1 new-connection-mark=\
WAN1_conn
add action=mark-connection chain=input in-interface=WAN2 new-connection-mark=\
WAN2_conn
add action=mark-routing chain=output connection-mark=WAN1_conn \
new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn \
new-routing-mark=to_WAN2
add chain=prerouting dst-address=10.43.5.0/24 in-interface=all-ethernet
add chain=prerouting dst-address=10.44.46.0/24 in-interface=all-ethernet
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=all-ethernet new-connection-mark=WAN1_conn \
per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=all-ethernet new-connection-mark=WAN2_conn \
per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_conn \
in-interface=all-ethernet new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn \
in-interface=all-ethernet new-routing-mark=to_WAN2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
/ip route
add check-gateway=ping distance=1 gateway=WAN1 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=WAN2 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=WAN1
add check-gateway=ping distance=2 gateway=WAN2
/ip service
set api disabled=yes
/system identity
set name=Test
/system logging
add disabled=yes topics=debug
can someone guide\help me?
Thanks ,