cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2993
Views
20
Helpful
6
Replies

ACL for BGP

gongya001
Level 1
Level 1

 

bgp.png

On R1

access-list 10 permit 7.7.7.7 log
!
route-map set-LP-300 permit 10
 match ip address 10
 set local-preference 300
!
route-map set-IP-300 permit 20
!
router bgp 65001
  . . . . 
 address-family ipv4
  network 1.1.1.1 mask 255.255.255.255
  neighbor 2.2.2.2 activate
  neighbor 3.3.3.3 activate
  neighbor 3.3.3.3 soft-reconfiguration inbound
  neighbor 3.3.3.3 route-map set-LP-300 in
 exit-address-family

R1(config)#do show access-lists
Standard IP access list 10
    10 permit 7.7.7.7 log (1 match)

On R4

access-list 10 permit 7.7.7.7 log
!
route-map set-LP-300 permit 10
 match ip address 10
 set local-preference 300
!
route-map set-IP-300 permit 20
!
router bgp 100
 bgp log-neighbor-changes
 neighbor 20.10.1.2 remote-as 65001
 neighbor 20.10.2.3 remote-as 65001
 neighbor 30.10.1.5 remote-as 200
 neighbor 30.10.2.6 remote-as 300
 neighbor 30.10.2.6 route-map set-IP-300 in

R4#show access-lists
Standard IP access list 10
    10 permit 7.7.7.7 log

Why no match on R4 ?

thanks !!

4 Accepted Solutions

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

Is it possible that R4 had already learned the route before you configured the ACL and the route map? What happens if you stop and restart the neighbor relationship on R4?

 

HTH

 

Rick

HTH

Rick

View solution in original post

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

On R4, you’re using set-IP-300 as route-map instead of set-LP-300.

 

Also I highly believe you’ve done a spelling issue because set-LP-300 set local-pref for 7.7.7.7 and I guest the set-IP-300 permit 20 to take all others as default should have been set-LP-300 permit 20.

 

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

Francesco

 

You read more carefully than I did. Congratulations. So often the solution to a problem is in a simple detail that we have overlooked. 

 

HTH

 

Rick

HTH

Rick

View solution in original post

You're welcome.
No problem we're here to help.
Sometimes the issue is right in front of us but to concentrate to see it.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

6 Replies 6

Richard Burts
Hall of Fame
Hall of Fame

Is it possible that R4 had already learned the route before you configured the ACL and the route map? What happens if you stop and restart the neighbor relationship on R4?

 

HTH

 

Rick

HTH

Rick

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

On R4, you’re using set-IP-300 as route-map instead of set-LP-300.

 

Also I highly believe you’ve done a spelling issue because set-LP-300 set local-pref for 7.7.7.7 and I guest the set-IP-300 permit 20 to take all others as default should have been set-LP-300 permit 20.

 

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Francesco

 

You read more carefully than I did. Congratulations. So often the solution to a problem is in a simple detail that we have overlooked. 

 

HTH

 

Rick

HTH

Rick

thanks so much.  Sorry for my carelessness.

You're welcome.
No problem we're here to help.
Sometimes the issue is right in front of us but to concentrate to see it.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

thanks so much.

sorry for my carelessness.