Community discussions

MikroTik App
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

BGP Filters - howto?

Mon Oct 18, 2021 2:07 pm

Dealing with BGP on Mikrotik, and just to check if I'm right with syntax:
  • how to permit all paths that are not longer that (say) 5 hops?
  • how to permit to get all routes that are leading to (say) 8.8.8.8?

And another question, if there any way I can do BGP Conditional Advertisement (like in Cisco https://www.cisco.com/c/en/us/support/d ... d-adv.html)?

Thank you in advance!
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 766
Joined: Mon May 27, 2013 2:05 am

Re: BGP Filters - howto?

Mon Oct 18, 2021 2:42 pm

This Wiki will tell you how the filters work.

BGP routes do not carry 'hops', but using bgp-as-path-length you can calculate the how many AS's in the routes path and filter based on that.
 
upower3
Member
Member
Topic Author
Posts: 425
Joined: Thu May 07, 2015 11:46 am

Re: BGP Filters - howto?

Mon Oct 25, 2021 12:09 pm

This Wiki will tell you how the filters work.

BGP routes do not carry 'hops', but using bgp-as-path-length you can calculate the how many AS's in the routes path and filter based on that.
I read that, the problem is, I'm not sure how filters work exactly in MT verson. Regexps as an example. Wiki's exmples are pretty simple.

Who is online

Users browsing this forum: No registered users and 20 guests