The scripts will not work correctly, if the DHCP server just change the gateway. It will go to the :error "Multiple routes found'. I suggest better script. When you apply it to the WAN2 DHCP client, just change the first line. { :local rmark "to_wan1" :if ($bound=1) do={ :if ([/ip route print count-only where comment=$rmark] = 0) do={ /ip route add distance=1 gateway=$"gateway-address" check-gateway=ping routing-mark=$rmark comment=$rmark /ip route add distance=1 gateway=$"gateway-address" check-gateway=ping comment=$rmark } else={ :foreach r in=[/ip route find where comment=$rmark] do={ :if ([/ip route get $r gateway] != $"gateway-address") do={ /ip route set $r gateway=$"gateway-address" } } } } else={ /ip route remove [find comment=$rmark] } }
thanks for sharing if I want also do this for wireless what I need to do as I see only one port Lan is enabled but for the 2g and 5g wireless to happen what I need to do?
Could you confirm my understanding... if we don't complete the configuration with the mangle rules and simply keep the DHCP client configuration. Then this becomes a simple Dual WAN DHCP client failover solution? ie: the mangle portion allows for load balancing, correct?
Hello, I hope i can receive a response for this. I used this configuration and its work totally fine for my dual wan set-up, however, i can't ping to the networks i created on LAN3 and LAN4 vice versa. Given the fact that, that LAN1 AND LAN2 is for ISP. Any suggestion how my networks could ping each other.
Thank you for this video! i'm successfully join both my WAN connection. if i can ask 1 question, how do i force certain IP Address/client to use only WAN1 ? i tried using source address != "Block to WAN2" but the client still using both WAN connection
what to do if the router has bound to ISP1 is still active but has no internet are there a way to reroute the connection to ISP2? Ive try everything but the connection will be disconnected to and need to cut the connection of isp 1 just to transfer the route to ISP2
the scripts has some extra characters from the parser, should be like this { :local rmark "to_wan2" :local count [/ip route print count-only where comment="to_wan2"] :if ($bound=1) do={ :if ($count = 0) do={ /ip route add distance=1 gateway=$"gateway-address" check-gateway=ping routing-mark=to_wan2 comment="to_wan2" /ip route add distance=1 gateway=$"gateway-address" check-gateway=ping comment="to_wan2" } else={ :if ($count = 1) do={ :local test [/ip route find where comment="to_wan2"] :if ([/ip route get $test gateway] != $"gateway-address") do={ /ip route set $test gateway=$"gateway-address" } } else={ :error "Multiple routes found" } } } else={ /ip route remove [find comment="to_wan2"] } } only changes wan2 for wan1, the logic of the script are the same
Hello there. I have followed the instructions on this video to the T and i'm not getting internet breakout on the mikrotik when the wan is connected to either wan1 or wan 2 - getting no route to host error? Please can you give more information on the ip/route setup?
@@wifilabxyz Thank you so much for the reply. I started everything form scratch and it is now working just as it should. You are probably right , my bad :)
@@wifilabxyz Thank you Sir. Did copy and pasted the script on the Mikrotik terminal. The mikrotik router can ping google.com via terminal but the laptop can't ping google.com. will check again.
(ether1=pppoe-client)+(ovpn -client/l2tp-client/sstp-client/pptp-client) = (ether 2=dhcp) where vpn connection will only be used for block site to open. bro how can i do that?? i need your help .
Thank you for this video. I've been seeking for solution setting up mikrotik with 2 WAN both DHCP-client. Your script is good, but I think there is some mistake in it - in section :if (count=1) we need to write count=2, 'cause we recently created 2 routes in upper section. But I may be wrong. Best regards!
sir how to create packet marks using this routing setup po? di ko kasi mapagana yung sakin pwede po pa turo kahit isang set of mangle lang. example is Streaming. how can I create packet marks para magamit po sa Q3 Thanks sir.
Hi sir is there any chance that we cna check ping 8.8.8.8? Since most outages WAN gateway(ISP modem) is still reacheable unless it its hardware/power related. Thank you. This is very helpful
hi! great video! but, i cannot make to work the script, when i create the dhcp-client and put the script, it doesn`t create the statics routes. I put it excactly like the description on your video, copy-paste in the terminal, but wont work. I do some modifications to it, but same results, it take some IP from my ISP but nothing happend on the statics routes. Maybe it is wrong? Is ther a way to debug it? Thnks for your help!
Same here. Followed the tutorial to the letter but the default routes do not show up as shown in the video. I guess the maker of the video has moved on.
@@nachorepara You know I thought of that but I was thinking of using the containers feature and it only only works with 7. No wireguard with 6 also. What is the latest version of 6 that can be used. Or at least, what version number are you using?
@@nachorepara Thanks dude. I did look at another guide (see here: ua-cam.com/video/IsJlBqpVgGo/v-deo.html). He is on 7 but I do not think it really works. He uses the main table and when I turn that off setup stops working which suggests the configuration is not really doing anything. Anyhow, thanks again.
Boss thank you!! Gumana yung code!! Tanong ko lang din sana if sang banda mag eedit if gusto ko iactivate yung dalawang ports plus yung wifi. Salamat ng marami! God bless!!
I can't get it to auto create the "to_WAN1" comments under routes and also auto create the default route using the script and followed this closely. Any suggestions?
I have an RB2011UiAS and version 6.43. I'm testing with a single ISP and when I connect, it creates the subnet route but not 0.0.0.0/0 default route and also does not insert the comment "to_wan1" etc. Any advice would be helpful to troubleshoot - jason@jakadas.com and jason.bawcom@gmail.com.
The scripts will not work correctly, if the DHCP server just change the gateway. It will go to the :error "Multiple routes found'. I suggest better script. When you apply it to the WAN2 DHCP client, just change the first line.
{
:local rmark "to_wan1"
:if ($bound=1) do={
:if ([/ip route print count-only where comment=$rmark] = 0) do={
/ip route add distance=1 gateway=$"gateway-address" check-gateway=ping routing-mark=$rmark comment=$rmark
/ip route add distance=1 gateway=$"gateway-address" check-gateway=ping comment=$rmark
} else={
:foreach r in=[/ip route find where comment=$rmark] do={
:if ([/ip route get $r gateway] != $"gateway-address") do={
/ip route set $r gateway=$"gateway-address"
}
}
}
} else={
/ip route remove [find comment=$rmark]
}
}
This is amazing!! Thank you so much for this!!
thanks for sharing if I want also do this for wireless what I need to do as I see only one port Lan is enabled but for the 2g and 5g wireless to happen what I need to do?
create a bridge, make this bridge as your LAN. add wifi and port interfaces to it.
i tried the dual wan static and it was perfect.. thank you for that also
Great tutorial bro, still i dont get why we must send you an email for the scripts when you can just copy&paste on the description...
It's in the description...
Could you confirm my understanding... if we don't complete the configuration with the mangle rules and simply keep the DHCP client configuration. Then this becomes a simple Dual WAN DHCP client failover solution?
ie: the mangle portion allows for load balancing, correct?
ito ung pinaka clear tuts.... sir baka full scrip ka sir baka pwde maki share
It's in the description...
Hello, I hope i can receive a response for this. I used this configuration and its work totally fine for my dual wan set-up, however, i can't ping to the networks i created on LAN3 and LAN4 vice versa. Given the fact that, that LAN1 AND LAN2 is for ISP. Any suggestion how my networks could ping each other.
Is it possibleto have 3 isp. 2 isp is for bonding/browsing and the other one is for gaming purposes only?
@wifiLAB, excuse my ignorance, but where should i paste the script provided? I'm a newbie!!!
from the terminal...
@@wifilabxyz thanks so much for replying back at me!!
Thank you for this video!
i'm successfully join both my WAN connection.
if i can ask 1 question, how do i force certain IP Address/client to use only WAN1 ?
i tried using source address != "Block to WAN2" but the client still using both WAN connection
I used Bridge to share the DHCP Server to ether3 and ether4 (3 for WLAN and 4 for LAN)
Please make a tutorial and add more VLAN on Bridge too,
what to do if the router has bound to ISP1 is still active but has no internet are there a way to reroute the connection to ISP2? Ive try everything but the connection will be disconnected to and need to cut the connection of isp 1 just to transfer the route to ISP2
Hello, what should I do in order to activate WLAN ( WIFI) using the same Balanced LAN..??? Thanks
impressive!
Is this merging dual isp boss?
nope, it just balances the traffic from 2 different ISPs.
Parabéns e muito obrigado top da mais
maraming salamat sir ung config nito ung gusto talga salamat sir
the scripts has some extra characters from the parser, should be like this
{
:local rmark "to_wan2"
:local count [/ip route print count-only where comment="to_wan2"]
:if ($bound=1) do={
:if ($count = 0) do={
/ip route add distance=1 gateway=$"gateway-address" check-gateway=ping routing-mark=to_wan2 comment="to_wan2"
/ip route add distance=1 gateway=$"gateway-address" check-gateway=ping comment="to_wan2"
} else={
:if ($count = 1) do={
:local test [/ip route find where comment="to_wan2"]
:if ([/ip route get $test gateway] != $"gateway-address") do={
/ip route set $test gateway=$"gateway-address"
}
} else={
:error "Multiple routes found"
}
}
} else={
/ip route remove [find comment="to_wan2"]
}
}
only changes wan2 for wan1, the logic of the script are the same
There is an error here i believe... The second ip route should add a distance = 2...
Hello there. I have followed the instructions on this video to the T and i'm not getting internet breakout on the mikrotik when the wan is connected to either wan1 or wan 2 - getting no route to host error? Please can you give more information on the ip/route setup?
maybe u have missed something. please try the script posted in the description.
@@wifilabxyz Thank you so much for the reply. I started everything form scratch and it is now working just as it should. You are probably right , my bad :)
Sna next po 2 mikrotik nmn
Mt 1 multi isp.
Mt 2 . Bandwidth mgmt , hs and ppoe
@wifiLAB, hello, how to make your script work with l2tp providers?
nice tutorial. Sir, saan po galing yung 192.168.1.1 at 192.168.2.1 na gateway? thanks
yan po ung dalawang router na nakakonek sa mikrotik. 1 isp router = 1.1 at 2 isp router = 2.1
@@wifilabxyz Thank you Sir. Did copy and pasted the script on the Mikrotik terminal. The mikrotik router can ping google.com via terminal but the laptop can't ping google.com. will check again.
(ether1=pppoe-client)+(ovpn -client/l2tp-client/sstp-client/pptp-client) = (ether 2=dhcp)
where vpn connection will only be used for block site to open.
bro how can i do that??
i need your help .
Thanx for the tutorial but does not work on any of my MTK´s in 7.11 router OS...could u send me the scripts to my mail?
best regards
Thank you bro 😎
Boss pwede ba ito kung pareho PLDT Home Fibr yung ISP1 and ISP2 ko?
pwde lang sir.
@@wifilabxyz Salamat sir!
Sir what will happened when two isp dhcp meet in load banlancer ?
And meet static and dhcp in load banlancer?
or a list of websites will be passing through over vpn while user hit these websites
Dear Team,
Pls help me for This rules is i ussing
But the banking site reirect not not login issue
muchas gracias... estoy usando dos WAN de 10M, está funcionando muy bien... estoy usando Bridge, y detalles en IP Routes..
fijate que yo tambien tuve que usar Bridge para repartir el DHCP Server entre ether3 y 4
consulta: Te sumo los 2 enlaces? porque yo no logro hacerlo
Thank you for this video. I've been seeking for solution setting up mikrotik with 2 WAN both DHCP-client. Your script is good, but I think there is some mistake in it - in section :if (count=1) we need to write count=2, 'cause we recently created 2 routes in upper section. But I may be wrong. Best regards!
Did you get a reply back on this. I can't get it to auto create the comments and default route using the script.
It's in the description...
thanks
sir how to create packet marks using this routing setup po?
di ko kasi mapagana yung sakin pwede po pa turo kahit isang set of mangle lang. example is Streaming. how can I create packet marks para magamit po sa Q3
Thanks sir.
advance tanks sir
thanks..
Hi sir is there any chance that we cna check ping 8.8.8.8? Since most outages WAN gateway(ISP modem) is still reacheable unless it its hardware/power related. Thank you. This is very helpful
u can try netwatch or recursive route (i think i have this in 3WAN static video)
Thanks a lot, this works!!!
Sir from this set up then saksak ko to to another MT na may confi for pisowifi swak ba to?
yes sirrr
wifiLAB ok lng ba khit ano lan address gmitin ko?
Also lets say add ako pang 3rd n wan same process lng ata ryt?
kahit ano po
yes sir pareho lang
Como puedo hacer para que sume los 2 anchos de banda??
hi! great video! but, i cannot make to work the script, when i create the dhcp-client and put the script, it doesn`t create the statics routes. I put it excactly like the description on your video, copy-paste in the terminal, but wont work. I do some modifications to it, but same results, it take some IP from my ISP but nothing happend on the statics routes. Maybe it is wrong? Is ther a way to debug it? Thnks for your help!
Same here. Followed the tutorial to the letter but the default routes do not show up as shown in the video. I guess the maker of the video has moved on.
@@tekniqal2639 hey! I resolved it downgrading My mktk to last versión 6 (i had versión 7) i supose script doesn't work in 7.
@@nachorepara You know I thought of that but I was thinking of using the containers feature and it only only works with 7. No wireguard with 6 also. What is the latest version of 6 that can be used. Or at least, what version number are you using?
I have now 6.48.6 ando it works fine! You should try it, or i think you must search some script for 7.x.x
@@nachorepara Thanks dude. I did look at another guide (see here: ua-cam.com/video/IsJlBqpVgGo/v-deo.html). He is on 7 but I do not think it really works. He uses the main table and when I turn that off setup stops working which suggests the configuration is not really doing anything. Anyhow, thanks again.
The configuration for MT rb4011?
it will be the same.
sir bkt parang nka limit lang po sa 30mbps ang wan2 ? thankyu sir
ilan mbps wan1 mo?
@@wifilabxyz nsa 90 80 sir
anong router model gamit mo?
Sir parang sa tutorial mo pag nakatangal lng yung cable ska ngfafailover pano kung nkasaksak pa din sa router tpos internet lng ang wala.
gawa po kayo script para mamonitor ung internet connection or try netwatch.
HI the script is not adding routes automatically kindly help
ano main wan ip na gagamitin ng setup na to boss?
main wan ip ng alin sir?
yung public IP na gagamitin nia boss, sa ISP 1 ba or ISP 2. para sana sa ip whitelisting just incase.
most of the time ung isp 1 sir.
pwede ba to lagyan ng anti lag sir ?
Hello Good day
Please make a tutorial 1pppoe+1dhcp
Load balancing and failover
Paano if same 192.168.1.1 binibigay sa dhcp client
Boss thank you!! Gumana yung code!!
Tanong ko lang din sana if sang banda mag eedit if gusto ko iactivate yung dalawang ports plus yung wifi. Salamat ng marami! God bless!!
gawa ka ng bridge, tapos add mo ung dalawang port at wireless dun sa ginawa mong bridge.
@@wifilabxyz pwede ba kitang i add sa facebook sir?
@@wifilabxyz bakit po wlang kang ginawang bridge sa video?
hola gran video podra apoyarme con los script
saludos y gracias
it's in the description...
Ito bossing kailangan ko..salamat
email?
jj.lord007xxsony@gmail.com
Script bossing ty advance
May bandwidth management narin sana para kompleto..hehe..mag aantay ako boss
Pasend script boss
bro i have copied that dhcp code from your video by typing in notepad.
Nice. Pwede po makahingi ng Script? Thanks
mr.dheyo@gmail.com
sent
Salamat po.
I can't get it to auto create the "to_WAN1" comments under routes and also auto create the default route using the script and followed this closely. Any suggestions?
I have an RB2011UiAS and version 6.43. I'm testing with a single ISP and when I connect, it creates the subnet route but not 0.0.0.0/0 default route and also does not insert the comment "to_wan1" etc. Any advice would be helpful to troubleshoot - jason@jakadas.com and jason.bawcom@gmail.com.
Nevermind. I found the issue with a ")" vs. a "}" in one place. Once I addressed this, it worked fine. Thank you!
please add 4wan dhcp configuration MikroTik
soon
Pa share nmn scrip sir
nasa description ng video sir
pa send din script for dhcp sir...
dino.johnson05@gmail.com
salamat at godbless!
sent
Please Can I get your Script..
email?
@@wifilabxyz kaungmonsoe9@gmail.com
sent
@@wifilabxyz I well received with thanks.
@@kaungmonsoe5020 hallo brother can you help me with the scripts to my email lawrengits@gmail.com thanks in advance
sir baka pwde na ako makahingi ng script nito cardinalajc19@gmail.com maraming salamat po sana mapansin nyo po ako
sent na sir.
Pa send din po script salamat po.
dyyoung1028@gmail.com
sent
pasend din po ng script @ drexlerguapo12@gmail.com thank you po
sent
pa try po sir penge po ng script kenmichael05@gmail.com salamat po sir
sent
pa send po script newbie lang po salamat ^_^. canoyarnulfop@gmail.com
sent
Please help me bro
pwede po makahingi script. paulpagcaliwangan@gmail.com salamat
sent
sir p send poh ng script kenkerby40@gmail.com
sent
pwede pa send ng script? Salamat po. pinoy1coc@gmail.com
sent
sir pa send po ng script brezr15@gmail.com thankyou po
sent
Thankyou po.
Anyone managed to get this working on OS 7.1?
pleasedo tutorial on dual wan + failover on mikrotik v7