Community discussions

MikroTik App
 
LuizMeier
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

PPTP and OSPF issue

Thu Aug 21, 2014 9:25 pm

Hello!

I'm having some troubles with branches with 2 PPTP tunnels running with OSPF:

I have 2 tunnels on these branchs for redundancy. Each PPTP tunnel connects to a different link on my HQ and goes out by a different link on branch. It's something like PPTP-1 connecting from branch's ISP1 to HQ's ISP1 and PPTP-2 connecting from branch's ISP2 to HQ's ISP2.

I have declared both PPTP tunnels on OSPF and different link costs for interfaces, once I want the better link to be used mostly.

The thing is something is ocurring (I think on branch's RB2011) that is making the traffic be divided on 2 links. Tx is going for PPTP-1 and Rx is comming for PPTP-2. Can someone help me?
Capturar.JPG
Below is the configuration:
HQ

IP Address 172.20.1.1 for all PPTP tunnels

ros code

/routing ospf network export
add area=backbone comment="Vox Matriz GVT" network=172.20.1.44/32
add area=backbone comment="Vox Matriz TPA" network=172.20.1.3/32

/routing ospf interface export
add authentication=md5 authentication-key=XXX authentication-key-id=10 cost=50 interface=pptp-vox-matriz-gvt network-type=point-to-point
add authentication=md5 authentication-key=XXX authentication-key-id=10 interface=pptp-vox-matriz-tpa network-type=point-to-point
Branch

IP address 172.20.1.3 and 172.20.1.44

ros code

/routing ospf network export
add area=backbone network=172.20.1.1/32

/routing ospf interface export
add authentication=md5 authentication-key=XXX authentication-key-id=10 interface=bridge1-rede-local \
    network-type=broadcast passive=yes
add authentication=md5 authentication-key=XXX authentication-key-id=10 cost=50 interface=pptp-barigui-gvt \
    network-type=point-to-point
add authentication=md5 authentication-key=XXX authentication-key-id=10 interface=pptp-barigui-tpa \
    network-type=point-to-point
You do not have the required permissions to view the files attached to this post.
 
CelticComms
Forum Guru
Forum Guru
Posts: 1765
Joined: Wed May 02, 2012 5:48 am

Re: PPTP and OSPF issue

Sat Aug 23, 2014 12:33 am

Can you show the routing tables for both ends? I don't see the branch local network explicitly being advertised so assume you have some static routes involved in the routing process.
 
LuizMeier
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: PPTP and OSPF issue

Mon Aug 25, 2014 2:38 pm

Hello CelticComms,

Sorry, I forgot to put them here when I cleaned the results for security. :)

Branch

ros code

/routing ospf network
add area=backbone network=10.25.44.0/23
add area=backbone network=172.20.1.1/32
add area=backbone network=172.20.2.1/32
HQ

ros code

add area=backbone comment="VLAN 25" network=10.254.254.16/30
add area=backbone comment="VLAN 11" network=10.254.254.0/28
add area=backbone comment="Vox Matriz GVT" network=172.20.1.44/32
add area=backbone comment="Vox Matriz TPA" network=172.20.1.3/32
On VLAN25, the HQ's RB learns from my firewall the route 10.25.0.0/23 (which is my local network on HQ) and teaches it to the branches.

There is something I did for hour to solve this issue, and I don't know why it worked. My boss gave me the tip to use 2 different networks for each tunnel. It respected the weights of the costs, and I don't know why.
I though it would respect the costs, no matter the network used.
 
User avatar
otgooneo
Trainer
Trainer
Posts: 581
Joined: Tue Dec 01, 2009 3:24 am
Location: Mongolia
Contact:

Re: PPTP and OSPF issue

Tue Jan 06, 2015 11:14 am

Hi LuizMeier. Did you find the answer?
 
LuizMeier
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: PPTP and OSPF issue

Tue Jan 06, 2015 12:42 pm

Hello!

Nope, didn't find any answer for what I was intendind to do. for now, we're working with OSPF on just one area. IN the first time, I "solved" the problem using routing filters, but it became a problem when I needed to publish other routes.

So, I'm now living with a big routing table on all my routers.
 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1222
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: PPTP and OSPF issue

Tue Jan 06, 2015 1:33 pm

I reported this behavior some time ago (Ticket #2014100566000091):
http://forum.mikrotik.com/viewtopic.php?f=14&t=89893

The response was that in MTs opinion this is "only" a minor bug and will be solved in V7.
 
LuizMeier
Member Candidate
Member Candidate
Topic Author
Posts: 104
Joined: Tue Sep 25, 2012 11:57 pm
Location: Curitiba, PR - Brasil

Re: PPTP and OSPF issue

Tue Jan 06, 2015 2:12 pm

I did the same thing with the "2 gw per route" issue. Used 2 tunnels with 2 differente peers, so I have also redundancy.

My problem was, actually, the size of routing table. I though OSPF would summarize the routes that passes over HQ, so it woud not need to learn all routes.

For example, to reach the network 10.0.2.0/24, I have to pass over my HQ, wich network is 10.0.0.0/24. I was wondering Branch router to learn just 10.0.0.0 as a gateway for all paths, once he IS, actually, the one way to branch to reach any other place.
 
faisali
Member Candidate
Member Candidate
Posts: 180
Joined: Fri Oct 08, 2010 5:11 am

Re: PPTP and OSPF issue

Wed Jan 07, 2015 5:25 am

I though OSPF would summarize the routes that passes over HQ, so it woud not need to learn all routes.
If you want to do route summarization, then take a closer look at this example how to ...
http://wiki.mikrotik.com/wiki/OSPF/Summ ... ex_example

Who is online

Users browsing this forum: No registered users and 41 guests