Community discussions

MikroTik App
 
francospaleta
just joined
Topic Author
Posts: 3
Joined: Mon Mar 08, 2021 2:53 am

newbie at routerOS, fixed load balanced form 0 in CCR1009, HELP

Mon Mar 08, 2021 4:11 am

Hello, iam new with mikrotik products, i have an 1009 router with 8 ports (1 is combo), i need to do what i call a fixed load balance setup, that is the following:

Port 1 : ISP1
Port 2 : ISP2
Port 3 : ISP3
Port 4 : ISP4
Port 5, 6, 7, 8 : LAN with DHCP ( 1200 ips max in the future, 300/400 for start (Pcs, Aps, and mobile users)

I need that all devices connected to :

Port5 only use ISP1 (Port1) to go to Internet
Port6 only use ISP2 (Port2) to go to Internet
Port7 only use ISP3 (Port3) to go to Internet
Port5 only use ISP1 (Port4) to go to Internet

I try to use the most simple setup, and less CPU load used.

I will use winbox because like i say its my fisrt time with RouterOS, and i used to use easy setup routers, with my old router i just go to load balance setup, and add 4 rules to do that setup.
Really i will appreciate your ideas or advisors.
Thanks
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19323
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: newbie at routerOS, fixed load balanced form 0 in CCR1009, HELP

Mon Mar 08, 2021 2:18 pm

Too funny you cant get your numbering straight on a post, what makes me think the config is also hosed LOL.
From this:
Port5 only use ISP1 (Port1) to go to Internet
Port6 only use ISP2 (Port2) to go to Internet
Port7 only use ISP3 (Port3) to go to Internet
Port5 only use ISP1 (Port4) to go to Internet

To This:
Port5 only use ISP1 (Port1) to go to Internet
Port6 only use ISP2 (Port2) to go to Internet
Port7 only use ISP3 (Port3) to go to Internet

Port8 only use ISP4 (Port4) to go to Internet

A simple solution that avoids mangling that may be sufficient is the following.
Ensure you have the standard routes for each ISP.
ISP1 distance=10
ISP2 distance=20
ISP3 distance=30
ISP4 distance=40

Then make four more routes like this
ISP1 distance=10 routing-mark=forport5
ISP2 distance=20 routing-mark=forport6
ISP3 distance=30 routing-mark=forport7
ISP4 distance=40 routing-mark=forport8

Then make four routing rules.
Source-address=subnetofLAN on port5 OR interface=ether5, action=lookup only in table, table=forport5
Source-address=subnetofLAN on port6 OR interface=ether6, action=lookup only in table, table=forport6
Source-address=subnetofLAN on port7 OR interface=ether7, action=lookup only in table, table=forport7
Source-address=subnetofLAN on port8 OR interface=ether8, action=lookup only in table, table=forport8
 
francospaleta
just joined
Topic Author
Posts: 3
Joined: Mon Mar 08, 2021 2:53 am

Re: newbie at routerOS, fixed load balanced form 0 in CCR1009, HELP

Mon Mar 08, 2021 10:51 pm

Too funny you cant get your numbering straight on a post, what makes me think the config is also hosed LOL.
From this:
Port5 only use ISP1 (Port1) to go to Internet
Port6 only use ISP2 (Port2) to go to Internet
Port7 only use ISP3 (Port3) to go to Internet
Port5 only use ISP1 (Port4) to go to Internet
To This:
Port5 only use ISP1 (Port1) to go to Internet
Port6 only use ISP2 (Port2) to go to Internet
Port7 only use ISP3 (Port3) to go to Internet
Port8 only use ISP4 (Port4) to go to Internet
Sorry, i just copy paste and change numbers quickly, The setup is like this because i need to separate 4 places in a real one method and also keep all devices in the same network for admin. Also its just for 3 or 4 months, when i will have all the hardware what i need to do the final setup.
A simple solution that avoids mangling that may be sufficient is the following.
Ensure you have the standard routes for each ISP.
ISP1 distance=10
ISP2 distance=20
ISP3 distance=30
ISP4 distance=40

Then make four more routes like this
ISP1 distance=10 routing-mark=forport5
ISP2 distance=20 routing-mark=forport6
ISP3 distance=30 routing-mark=forport7
ISP4 distance=40 routing-mark=forport8

Then make four routing rules.
Source-address=subnetofLAN on port5 OR interface=ether5, action=lookup only in table, table=forport5
Source-address=subnetofLAN on port6 OR interface=ether6, action=lookup only in table, table=forport6
Source-address=subnetofLAN on port7 OR interface=ether7, action=lookup only in table, table=forport7
Source-address=subnetofLAN on port8 OR interface=ether8, action=lookup only in table, table=forport8
I understand the last 4 rules, but not the 8 routes, why i need to repeat the 4 original routes and adding a route mark, why not just add thats routing mark in the first 4 routes. In other hand what do you means with standard route for each ISP, something like this?
0.0.0.0 gw x.x.x.x eth1
0.0.0.0 gw x.x.x.x eth2
0.0.0.0 gw x.x.x.x eth3
0.0.0.0 gw x.x.x.x eth4

Thank you very much, and i am sorry about my english and my sure silly questions!!

P.d: i will delete the duplicate entrie!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19323
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: newbie at routerOS, fixed load balanced form 0 in CCR1009, HELP

Mon Mar 08, 2021 11:56 pm

Because thats the way mikrotik routing works LOL.
Dont ask me how they put the chocolate in cadbury caramilk bar either........

Who is online

Users browsing this forum: fadelliz78, ShindigNZ and 34 guests