Community discussions

MikroTik App
 
OlofL
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Mon Oct 12, 2015 2:37 pm

Need help configuring a simple bgp filter in ROSv7

Tue Jun 01, 2021 4:52 pm

I am trying to redisitribute my connected routes.
I have two routes 172.17.10.0/24 and 172.17.2.0/24 that are directly connected.
BGP neighborship is up.

My attempt:
/routing bgp template
set default as=65536 redistribute=connected
/routing bgp connection
add local.role=ebgp name=cust123 output.filter=BGP-OUT remote.address=172.24.2.41 .as=65511 templates=default
/routing filter rule
add chain=BGP-OUT rule=" if ([num value=dst-len<greater-than>19] && [ prfx value=dst<subsumes>172.17.0.0/19]) then={action accept } "


My end goal is to replicate this filter from ROSv6. But I am not even advertising my /24 routes.
/routing filter
add action=accept chain=BGP-OUT prefix=172.17.0.0/19 prefix-length=19-32
add action=discard chain=BGP-OUT comment="Default discard"
 
OlofL
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Mon Oct 12, 2015 2:37 pm

Re: Need help configuring a simple bgp filter in ROSv7

Mon Jun 07, 2021 1:44 pm

Shameless bump
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7044
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Need help configuring a simple bgp filter in ROSv7

Mon Jun 07, 2021 1:48 pm

For output you need to configure /routing/filter/select and set it as output chain in bgp connect settings.

Who is online

Users browsing this forum: uxertxo and 17 guests