Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Route-Map (BGP)

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Route-Map (BGP)

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

2 REPLIES
Cisco Employee

Re: Route-Map (BGP)

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

Community Member

Re: Route-Map (BGP)

Thanks for your reply Peter. That did the trick!!

530
Views
0
Helpful
2
Replies
CreatePlease to create content