1 ADSL line, two different networks

Hi There
I have a Routerboard 450 with OS 4.9.
Ive been searching on the net for long and cant seem to find a solution. My setup is as follows.
I have two separate networks running from the rb (network 1 = 192.168.3.0/24 on ether1, network 2 = 192.168.10.0/24 ether2)
Now what I want to do is to configure two seperate adsl accounts so that adsl acc 1 is only used for network 1 and adsl acc 2 is only used for network two. (There is two separate companies in one building, I want to implement it so that the one company don’t use the others bandwidth)
At the moment I can connect to more than one adsl acc at a time, but it will use the one that is enabled last.
I know it it possible but cant find anything anywhere.
Please help
NB: I know it got something to do with mangle and routing marks, but thats it… help :slight_smile:

Going to need to know more about your setup to offer more specific help, but what you are looking for is called Policy Based Routing, and is simple enough to do. Something like a network diagram would help.

What you basically do is take connections coming from the 192.168.3.0/24 subnet and mark their connections one way, and based off of the connection marks, mark them for routing, this sets it up to send it out of one specific route. You do the same thing for the other subnet with a different connection mark and routing mark.

In IP routes you set up two additional default routes, basically copy what is there, and specify the routing-mark option. This puts each of these routes into their own routing table and the MikroTik will send them out of one route or the other based off of their connection/routing marks set up in your mangle rules.

Hi, thanks for your reply Feklar. Ive came across a website while searching in google for a answer and it is basically exactly what my setup is except that my ISP give dynamic IP’s and I dont need the “route traffic by type” section at the bottom. As a matter of fact, I got it right but would like to know how to add the dynamic ISP IP’s under “Route List” → “Rules” in Winbox?

Here is the URL I got it from
http://blog.butchevans.com/2008/09/mikrotik-policy-routing-implementation-example/

Thanks
Jacques

You can copy the route to add it in statically, the only real way I know how to do it is via static routes, but even if you have DHCP that should rarely if ever change. If you get your IP address via PPPoE, I believe you can route by specifying the PPPoE interface, so that should take care of any potential changes on the ISP side.