Default Route only with BGP and Prefix-List

Hi Rene.

How could I do to announce only default route to my iBGP neighbor and block all the other prefixes that is learned from eBGP neighbors. the idea is to use powerless iBGP routers. I’m trying and it’s not working.

Thanks.

I did it,

ip prefix-list onlydefault permit 0.0.0.0/0
ip prefix-list onlydefault deny 0.0.0.0/0 ge 32
1 Like

You could make it even simpler:

ip prefix-list onlydefault permit 0.0.0.0/0

By default, everything you don’t permit will be denied anyway.

Also to match all routes, it should be:

ip prefix-list onlydefault deny 0.0.0.0/0 le 32

So ‘le’ instead of ‘ge’.