Need Help For Failover Link and OSPF settins

Hi all,

I have some questions and need some help… I need use two link for share traffic or make failover link. I try to draw simple diagram to show and explain.
Links.png
and here is setting ;
On Router1
/ip address
add address=10.10.2.9/29 interface=ether5-5GhzLink network=10.10.2.8
add address=10.255.255.3 interface=loopback network=10.255.255.3
add address=10.10.2.5/30 interface=Ether6-11Ghz network=10.10.2.4

/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.3
/routing ospf interface
add authentication=simple authentication-key=xxxx cost=20 interface=ether5-5GhzLink network-type=broadcast priority=15
add authentication=simple authentication-key=xxxx interface=Ether6-11Ghz network-type=broadcast priority=15
add authentication=simple authentication-key=xxxx interface=loopback network-type=broadcast
/routing ospf network
add area=backbone network=10.10.2.8/29
add area=backbone network=10.10.2.4/30
add area=backbone network=10.255.255.3/32

On Router2(PPPoE-Server)
/ip address
add address=10.10.2.12/29 interface=ether11-5GhzLink network=10.10.2.8
add address=10.255.255.7 interface=loopback network=10.255.255.7
add address=10.10.2.6/30 interface=ether10-11Ghz network=10.10.2.4
/routing ospf instance
set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.7
/routing ospf interface
add authentication=simple authentication-key=xxxx interface=ether10-11Ghz network-type=broadcast priority=14
add authentication=simple authentication-key=xxxx cost=20 interface=ether11-5GhzLink network-type=broadcast priority=14
add authentication=simple authentication-key=xxxx interface=loopback network-type=broadcast
/routing ospf network
add area=backbone network=10.10.2.8/29
add area=backbone network=10.10.2.4/30
add area=backbone network=10.255.255.7/32


How can i share internet on both link to use both of them ? and is possible to use 5ghz link for backup ? if one link down other link should continue.
and further more did i made correct settings for ospf ?

I read somewhere in forum If I am not mislead OSPF is universal tool for path finding. You can not transmit data in both ways at the sime time. You should try different methods but OSPF do If one link fails then the transmission will go with one link. OSPF does not double bandwith .

any one help ?

So have you got two ISPs? if yes i will do like that on ISP side i will run BGP and i will go ached with ospf and than i wil run LB.

The quid here is playing with radio links interface costs in order to achieve ECMP.

add authentication=simple authentication-key=xxxx interface=ether10-11Ghz network-type=broadcast priority=14
add authentication=simple authentication-key=xxxx cost=20 interface=ether11-5GhzLink network-type=broadcast priority=14

Have you tried w/o setting cost on the interfaces? If both links are directly connected on both routers, cost should be the same for both link routes.

Post

/ip route print detail
/routing ospf route print

You need to ensure both links have the same cost, playing with interface costs on both routers if needed, so that both links have equal cost, and ECMP kicks in.

no i have no two isp.

thanks pukkita,
I changed the cost to 10 both of them and now traffic goes both interface.. is this correct implementation ? should i change the gateway on router-2 or any extra setting ? and can you check the settings of ospf if correct :slight_smile:

I changed the cost to 10 both of them and now traffic goes both interface.. is this correct implementation ?

Yes, that’s ECMP in action.

should i change the gateway on router-2 or any extra setting ?

No need to do anything for failover, test that for yourself by disabling any of radio link interfaces. Traffic should flow through the other. Routing takes care of that.

and can you check the settings of ospf if correct

Post

/ip route print detail
/routing ospf route print

Hi pukkita,
I cant paste what you need to here cause there is more then 3200 route on list. I use redistribute-connected=as-type-1 and all pppoe ip’s also in route table. I think this is also problem.

I thought you were working on getting rid of that (from the other thread on that subject)

In the meantime, if you want to cut down on the routing table, then you can filter your /32 announcements on the pppoe server by creating an aggregate route and filtering out any sub-prefixes of it.

If the PPPoE server’s pool makes assignments to users from 10.20.30.0/24, then do these steps:
/ip route add type=blackhole dst=10.20.30.0/24
/routing filter
add chain=ospf-out action=discard prefix=10.20.30.0/24 prefix-length=25-32

If you have no other rules in the ospf-out chain, then that should be good enough. If you have other filters, then you’ll need to make sure this rule comes before any kind of rule which would accept 10.20.30.x/25 .. 10.20.30.x/32

EDIT: One other note - I’m assuming that you’re also redistributing static routes from the PPPoE server, which is required for the blackhole route to be advertised. If you’re not advertising 10.20.30.0/24 into OSPF, then don’t activate the filter rule because that would break your users’ connectivity.

yes of course … after your advice from the other thread I rid of that :slight_smile: thanks again.

/routing filter
add action=discard chain=ospf-out prefix=172.10.20.0/24 prefix-length=25-32
add action=accept chain=ospf-out
this is what im using now. but last one question in here. if pppoe_pool is not /24 and if it is /23 the prefix should change. am I true here ?

Yes after adding blackhole route im using redistributing static routes, but still cant rid from redistribute-connected=as-type-1 cause some special pppoe_ip adresess but routing table going to be cut down.

thanks for all advice again.

Hi ZeroByte
If I will use this way is it ok?.

/routing ospf area add area-id=0.0.0.1 name=pppoe1 type=stub
/routing ospf network add area=pppoe1 network=172.31.16.0/25
/routing ospf area range add advertise=yes area=pppoe1 range=172.31.16.0/25
/routing ospf interface add interface=all passive=yes


Thanks all

no any solution ?

Yes, use /23 and use prefix-length=24-32

Mostly correct - you’ll also need to add whichever interfaces you actually do want to form adjacencies on and set passive=no on those. If you don’t do that, then your OSPF will drop when you add interface=all passive=yes

Thanks ZeroByte