From: John Matus (john_matus@hotmail.com)
Date: Tue Mar 15 2005 - 21:30:45 GMT-3
Prefix-list vs. access-list question
Im a bit confused about the functionality of prefix-lists vs. access-lists.
While Im aware that prefix-lists seem to have some added granularity Im
a bit stumped as to when it is best practice to use one vs. the other. Here
are a few examples of each
EXAMPLE 1
Router os 1
Default-information originate route-map conditional
-------------------------------------------
Route-m conditional permit 10
Match ip address prefix 5
Ip prefix-list 5 permit 192.168.1.0/24
OR
Route-m conditional permit 10
Match ip add 5
Access-list 5 permit 192.168.1.0 0.0.0.255
EXAMPLE 2
Router rip
Redistribute ospf 1 metric 1 route-map o2r
-------------------------------------------
Route-map o2r permit 10
Match ip add prefix-list 5
Access-list 5 permit 192.168.1.0 0.0.0.0.255
OR
Route-map o2r permit 10
Match ip address prefix-list 5
Ip prefix-list 5 permit 192.168.1.0/24
Do both methods accomplish exactly the same thing or is the matching
mechanism different in access and prefix lists?
This archive was generated by hypermail 2.1.4 : Sun Apr 03 2005 - 17:56:46 GMT-3