Community discussions

MUM Europe 2020
 
User avatar
RuncZ
just joined
Topic Author
Posts: 5
Joined: Thu Dec 16, 2004 10:09 am
Location: lv_LV

backup link with pptp server/client

Fri Jun 08, 2007 12:16 pm

so, now we have setup like this:

LAN1 <--> MT1 <--> internet <--> MT2 <--> LAN2

both LAN's use the same subnet of ip's (with nat to internet) and there are pptp/eoip/bridge link connecting them.
plan is to get one more internet connection for each of mt's and use those as a backup links.

it is no problem to create such setup with working internet.. but about vpn.. well, i'm confused there.
ok, as i understand, there should be no problem with pptp server side.. just open the appropriate ports/protocols for appropriate ip's and do not specify the caller id..

but what to do when pptp server's primary connection dies.. how do i get the client to automatically connect to the server's backup link ip ? or should i set up 2 simultaneous connections and somehow mangle with bridges and stp ?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5971
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: backup link with pptp server/client

Fri Jun 08, 2007 12:23 pm

You can write a scrit that checks your primary pptp link, if it fails - enable backup link.
 
User avatar
RuncZ
just joined
Topic Author
Posts: 5
Joined: Thu Dec 16, 2004 10:09 am
Location: lv_LV

Re: backup link with pptp server/client

Fri Jun 08, 2007 12:29 pm

well .. that was fast ;)

i don't exactly like scipting on mikrotik, since (from my personal experience) they pretty often stops working after upgrades, so i must rewrite them.

dunno, perhaps that has happened just to me, since i have some "exotic" hardware requirements and have to use beta versions really often..

anyway, i was wondering if there's a way to do this without scripting (otherwise i would have posted in scripting section)
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5971
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: backup link with pptp server/client

Fri Jun 08, 2007 2:31 pm

Then if i understood you correctly, You can create two EoIP tunnels and run bonding over them. If you need only backup set bonding mode to active backup. This should work.
 
User avatar
maroon
Member Candidate
Member Candidate
Posts: 233
Joined: Thu Oct 07, 2004 11:15 am
Location: Lebanon
Contact:

Re: backup link with pptp server/client

Sun Jun 10, 2007 10:07 pm

You can write a scrit that checks your primary pptp link, if it fails - enable backup link.
You can write a scrit that checks your primary pptp link, if it fails - enable backup link.
do u have the script that do a failover?
 
gmsmstr
Trainer
Trainer
Posts: 940
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: backup link with pptp server/client

Tue Jun 12, 2007 11:18 pm

There are other options too. Depending on what you are doing. If you are routing all of your traffic, then simply adding static routes with differant default costs will do what you want. If one of hte connctions goes down, its static route is no longer active, so the second ,with a higher cost becomes active. Failover can be VERY fast, less than 30ms in most cases.

Multiple IPIP interfaces inside of a bond interface may work well too.

Dennis Burgess
St. Louis Network Engineering Services
http://www.mikrotikconsulting.com
dmburgess@mikrotikconsulting.com
Certified Mikrotik Engineer
 
illiniwireless
Member Candidate
Member Candidate
Posts: 152
Joined: Mon Dec 26, 2005 12:36 am
Location: USA

Re: backup link with pptp server/client

Thu Jun 14, 2007 6:16 am

The only problem with with links with different costs is that if that line fails farther away than the first ip ( which is the one you would be pinging) then it doesn't know that it is actually down until the ping quits which is because of congestion. Then it starts pinging after it switchs and back through the same proccess until you shut the lowest cost path off or the other line comes up. There has to be a better method.
 
gmsmstr
Trainer
Trainer
Posts: 940
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: backup link with pptp server/client

Thu Jun 14, 2007 7:03 am

I have had very little issues with this as typically, the link drops extreamly fast if the connection drops. It sides with caution before keeping an unknown link up. PPTP is very suited for this, as it will drop with just a few packets dropped from either side.

Who is online

Users browsing this forum: nemke, wispmikrotik and 115 guests