Community discussions

MikroTik App
 
danmiles86
just joined
Topic Author
Posts: 14
Joined: Thu Mar 24, 2016 10:54 pm

PPPOE Dyanmic Route - Routing Mark

Sat Feb 04, 2017 12:16 am

Sorry if this is a noob question, had a good search and can't find what I'm looking for which usual means I'm doing something in totally the wrong way!!

I'm using routing marks to manage traffic out to different ISP's. Once of this is via a PPPOE connection which gives me a dynamic route to their next hop. Ideally I'd to add a routing mark direct on this. In the past I have been over-riding this by setting a matching static route with a lower distance and putting the routing mark on here. However my ISP has now taken to changing the next hop IP at seemingly random intervals making this approach fail.

How should I be doing it?

Cheers
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: PPPOE Dyanmic Route - Routing Mark

Sat Feb 04, 2017 8:19 pm

You can use routing filters to change route parameters when it's created:
/routing filter
add chain=dynamic-in distance=10 set-distance=1 set-routing-mark=wan1
In this example, original distance 10 is what's used to match the right route.