O'Reilly logo
  • muha med thinks this is interesting:

Note the router processes these commands sequentially and stops as soon as it gets a match. So although the device 192.168.15.1 is also a member of the 192.168.15.0 subnet, its routes receive an administrative distance of 15. However, if the two commands were set in the opposite order, the more specific one would never be invoked.

From

Cover of Cisco IOS Cookbook, 2nd Edition

Note

Decision making sequence of route-maps