Routing to conditionally Gateways when Internet access.

First of all: I don’t want to steal Internet, if so I could set only one subnet and use then the same gateway by allowing access to my IP/MAC and could steal Internet without a single problem. Also I’m managing the network so I have full access to every device (this doesn’t apply to clients’s computers).

Second of all: Thanks for take the time to see my post and also thanks in advance! :slight_smile: :slight_smile:

I don’t know if I can embed images so will try to explain my issue through words then I will post the direct link to the picture. I have four different LAN subnets: Clients 1, Clients 2, Clients 3 and Administrator. All of them are connected to a Mikrotik device preconfigured to serve as a gateway (LAN) for each of this subnets. Also I have three gateways (WAN) connected to internet. This three gateways might have Internet access or not. Every time subnet Clients 1 have Internet I could set my computer in that IP address subnet and get Internet but when Internet “leaves” then I loss Internet and the have to set my IP address to another subnet that have Internet at that time. Let me elaborate, clients activate Internet on each gateway respectively and I want to get Internet every time but without having to chance my IP address. I was wondering if could create a bridge/bonding (not for increasing throughput capacity purposes only for get only on IP Gateway) but only for me and still clients get internet through the slaves interfaces. Want to say that the purpose is only for get only one IP address as gateway but keeping the previous routing. My idea was to set bridge/bonding but if this can be done using policy routing only then welcome! The purpose is when I ask for a Internet site (lets say youtube) then the request go out through this first gateway with Internet access and all of this in the same subnet. Is there a way to configure the Mikrotik to conditionally use one of the three gateway to route requests coming from Admin LAN Interface?

The link: https://s15.postimg.org/de7sdlw9n/image.png
I don’t know if this link has expiration date that’s why I tried to explain my situation.

(Edited) The network design bridged: https://s9.postimg.org/arx3wp40v/Bridged.png

PS: In Microsoft Windows (as a client) you can set several IP address and several Gateways for each of this addresses so I think this also can be done in RouterOS (because is more clean and more effective). I repeat: Want to keep the things without losing any IP, only gain routing access to Internet through Gateways when Internet.

Basically, you’d extend your policy routing rules by creating one final policy “myPC” or whatever - and then making a set of route-marked routes which list the 4 ISP gateways in your preferred order. Furthermore, you’d need to have some kind of fault detection to disable the routes if they’re down.

i.e. create 4 ping targets - a.a.a.a / b.b.b.b / c.c.c.c / d.d.d.d
Force these 4 addresses via static routes through ISP1, ISP2, ISP3, and ISP4 only.
Leave these 4 routes in the main routing table. (no route mark)
Set backup static routes (distance=2) to each of these as type=blackhole (so they can only be pinged if their particular ISP is up)

Then set your four default gateways to be:
dst=0.0.0.0/0 gateway=a.a.a.a distance=1 target-scope=30 routing-mark=myPC
dst=0.0.0.0/0 gateway=b.b.b.b distance=2 target-scope=30 routing-mark=myPC
dst=0.0.0.0/0 gateway=c.c.c.c distance=3 target-scope=30 routing-mark=myPC
dst=0.0.0.0/0 gateway=d.d.d.d distance=4 target-scope=30 routing-mark=myPC

That should do it.

Oh this is a real forum! Question and answer at the moment, just like exchange platform. You are good so is Mikrotik product. Know I’m leaving the work but will save your answer and try to apply it to my config and tell you back but I guess (looking at your profile info that this has a 90% of success). Thanks a lot, this might be offtopic but I posted a thread in TP-LINK forum and I expect to get an answer within days if that happens. Mikrotik is really shaking things in networking world.

Maybe 99%.