cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2448
Views
10
Helpful
2
Replies

BGP distribute-list prefix

Not applicable

Hi all,

Is anybody able to assist with why the below configuraiton does not work? BGP exchanges routes without a problem all the time the distribute list is removed from the config. When I apply the distribute list it blocks all routes, not just those intended in the prefix list.

router bgp 65535

no synchronization

bgp log-neighbor-changes

network 10.18.68.0 mask 255.255.255.0

neighbor 172.18.2.1 remote-as 65535

neighbor 172.18.2.1 password ciscobgp

distribute-list prefix CORE_ROUTES out

no auto-summary

!

!

!

ip prefix-list CORE_ROUTES seq 5 deny 10.1.1.0/24

Thanks in advance.

Neil

2 Replies 2

cadet alain
VIP Alumni
VIP Alumni

Hi,

don't forget that there is an implicit deny all as in ACLs so you need to add an explicit permit:

ip prefix CORE_ROUTES permit 0.0.0.0/0 le 32

Don't forget to do a route refresh with  do clear ip bgp * out

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Thanks Alain.

Review Cisco Networking products for a $25 gift card