05-14-2020 02:58 PM
So in this lab, BGP neighbor 5.5.5.5 stilll show 2.1.1.1 BGP route that i am trying to filter on R2 below. Not sure what I am missing.
I tried just using /32 or /24 for loopbacks but that did not help so...
Also cleared neighbors after changes.
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip rip advertise 5
!
interface Loopback1
ip address 2.1.1.1 255.255.255.0
ip rip advertise 5
!
interface Loopback3
ip address 2.3.3.3 255.255.255.0
router bgp 100
bgp router-id 2.2.2.2
bgp log-neighbor-changes
redistribute ospf 1 metric 255
neighbor 5.5.5.5 remote-as 500
neighbor 5.5.5.5 ebgp-multihop 2
neighbor 5.5.5.5 update-source Loopback0
neighbor 172.16.1.3 remote-as 100
distribute-list BGP100_RM in
ip prefix-list R2_Filter seq 5 permit 2.1.1.0/24
route-map BGP100_RM deny 10
match ip address prefix-list R2_Filter
!
route-map BGP100_RM permit 20
05-14-2020 11:58 PM
Hello,
try an access list or a prefix list as below:
access-list 1 deny 2.1.1.0 0.0.0.255
access-list 1 permit any
!
neighbor 172.16.1.3 distribute-list 1 in
or
ip prefix-list R2_Filter seq 5 deny 2.1.1.0/24
ip prefix-list R2_Filter seq 10 permit 0.0.0.0/0 le 32
!
neighbor 172.16.1.3 prefix-list R2_Filter in
05-15-2020 12:44 AM
Hello @CiscoBrownBelt ,
I may be wrong but I think the distribute-list command to be able to invoke a route-map needs the following syntax:
distribute-list route-map BGP100_RM in
I'm afraid that with your current configuration the distribute-list is looking for a named ACL with name BGP100_RM that does not exist.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide