6 Digit ASN in routing filter

Hello,

At one of our peering points, we have a BGP session to a route collector/server, and we utilize BGP communities to determine which ASNs we advertise our prefixes to. For example, to advertise to the collector (ASN12345) and to advertise our prefixes to peer with ASN67890, the route filter looks like this;

chain=bgp_out prefix=xxx.xxx.xxx.xxx/yy invert-match=no
action=accept set-bgp-prepend-path=“”
set-bgp-communities=0:12345,12345:67890

This has been working well so far, now my issue is that there are some peers with 6 digit ASN. If i try to use the same method, the 6 digit ASN is refused. I have tried via winbox and also CLI, no difference.

Router is CCR1036-12G-4S running ROS v6.12

Anyone?

One BGP community size 4bytes so obviously you cannot fit 8bytes there.
You will have to use a different method for such clients, for example two BGP communities.

Thanks. Can you explain how to do that in my example above?