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!