problem with filters and advertisments

my test configuration is

/routing bgp instance
set default as=65003 client-to-client-reflection=yes comment="" disabled=no \
    ignore-as-path-len=no name=default out-filter="" redistribute-connected=\
    no redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no \
    redistribute-static=no router-id=192.168.64.5

/routing bgp peer
add address-families=ip comment="" default-originate=never disabled=no \
    hold-time=3m in-filter="" instance=default multihop=no name=peer1 \
    nexthop-choice=default out-filter=test-out remote-address=192.168.64.3 \
    remote-as=65001 remove-private-as=no route-reflect=no tcp-md5-key="" ttl=\
    3

/routing bgp network
add comment="" disabled=no network=192.168.88.0/24 synchronize=no
add comment="" disabled=no network=192.168.89.0/24 synchronize=no
add comment="" disabled=no network=192.168.90.0/24 synchronize=no

/routing filter
add action=accept chain=test-out comment="" disabled=no invert-match=no \
    prefix=192.168.88.0/24
add action=accept chain=test-out comment="" disabled=no invert-match=no \
    prefix=192.168.89.0/24
add action=accept chain=test-out comment="" disabled=no invert-match=no \
    prefix=192.168.90.0/24
add action=reject chain=test-out comment="" disabled=no invert-match=no

I change filter “test-out” and remove prefix 192.168.90.0/24.

 
 0   chain=test-out prefix=192.168.88.0/24 invert-match=no action=accept 

 1   chain=test-out prefix=192.168.89.0/24 invert-match=no action=accept 

 2 X chain=test-out prefix=192.168.90.0/24 invert-match=no action=accept 

 3   chain=test-out invert-match=no action=reject

I see that only 2 prefixes advertise

[admin@MikroTik] /routing> bgp adv pr peer1
PEER     PREFIX               NEXTHOP          AS-PATH                                                       ORIGIN     LOCAL-PREF
peer1    192.168.88.0/24      192.168.64.5                                                                    igp       
peer1    192.168.89.0/24      192.168.64.5                                                                    igp

But my bgp peer receive all 3 prefixes until I restart bgp session. Is this a bug?

I want to update my filters without reset bgp session like clear ip bgp 192.168.64.5 out in cisco

Click on refresh all button in bgp peer window.

I try to click all buttons Refresh Refresh-all Resend and Resend-all it can’t help.
Also i read http://wiki.mikrotik.com/wiki/BGP_soft_reconfiguration_alternatives_in_RouterOS :slight_smile:
Only stop and start bgp session help me.

Test on versions 3.30 and 4.2.

hmmm… I have already write this to support: “withdrawn” updates updates are not send when filtering out some advertisements… mrz, you answered that something was changed in BGP daemon, and that should fix it. as far as I can see, it’s still not fixed… please check that

Problem solved, wait for new RouterOS release.

Thanks! =)

Thanks! :slight_smile: