Community discussions

MikroTik App
 
mgi2003
just joined
Topic Author
Posts: 12
Joined: Wed Jan 04, 2017 11:51 am

2 ADSL for differnet clients

Wed Jan 04, 2017 1:07 pm

Hello i have one Router The RB2011iL-RM
I want to have 2 ADSL( i name it ADSL 1 Port 1 and ADSL 2 in Port 6) in one Network but with this configuration
I want to Do this Beaceuse i have 2 different bulding in different area and i have one link i want to have the network
from adsl1 because i have application server and sql server and the second bulding i have a adsl 2 the mikrotik i have it ih the place with ADSL 2

In Port5 I want to Have Dhcp With net 192.168.88.xx and i want to have internet with ADSL 2 from port 6 ( To have Wifi And some other Client )
In Port 1,2,3,4 i want to have the network 192.168.12.xx from ADSL1 but i want to have the Gateway from ADSL2
In mikrotik i fix to have DHCP in port 5 and go out from ADSL 2
The port 1,2,3,4 i put it in a Bridge but i have internet from DHCP 192.168.88.xx
How i can to do this ?
 
turnip
Frequent Visitor
Frequent Visitor
Posts: 89
Joined: Wed Sep 11, 2013 7:01 pm

Re: 2 ADSL for differnet clients

Thu Jan 05, 2017 4:48 am

I'm not sure if I'm following exactly (perhaps a diagram would help). But broadly speaking:
  • Create a bridge for each network and put whichever ethernet/wireless ports in it that you want.
  • Use Mangle to create a Prerouting rule to create a routing mark and apply it to a bridge. (eg '/ip firewall mangle add action=mark-routing chain=prerouting in-interface=bridge1 new-routing-mark=routemark1'
  • Configure your firewall to allow or block traffic as required (eg, if I had an office and guest network, I might want office staff to be able to reach a printer on the guest network, but not the other way around)
  • Configure your routes. Also consider failover - I have a similar situation with 2 ADSL links. Guests use one, office uses the other, but if either goes down they can share a link.