09-19-2010 08:51 PM - edited 03-04-2019 09:49 AM
Hello folks -
I am using a route-map in BGP to filter some routes from an eBGP neighbor. However, the filtering is not working as expected.
Not sure where am I going wrong. Below is the config.
ip prefix-list deny_rsa seq 5 permit 10.20.30.0/24
ip prefix-list deny_rsa seq 10 permit 10.20.40.0/24
route-map test deny 10
match ip address deny_rsa
route-map test permit 20
router bgp 11
no synchronization
bgp log-neighbor-changes
network 10.10.12.0 mask 255.255.255.0
neighbor 10.10.12.1 remote-as 11
neighbor 10.10.12.1 route-map test in
no auto-summary
Essentially, I am trying to filter 10.20.30.0/24 & 10.20.40.0/24 but somehow this config is not working as expected.
Can any one tell where is my logic wrong?
Thanks for your help.
Solved! Go to Solution.
09-19-2010 11:04 PM
Hello,
You have a small error in your route-map - your route-map refers to an ACL deny_rsa which does not exist, instead of referring to a prefix-list. Correctly, your route-map should be:
route-map test deny 10
match ip address prefix deny_rsa
!
route-map test permit 20
Don't forget to perform the clear ip bgp * in command after you modify or apply the route-map.
Best regards,
Peter
09-19-2010 11:04 PM
Hello,
You have a small error in your route-map - your route-map refers to an ACL deny_rsa which does not exist, instead of referring to a prefix-list. Correctly, your route-map should be:
route-map test deny 10
match ip address prefix deny_rsa
!
route-map test permit 20
Don't forget to perform the clear ip bgp * in command after you modify or apply the route-map.
Best regards,
Peter
09-20-2010 09:43 AM
Thanks for your reply Peter. That did the trick!!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: