Community discussions

MikroTik App
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Joining 2 networks

Sun May 17, 2020 12:59 am

I would like to join two networks together so I can access each device across both. I have a Mikrotik RB2011iLS-IN router I would like to use. Can anyone please assist in how to configure router to accomplish this. I have attached a diagram of existing setup.

download/file.php?mode=view&id=41670
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22116
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Joining 2 networks

Sun May 17, 2020 4:11 pm

Your diagram is confusing,
You need two MT units one behind each modem acting as the router for its connection.
Then you can setup various tunnels and connections.......
 
User avatar
ingdaka
Trainer
Trainer
Posts: 457
Joined: Thu Aug 30, 2012 3:06 pm
Location: Albania
Contact:

Re: Joining 2 networks

Sun May 17, 2020 5:40 pm

First of all are those 2 "modems" Mikrotik Routers?
Can they connected together physically of not?
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Sun May 17, 2020 7:10 pm

Thanks for the response. I have modified drawing to try and give a better understanding
Home.jpg
You do not have the required permissions to view the files attached to this post.
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Joining 2 networks

Sun May 17, 2020 8:09 pm

this is what you need:
https://wiki.mikrotik.com/wiki/Manual:I ... sec_tunnel

have a go and let us know if you run into problems

One of your Mikrotik router needs static Public IP, or at least have DDNS setup so it can be reached from the Internet.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22116
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Joining 2 networks

Mon May 18, 2020 1:49 am

this is what you need:
https://wiki.mikrotik.com/wiki/Manual:I ... sec_tunnel

have a go and let us know if you run into problems

One of your Mikrotik router needs static Public IP, or at least have DDNS setup so it can be reached from the Internet.
@solar77 - I am very curious to see if your mind reading skills are up to snuff, or you just like pulling rectal plucks out of thin air ;-PPP
If right, please change your name to solar666, if wrong change it to solar0
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Joining 2 networks

Mon May 18, 2020 2:07 pm

I have left my crystal ball in the office...

what OP want, is site to site VPN, hence the suggestion.
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 854
Joined: Wed Mar 25, 2020 4:04 am

Re: Joining 2 networks

Tue May 19, 2020 1:59 pm

@Garfieldlyn, should be one of these 2 methods. But of course also depends on the distance between the two LANs.
If they are both in the same building then Method 2 can be sufficient. Of course both LANs should be in same network with same netmask.
You also need to set up the gateways accordingly, ie. on the LAN router or on the managed L3 switch add some static routes so that outgoing traffic goes over both WAN links.
Method 2 is faster.
Method 1:

           ISP1                   ISP2
            |                      |
    ----------------       ----------------
    | WAN Router 1 |       | WAN Router 2 |
    ----------------       ----------------
                 |           |
               ----------------- 
               |   LAN Router   |
               ----------------- 
                      |
               ------------------------- 
               |   Dumb L2 Switch(es)   |   
               ------------------------- 
                 |  |  |  |  |
                 PCs ...  

Method 2:

           ISP1                   ISP2
            |                      |
    ----------------       ----------------
    | WAN Router 1 |       | WAN Router 2 |
    ----------------       ----------------
                 |           |
               -------------------- 
               |   L3 Switch(es)   |   
               -------------------- 
                 |  |  |  |  |
                 PCs ...  

 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Joining 2 networks

Tue May 19, 2020 3:21 pm

OK....I assumed these two are in different locations, then both ADSL routers can VPN into the same Mikrotik which can forward traffic from one subnet to another. However, both routers needs to be able to do static routing as well so normal traffic would not have to through VPN

if they where in the same building, yes a direct wired connection via L3 switch would be the way go to. Would an RB2011 do it? probably yes, not sure about the performance though. If you want to use the RB2011, keep both connection on the gigabit ports, not the 100Mbps ports.
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Tue May 19, 2020 9:23 pm

Thanks all for the input. I have modified drawing to show actually what is existing to make things clearer
Network.jpg
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22116
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Joining 2 networks

Wed May 20, 2020 12:07 am

Is the RB2011 able to be wired to both routers (ie in same building etc).
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 854
Joined: Wed Mar 25, 2020 4:04 am

Re: Joining 2 networks

Wed May 20, 2020 12:28 am

@Garfieldlyn, how far apart are LAN1 and LAN2? Are they in the same floor / building / city / country / continent / planet / galaxy / universe ? :-) :-) :-)

If you need to securely join two networks together over the Internet, then study these:
https://serverfault.com/questions/14169 ... e-internet
https://serverfault.com/questions/96689 ... n-on-linux
Ie. you need to use VPN, IPsec, IPIP etc, ie. an encrypted tunneling protocol over the insecure Internet...
Check whether your WAN routers can do VPN/IPSec, else replace them with routers that can do VPN/IPSec...
Betweem 2 MikroTik routers one can use also "EoIP": https://wiki.mikrotik.com/wiki/Manual:Interface/EoIP but it seems only if both LANs are in the same broadcast domain, ie. if they use the same network/netmask.
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Wed May 20, 2020 7:01 am

Is the RB2011 able to be wired to both routers (ie in same building etc).
Yes
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22116
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Joining 2 networks

Wed May 20, 2020 2:23 pm

As what Solar77 said.........
if they where in the same building, yes a direct wired connection via L3 switch would be the way go to. Would an RB2011 do it? probably yes, not sure about the performance though. If you want to use the RB2011, keep both connection on the gigabit ports, not the 100Mbps ports.

It sounds though that you want very limited crossover permitted so it important that you clarify the use cases in more detail....


+++++++++++++++
Interesting though, is it as simple as using the RB2011 as a router (but with no internet and no dhcp ) and just create two subnets and two bridges to match the desired LANS one from each of the MAIN routers?? Then one could apply forward filter rules to permit desired traffic? If there is not too much traffic it should be doable.
Then again that is the MTUNA certitfed approach and there may be far more efficient solutions out there from others.......... :-)
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Wed May 20, 2020 10:07 pm

I have a Cisco SF308-08 switch. Could that be configured to do the Job
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 854
Joined: Wed Mar 25, 2020 4:04 am

Re: Joining 2 networks

Wed May 20, 2020 10:41 pm

I have a Cisco SF308-08 switch. Could that be configured to do the Job
According to the spec https://www.cisco.com/c/en/us/support/s ... model.html
Cisco SF300-08 8-Port 10/100 Managed Switch
Device Type: Switch - 8 ports - L3 - managed
Routing Protocol: Static IPv4 routing
Authentication Method: Secure Shell (SSH), RADIUS, TACACS+
it should be possible (at least theoretically b/c one has to consult the documentation). But it has only 100 Mbps.
It seems possible: https://www.cisco.com/c/en/us/support/d ... gh-th.html
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Thu May 21, 2020 5:49 am

I have a Cisco SF308-08 switch. Could that be configured to do the Job
According to the spec https://www.cisco.com/c/en/us/support/s ... model.html
Cisco SF300-08 8-Port 10/100 Managed Switch
Device Type: Switch - 8 ports - L3 - managed
Routing Protocol: Static IPv4 routing
Authentication Method: Secure Shell (SSH), RADIUS, TACACS+
it should be possible (at least theoretically b/c one has to consult the documentation). But it has only 100 Mbps.
It seems possible: https://www.cisco.com/c/en/us/support/d ... gh-th.html
Tried your link and configured switch but still no working. I am not that verse in understand the concept. Could someone please guide me based on the drawing. Thanks
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 854
Joined: Wed Mar 25, 2020 4:04 am

Re: Joining 2 networks

Thu May 21, 2020 7:15 am

I have a Cisco SF308-08 switch. Could that be configured to do the Job
According to the spec https://www.cisco.com/c/en/us/support/s ... model.html
Cisco SF300-08 8-Port 10/100 Managed Switch
Device Type: Switch - 8 ports - L3 - managed
Routing Protocol: Static IPv4 routing
Authentication Method: Secure Shell (SSH), RADIUS, TACACS+
it should be possible (at least theoretically b/c one has to consult the documentation). But it has only 100 Mbps.
It seems possible: https://www.cisco.com/c/en/us/support/d ... gh-th.html
Tried your link and configured switch but still no working. I am not that verse in understand the concept. Could someone please guide me based on the drawing. Thanks
What is working and what is not working? Can you ping the other sides from that device, and ping from other devices etc.?
Maybe you should ask in the Cisco forums on how to setup that Cisco L3 switch correctly.
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Joining 2 networks

Thu May 21, 2020 1:28 pm

I would not use the Cisco if it is only 100Mbps. The RB2011 surely will do better than that. My guess is that you can reach 200 Mbps to 400 Mbps throughput:
https://mikrotik.com/product/RB2011UiAS ... estresults

so a user case is important here, for example, if you have large amount of data to be transferred (like backup NAS to another location, have CCTV cameras on both LAN but the only NVR is at one of the locations) or if you just want to use the printer on the other LAN,

@anav
your approach is what I'd do. but it won't work just yet. you will also need both ADSL router to have a static route, on LAN1, if you want to reach 192.168.1.0/24, go to gateway 10.41.39.xx (which is the IP of RB2011 on LAN1, and same for the LAN2, static route: if you want to reach 10.41.39.0/24, go to gateway 192.168.1.xx (IP of RB2011 on LAN2)

also correct routing on the Mikrotik, so it can forward reply packet to the correct gateway / Interface.

that's probably it but I might missed something.
 
Garfieldlyn
just joined
Topic Author
Posts: 7
Joined: Sun May 17, 2020 12:52 am

Re: Joining 2 networks

Thu May 21, 2020 6:13 pm

I have a Cisco SF308-08 switch. Could that be configured to do the Job
According to the spec https://www.cisco.com/c/en/us/support/s ... model.html
Cisco SF300-08 8-Port 10/100 Managed Switch
Device Type: Switch - 8 ports - L3 - managed
Routing Protocol: Static IPv4 routing
Authentication Method: Secure Shell (SSH), RADIUS, TACACS+
it should be possible (at least theoretically b/c one has to consult the documentation). But it has only 100 Mbps.
It seems possible: https://www.cisco.com/c/en/us/support/d ... gh-th.html
Tried your link and configured switch but still no working. I am not that verse in understand the concept. Could someone please guide me based on the drawing. Thanks
What is working and what is not working? Can you ping the other sides from that device, and ping from other devices etc.?
Maybe you should ask in the Cisco forums on how to setup that Cisco L3 switch correctly.
No I cannot ping each sides

Who is online

Users browsing this forum: tdw and 36 guests