Community discussions

MikroTik App
 
ericsooter
Member Candidate
Member Candidate
Topic Author
Posts: 285
Joined: Mon Mar 07, 2005 6:16 pm
Location: Oklahoma USA

PPPoE and OSPF with v7

Wed Jul 27, 2022 11:12 pm

We just converted our first router that was acting as a PPPoE server to 7.4. All seemed to look good; but I'm not able to get the PPPoE routes to advertise properly in OSPF. Not using any summaries or areas. Here is the basic configuration:

/routing ospf instance
add disabled=no name=default-v2 router-id=0.0.0.1
/routing ospf interface-template
add area=backbone-v2 auth=md5 auth-id=1 auth-key=xxxx cost=10 disabled=no \
interfaces=dynamic networks=10.100.34.0/24 passive priority=1

/ip pool
add name=pppoe-pool ranges=10.100.34.2-10.100.34.254
/ppp profile
add local-address=10.100.34.1 name=pppoe-profile remote-address=pppoe-pool

/interface pppoe-server server
add authentication=pap,chap default-profile=pppoe-profile disabled=no interface=\
vlan1034-pppoe-bridge service-name=pppoe-server

I see all the ospf interfaces populate in this manner:

20 D address=10.100.34.1%<pppoe-VillaLoftApt402> area=backbone-v2 state=passive
network-type=broadcast cost=10 priority=128 retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s
21 D address=10.100.34.1%<pppoe-villaloftapt305> area=backbone-v2 state=passive
network-type=broadcast cost=10 priority=128 retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s
22 D address=10.100.34.1%<pppoe-VillaLoftApt129> area=backbone-v2 state=passive
network-type=broadcast cost=10 priority=128 retransmit-interval=5s transmit-delay=1s
hello-interval=10s dead-interval=40s


The problem is that because ALL the ospf interfaces say address=10.100.34.1%xxxxx; I only see one propagated OSPF route for 10.100.34.1 going to the neighbors. So 10.100.34.1 is the pppoe local address. Under V6 ROS it propagated all the remote IP addresses (ie 10.100.34.2, 10.100.34.3, etc). Also in v6, we had the "OSPF Interfaces" and "OSPF networks" section. Guessing there is a problem with the /routing ospf interface template. Also, on V6 we never had to "Redistribute Connected". Was hoping to avoid redistribution. What would be the proper way for ROS 7.4?
 
ernieball17
just joined
Posts: 16
Joined: Thu Jan 28, 2021 9:55 pm

Re: PPPoE and OSPF with v7

Wed Nov 09, 2022 3:55 pm

Same problem here, nobody answered about that
 
User avatar
Wolfraider
Frequent Visitor
Frequent Visitor
Posts: 88
Joined: Wed Jul 15, 2015 8:06 pm

Re: PPPoE and OSPF with v7

Thu Dec 15, 2022 5:31 pm

We ended up checking connected and setting up routing filters to only allow OSPF to distribute the networks we want
 
ericsooter
Member Candidate
Member Candidate
Topic Author
Posts: 285
Joined: Mon Mar 07, 2005 6:16 pm
Location: Oklahoma USA

Re: PPPoE and OSPF with v7

Fri Dec 23, 2022 5:24 pm

I was finally able to get this working properly on 7.6 without doing any redistribution. The key was using type "ptp" in the template instead of "broadcast".

/routing ospf interface-template
add area=pppoe-area type=ptp disabled=no \
networks=10.100.34.0/24 passive

This also allowed us to summarize our pppoe pools properly. So now I have it doing ospf summaries like ROS6.

Who is online

Users browsing this forum: AkosGergely, araqiel, Bing [Bot], GoogleOther [Bot], Marc1963, miks and 77 guests