Community discussions

MikroTik App
 
RichardD
just joined
Topic Author
Posts: 19
Joined: Wed Feb 24, 2016 1:00 pm

bgp communities and filters

Fri Feb 03, 2023 4:59 pm

Hi,
I am struggeling to get a filter done which allows all incoming bgp routes except those which are marked with a certain community. I am running OS 7.6 on the MT.

BGP session looks like this:
1 E name="ar2-mpls-1"
     remote.address=172.22.0.2 .as=29056 .id=217.29.145.52 .capabilities=mp,rr,as4,err .hold-time=20s .messages=810 .bytes=16255 .eor=ip
     local.address=172.25.0.130 .as=65535 .id=91.143.98.5 .capabilities=mp,rr,gr,as4 .messages=604 .bytes=11524 .eor=""
     output.procid=27 .filter-chain=BGP-OUT .network=LOCAL-NETWORKS-MPLS
     input.procid=27 .filter=PRIMARY ebgp
     multihop=yes hold-time=20s keepalive-time=6s670ms uptime=1h7m2s290ms last-started=jan/12/2023 00:46:48
Filter looks like this:
 3   chain=PRIMARY rule="if (bgp-communities includes 65535:600) { reject } else { set bgp-local-pref 85; accept }"
No idea how to display the details of a bgp route (communities, local preference, ...) (at Cisco show bgp x.x.x.x) but with Winbox I can see that communities are set and local preference is not set.
So it looks like that my filter is not working.
Any idea what I am doing wrong?
Thanks in advance
Richard
 
RichardD
just joined
Topic Author
Posts: 19
Joined: Wed Feb 24, 2016 1:00 pm

Re: bgp communities and filters

Tue Feb 07, 2023 10:49 am

Hi,
did an upgrade to 7.7 and do not have the problem any more. community checked in input filter is ok now
regards Richard

Who is online

Users browsing this forum: DMITRYB, nichky and 17 guests