Quick tip: Matching default route in a standard ACL
I've got the following question from Matthew: »how would one go about matching the default route for filtering using standard ACLs?«
In all routing protocols but EIGRP (which can carry the »default candidate« flag on any IP prefix), the default route has IP address 0.0.0.0 and subnet mask 0.0.0.0.
To match the default route with a standard ACL, use access-list x permit 0.0.0.0. To match it with an extended ACL (which matches the IP address and the subnet mask portions), you have to use access-list y permit ip host 0.0.0.0 host 0.0.0.0. And finally, to match the default route in a prefix list, use ip prefix-list z permit 0.0.0.0/0.
This article is part of You've asked for it series.
Sometimes they've got it right, sometimes they've tried to use a hammer on a bolt :) IP prefix lists should be used whenever possible and the only viable reason to use ACLs for route filters is to pass the CCIE lab exam.
access-list 100 permit ip any host 0.0.0.0
doesn't this translate into access-list 100 permit ip 0.0.0.0 255.255.255.255 0.0.0.0 0.0.0.0 ?
Is this not correct?
Anyway, prefix lists are the way to go.