cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
724
Views
0
Helpful
2
Replies

Route-Map (BGP)

ksarin123_2
Level 1
Level 1

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

Peter Paluch
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

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

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

Getting Started

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: