Community discussions

MikroTik App
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 4:45 pm

Hello everyone,

As I allready said in the subject, it is about connecting 2 or more routers in one network. I am using PPTP to do this but in my configurations there is allways one main router that routes all trafic. What is this one fails??? Of course, whole network will be offline. I would like to ask now what is the best way to connect 2 or more routers and avoid problem mentioned above. Can it be done with PPTP or there is a better way for this? If it is necessary I can draw a siple network diagram and post it here.

Best Regards
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 4:57 pm

Are you trying to provide more than one exit point router that is connected to the Internet to other routers in a large network? Use OSPF and have both introduce default routes. If you use type 1 metrics for this the other routers will send Internet traffic to the closest router. You can use type 2 metrics to statically prefer one of the two and the other is just failover.

Are you trying to provide failover gateways to clients on a directly connected network? Look into VRRP.

PPTP has absolutely nothing to do with this, at all. PPTP is a VPN/tunnel protocol.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 5:04 pm

Are you trying to provide more than one exit point router that is connected to the Internet to other routers in a large network? Use OSPF and have both introduce default routes. If you use type 1 metrics for this the other routers will send Internet traffic to the closest router. You can use type 2 metrics to statically prefer one of the two and the other is just failover.

Are you trying to provide failover gateways to clients on a directly connected network? Look into VRRP.

PPTP has absolutely nothing to do with this, at all. PPTP is a VPN/tunnel protocol.
Thank You for fast reply.

All I need is communication between 2 or more remote local networks. That is why I used PPTP but as I described that is not stable. Also public addresses are dynamic.

Best Regards.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 5:10 pm

Sounds like you should look into OSPF. The wiki has many articles on it.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 5:12 pm

Ok. Thanks for fast help. I am going to check it.

Best Regards.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 9:06 pm

fewi,

I forgot to say that all routers have to be connected trough WAN. I will draw a simple network diagram...
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 10:30 pm

Hello again,

Here is a simple network diagram. On the picture You can see that every router is connected to the internet. They are connected via ADSL connection, and they are for their LAN subnets actualy gateways. I need all of them connected... For example:

On the MKT router 1 from the picture there is a PC connected behind it. I need access to that PC from another PC connected to MKT Router 2 from the picture.
It is a plastic explanation but I hope so that You will understand.
So far I used 4 PPTP connections to MKT Router 1 from other routers. In this case I have what I need but if this router fails all communication betwen other routers is down.
You do not have the required permissions to view the files attached to this post.
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1076
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 10:45 pm

I guess you will need to configure a second router as a backup PPTP Server.
Then every other router should connect to the second. These second connections
should have a higher routing distance (for example 5) on the routing table, so when the first
pptp connection goes down, the second would be the gateway.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:00 pm

I'd just build a full mesh. It's only 20 tunnels.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:02 pm

I guess you will need to configure a second router as a backup PPTP Server.
Then every other router should connect to the second. These second connections
should have a higher routing distance (for example 5) on the routing table, so when the first
pptp connection goes down, the second would be the gateway.

Thanks for reply.

hmmm... interesting solution, but still I look for something to solve this in other way. In this case traffic pasess trough PPTP server router. Is there any solution to route it directly from one point to other in such network? A solution where any point has a connection to other, no mather is there any member (router) of this network down?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:08 pm

Is there any solution to route it directly from one point to other in such network? A solution where any point has a connection to other, no mather is there any member (router) of this network down?
Yeah. A full mesh. PPTP tunnels between all routers. You could also run EoIP or IPIP or GRE (preferred) across PPTP, and you can then run a routing protocol such as OSPF across the tunnels. That way if a link between two routers is up it's the shortest path and traffic will go directly. If the link dies traffic will dynamically reroute across another spoke.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:17 pm

Yeah. A full mesh. PPTP tunnels between all routers. You could also run EoIP or IPIP or GRE (preferred) across PPTP, and you can then run a routing protocol such as OSPF across the tunnels.
Thanks for help fewi. Can You, maybe, send me a setup (backup file) of one of Your configurations? I would like just to see how You configured OSPF.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:31 pm

I don't have any routers configured to do this. But the manual covers all of it.
http://wiki.mikrotik.com/wiki/Manual:OSPF-examples
A quick search says multicast is working fine over PPTP on Mikrotik so all you'd have to do is establish PPTP tunnels between all routers and follow the config examples to enable OSPF on the PPTP links on all routers, and the LAN segments behind each router.
 
spaxton
Member Candidate
Member Candidate
Topic Author
Posts: 192
Joined: Fri Jan 01, 2010 12:18 pm

Re: Best Way to connect 2 or more MKT routers

Thu Jun 16, 2011 11:39 pm

Ok. Thank a lot.

Best Regards.

Who is online

Users browsing this forum: eltrocadero2, sindy and 104 guests