Hello All,
I am a newbie in trying to figure out Mikrotik BGP Routing Filters. (am trying to change a config from Cisco )
Short summary of what I am trying to achieve:-
At the moment, am trying to accomplish two things:
1. Trying to Advertise routes (our-cdir) to the BGP Peer, and send Communities along with the route.
With the default instance:- appending bpg community 11280:115
With the inap-mia-out filter - appending bgp community 65020:0
2. Trying to set or append bgp community 11280:666 to all the incoming routes from the peer (INAP-MIA).
here is what my config looks like (the bgp related config) Am running Mikrotik ver 5.5 on a X-86 (RouterMaxx )
(Some of the filter / chains are nested because they are to be re-used with other chains.
If someone can help me sort this out and correct my filters, I would be greatful for the assistance, and setting me straight.
Need less to say, at the moment, bpg is up, but the filters below are not working.
Thanks.
Faisal
====================================================
/routing bgp instance
set default as=11280 client-to-client-reflection=no disabled=no \
ignore-as-path-len=no name=default out-filter=snpy-redistribute \
redistribute-connected=no redistribute-ospf=no redistribute-other-bgp=no \
redistribute-rip=no redistribute-static=no router-id=68.142.24.178 \
routing-table=""
/routing bgp network
add disabled=no network=68.142.0.0/19 synchronize=no
add disabled=no network=207.0.204.0/22 synchronize=no
/routing bgp peer
add address-families=ip as-override=no default-originate=never disabled=no \
hold-time=3m in-filter=inap-mia-in instance=default multihop=no name=\
INAP-MIA nexthop-choice=default out-filter=inap-mia-out passive=no \
remote-address=216.52.162.89 remote-as=12180 remove-private-as=yes \
route-reflect=no tcp-md5-key="" ttl=default update-source=loopback1 \
use-bfd=no
/routing filter
add action=passthrough chain=our-cidr disabled=no invert-match=no prefix=\
68.142.0.0/19 prefix-length=19-24
add action=passthrough chain=our-cidr disabled=no invert-match=no prefix=\
207.0.204.0/22 prefix-length=22-24
add action=passthrough chain=not-to-specific disabled=no invert-match=no \
prefix=0.0.0.0/0 prefix-length=0-24
add action=passthrough append-bgp-communities=65020:0 chain=inap-mia-out \
disabled=no invert-match=no match-chain=our-cidr
add action=passthrough append-bgp-communities=11280:666 chain=inap-mia-in \
disabled=no invert-match=no match-chain=not-to-specific
add action=passthrough append-bgp-communities=11280:115 bgp-origin="" chain=\
snpy-redistribute disabled=no invert-match=no match-chain=our-cidr
=======================================================