I've found a couple of links (easier explanation, more detailed one) that attempt to explain the concept of access lists and route maps. If I understood correctly, their behaviour largely depends on where and how access lists and route maps are used.
However I can't grasp the concept of
The route map statements can also be marked with a deny. If the statement is marked as a deny, the packets meeting the match criteria are sent back through the normal forwarding channels (in other words, destination-based routing is performed). Only if the statement is marked as permit and the packets meet the match criteria are all the set clauses applied. If the statement is marked as permit and the packets do not meet the match criteria, then those packets are also forwarded through the normal routing channel.
Okay, that makes sense. But what about this:
Router(config)# access-list 1 permit 10.1.1.0 0.0.0.255 Router(config)# route-map MYMAP permit 10 Router(config-route-map)# match ip address 1 Router(config-route-map)# set ip next-hop 192.168.1.1
permit in 1st and 3rd line. If the ip address matched
10.1.1.0 0.0.0.255, then its next hop is set to
What if I set it to
deny respectively? Or
deny? What would happen in such cases? I'm guessing, that the result after setting both to
deny would be the same as setting both to