Community discussions

MikroTik App
 
maah
just joined
Topic Author
Posts: 4
Joined: Sat Dec 11, 2021 12:12 pm

WAN LAN on the same Bridge

Sat Dec 11, 2021 12:57 pm

I am about to create load balance between two WAN connections on Mikrotik router board, the problem is no internet is working. My router has the following configuration:
/interface ethernet
set [ find default-name=ether3 ] name=LAN
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2

/ip pool
add name=dhcp_pool1 ranges=192.168.88.1-192.168.88.9
/ip address
add address=192.168.88.10/24 interface=LAN network=192.168.88.0
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=LAN name=dhcp1

/ip dhcp-client
add add-default-route=no disabled=no interface=WAN1
add add-default-route=no disabled=no interface=WAN2

/ip dhcp-server network
add address=192.168.8.10/32 dns-server=0.0.0.0 gateway=192.168.8.0 netmask=24
add address=192.168.88.0/24 dns-server=0.0.0.0 gateway=192.168.88.10 netmask=24
add address=192.168.137.0/24 gateway=192.168.137.1 netmask=24

/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

/ip firewall mangle
add chain=prerouting dst-address=192.168.8.0/24 in-interface=LAN
add chain=prerouting dst-address=192.168.137.0/24 in-interface=LAN
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1 \
new-connection-mark=WAN1_con
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN2 \
new-connection-mark=WAN2_con
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local \
in-interface=LAN new-connection-mark=WAN1_con per-connection-classifier=\
both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark dst-address-type=!local \
in-interface=LAN new-connection-mark=WAN2_con per-connection-classifier=\
both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1_con in-interface=LAN new-routing-mark=\
to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_con in-interface=LAN new-routing-mark=\
to_WAN2
add action=mark-routing chain=output connection-mark=WAN1_con new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_con 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=WAN2
add check-gateway=ping distance=1 gateway=WAN1

I would very much appreciate one to help.

Thanks in advance.
 
maah
just joined
Topic Author
Posts: 4
Joined: Sat Dec 11, 2021 12:12 pm

Re: WAN LAN on the same Bridge  [SOLVED]

Fri Dec 31, 2021 8:51 am

Having made the routes static, we have done with the problem.

I have also learnt, that certain 4G mobile routers and not working with the Mikrotik.

Who is online

Users browsing this forum: DenisPDA, settecplus and 195 guests