RE: Prefix list vs Access list - same?

From: Ryan West <rwest_at_zyedge.com>
Date: Mon, 1 Jun 2009 22:31:01 -0400

Hello,

Hey fellows, a simple and direct question:

Is there any difference that can be considered wrong in lab for these
sentences below?

1- ip prefix-list 10 permit 192.168.0.0/24 le 32 <-- allows 192.168.0.0 and every possible subnet combination from /24 to /32
2- ip prefix-listB 10 permit 192.168.0.0/24 <-- allows just 192.168.0.0/24
3- access-list 10 permit 192.168.0.0 <-- in a routing process, this would allow the subnet 192.168.0.0, but could mean anything from a /16 to a /32
4- access-list 10 permit 192.168.0.0 0.0.0.255 <-- allows just the /24

Can I use any one of them for matching network 192.168.0.0/24? I see they
work, but can they be correct for any instance? (we usually don't know
who can correct our lab, so have to be prepared).

---- Yes, the answer is it depends. You'll find that your freedom in selection is already dictated to you by what a question either asks or denies you from choosing. As far as matching the 192.168.0.0/24 network, option 1 would possibly be frown upon. Option 3 is pretty typical when matching routes.

Thanks

Alexandre.

-ryan

Blogs and organic groups at http://www.ccie.net
Received on Mon Jun 01 2009 - 22:31:01 ART

This archive was generated by hypermail 2.2.0 : Wed Jul 01 2009 - 20:02:36 ART