how to advertise multible prefixes controlled with Filters?

Hello everyone,

I came accross a problem a few days back. I wanted to advertise on a single peer multible prefixes I set up the networks enabled synchronise. Put my peer wasn’t advertised.
add action=passthrough chain=bgp-1-out comment=“” disabled=no invert-match=no prefix=192.168.0.0/16 prefix-length=21
add action=passthrough chain=bgp-1-out comment=“” disabled=yes invert-match=no prefix=10.200.0.0/16 prefix-length=21
add action=reject chain=bgp-1-out comment=“” disabled=no invert-match=no

There is something wrong with my filters since I modify the reject none of the two prefixes gets advertised can anyone help ? Or tell me what I’m doing wrong with the filters.

prefix-length=8-21 ?
or
prefix-length=21-32

etc… you need to specify a range if you want anything other than a /21.

what version of ROS?

what’s in BGP Networks?

are there routes to those subnets in routing table? and why do you need ‘Syncronize’?

hello,

I have modified the filters to the following
add action=passthrough chain=bgp-1-out comment=“” disabled=no invert-match=no prefix=192.168.0.0/16 prefix-length=16
add action=passthrough chain=bgp-1-out comment=“” disabled=yes invert-match=no prefix=10.200.0.0/16 prefix-length=16
add action=reject chain=bgp-1-out comment=“” disabled=no invert-match=no

That is the prefix length that I want to transmit. But again none of the two advertisments gets send. Anyother ideas???

Thanks,

Sotiris

stop-stop… didn’t notice… you should use ‘accept’ instead of ‘passthrough’ =)