More OSPF Filtering With Route-Maps

I cant understand why the following config does not filter anything. I am denying the routes learned from 155.1.0.4 that are 155.1.146.0. In the work book the deny statements are on the routemaps and they permit in the access-lists. Isnt this roughly the same logic? Instead of denying on the route map I deny on the access-list. Or am I missing something here. When I reverse the logic and configure it like the work book and deny at the routemap and permit at the access list it works.

router ospf 1
  distribute-list route-map filter in
!
access-list 2 deny   155.1.146.0
access-list 2 permit any
access-list 3 deny   155.1.0.4
access-list 3 permit any
!
route-map filter permit 10
 match ip address 2
 match ip next-hop 3

Sign In or Register to comment.