Community discussions

MikroTik App
 
TheEnsona
newbie
Topic Author
Posts: 35
Joined: Sat May 09, 2009 7:22 am

Route gateway issue

Tue Aug 24, 2010 7:22 pm

Here is a layout of the site so there is a better understanding of how this is set up.

Locations:
Health Clinic
Hospital


1. The hospital is where all the main servers are located.
2. I have a pptp connection running from the health clinic --to the--> hospital so the health clinic can access the servers at the hospital.
3. I have implemented routes at the health clinic pointing to the internal ips at the hospital.
(All of this is working fine..no problems with health clinic accessing the servers.)

At the health clinic is a time-clock that the employees use to clock in and out for work, lunch, etc...
1. This time-clock is on an internal ip at the clinic.
2. At the hospital in order for the server than runs the time-clock to communicate with the time-clock I have added
a route (@ hospital) pointing to the ip of the time-clock and using the incoming pptp connection as the gateway.
(This works fine...no problems...until the pptp connection drops out. Then for some reason the hosptial side loses the pptp connection as the gateway and I have to go back in and set it again.)

Until I reset the gateway back to the pptp the time clock doesn't work. I understand why the gateway becomes unreachable, but what I'm wanting to know is, is there a way that I can set the route up so I don't have to keep reseting the gateway.

With it being a pptp connection from the other side, it might not work how i'd like it to work and I may have to change the way the clinic talks to the hospital but just curious.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Route gateway issue

Tue Sep 07, 2010 6:50 pm

have you created PPTP server for the appropriate user, so that the interface do not disappear on pptp reconnect?
 
lcx
newbie
Posts: 26
Joined: Wed Nov 11, 2009 2:58 pm

Re: Route gateway issue

Sun Sep 12, 2010 11:42 pm

I was about to ask the same question for L2TP ... but fond the answer in the wiki. not sore if will help with your issue ... but worth a try:

http://wiki.mikrotik.com/wiki/Manual:Interface/L2TP

[admin@RemoteOffice] /ppp secret> add name=Home service=l2tp password=123
local-address=172.16.1.1 remote-address=172.16.1.2 routes="10.1.101.0/24 172.16.1.1 1"

I forgot in my config the 'routes=' part and made a static route which used the gateway but was always reset when the connection was reset.
 
TheEnsona
newbie
Topic Author
Posts: 35
Joined: Sat May 09, 2009 7:22 am

Re: Route gateway issue

Sun Sep 12, 2010 11:49 pm

I added the pptp server for the client and so far it seems to work. I showed the IT guy there how to add the route back on the gateway if it drops out again and told him to call me and let me know if he has to manually add it back after I set it up differently and I haven't heard from him. I'll call him tomorrow and see if he has had to do anything to it over the weekend, but I think adding the pptp server interface for the client has fixed the problem. thanks!!