Hi there,
Currently there are around 2000 IP prefixes in the Internet table with an illegal value 0:0 community set.
-> http://blog.ipspace.net/2008/03/misteri ... unity.html
With all other vendors, thats not a big problem, but with Mikrotik it breaks the matching algorithm for the community filter.
For example:
Your Upstream sends you the whole Internet-table but you only want to accept the prefixes from the Czech Republic, normally you do that by filtering the routes with the "Czech Republic" community set.
Level3 has a community for all prefixes learned in Czech Republic: 3356:512
Then your Filter should look like this:
add action=accept bgp-communities=3356:512 chain=TEST comment=accept_cz_prefixes
add action=discard chain=TEST
currently there are 354 routes tagged with the 3356:512 community, but we can see 2393 routes going through the filter:
/ip route> print count-only
2393
Here an example of a wrong matched route:
6 ADb dst-address=2.179.0.0/16 gateway=XXX gateway-status=XX recursive via XXX vlan252 distance=200 scope=40 target-scope=30 bgp-as-path="200612,12880" bgp-local-pref=100 bgp-med=100 bgp-origin=igp
bgp-communities=0:0,XXX:30000, received-from=XXXX
no 3356:512 at all..
one of the 354 "good" routes:
0 ADb dst-address=31.179.197.0/24 gateway=XXX gateway-status=XXX recursive via XXX vlan252 distance=200 scope=40 target-scope=30 bgp-as-path="3356,50607,198537" bgp-local-pref=100 bgp-med=100
bgp-origin=igp bgp-communities=3356:2,3356:22,3356:100,3356:123,3356:512,3356:2083,XXX:30000,XXX:30120,50607:8000,50607:8079 received-from=XXXX
I sent a bug report months ago but mikrotik wasnt able to fix it by now..
"Ok, sorry. Currently our priority is to work on new routing implementation.
Unfortunately I cannot tell when exactly we will start to fix this problem in old
versions."
Tested with:
6.34.6
6.36.3
6.37rc36
Best Regards,
Tobias