More OSPF Filtering With Route-Maps

I cant understand why the following config does not filter anything. I am denying the routes learned from that are 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
access-list 2 permit any
access-list 3 deny
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.