A previous technician purchased 2 microtik routerboard 750 routers (latest version) and couldn’t make it.
I’m newbie with microtik routeros and need to know how I can achieve this:
I have a 2 site network connected via a lan cable
site A:
ether1: 192.168.10.1 (dsl connection)
ether2: 192.168.0.1/24 (connected to the main switch)
ether3: 172.16.1.1/24 (connected to site B)
site B:
ether1: 192.168.10.1 (dsl connection)
ether2: 192.168.1.1/24 (connected to the main switch)
ether3: 172.16.1.2/24 (connected to site A)
I want to be able to connect both networks using ether3 so they can see each others computers/servers. what are the necessary steps to accomplish this?
In site A router, create a static route for Site B’s lan:
/ip route add dst=192.168.1.0/24 gateway=172.16.1.2
In site B router, create a static route for Site A’s lan:
/ip route add dst=192.168.0.0/24 gateawy=172.16.1.1
That’s all it takes for the routing. Of course, your firewall rules need to be configured such that they do not block site-to-site traffic, or perform NAT on it. Your srcnat rule (usually a masquerade rule) should only match traffic going out to the ADSL connection at each site.
e.g.:
chain=srcnat out-interface=ether1 action=masquerade
(note that there are no IP addresses mentioned in this rule - only the interface)
For the filters forward chain, if you have a default drop rule, then before it, add an accept rule matching in-interface=ether3
Bridges are okay, but when doing routing, you definitely want the various routed interfaces to be bridged together. Most likely you just needed to make sure that ether3 was not included in any bridge or switch group at both ends. Glad you got things rolling. Happy routing.