Re: prefix and acl

From: Sarad <tosara_at_gmail.com>
Date: Mon, 25 Jun 2012 00:33:27 +1000

Hi Hasse,

We can use a extended access-list in BGP to replace a prefix-list, But in
IGP it appears differently as extended accesslist represent the route
source and subnet (not subnet and subnet mask)

Have a look at this
http://blog.internetworkexpert.com/2008/01/04/using-extended-access-lists-in-a-distribute-list/

Cheers
Sara

On Sun, Jun 24, 2012 at 11:12 PM, <daniel.dib_at_reaper.nu> wrote:

> Hi Hasse,
>
> You are trying to match every class C address with /24 mask right? This is
> not possible with a standard ACL. If you used extended ACL you could match
> mask like this.
>
> access-list 100 permit 192.0.0.0 31.255.255.255 host 255.255.255.0
>
> However I think this is only supported in BGP.
>
> /Daniel
>
>
> On Sun, 24 Jun 2012 14:02:01 +0200, Hasse wrote:
>
>> Can I do this with an acl or extended cal, I have a Brain Freeze
>> Thanks.
>>
>> R2#show run | sec rip
>> router rip
>> version 2
>> network 10.0.0.0
>> distribute-list prefix 1 in FastEthernet0/0
>> no auto-summary
>>
>> R2#show run | sec prefix-list
>> ip prefix-list 1 seq 5 permit 192.0.0.0/3 ge 24 le 24
>>
>> R2#show ip route rip
>> R 223.1.1.0/24 [120/1] via 10.1.12.1, 00:00:19, FastEthernet0/0
>> R 200.1.1.0/24 [120/1] via 10.1.12.1, 00:00:19, FastEthernet0/0
>> R 192.1.1.0/24 [120/1] via 10.1.12.1, 00:00:19, FastEthernet0/0
>> R 195.1.1.0/24 [120/1] via 10.1.12.1, 00:00:19, FastEthernet0/0
>>
>> if I am using a standard ACL
>>
>>
>> Standard ACL
>> R2#show run | sec rip
>> router rip
>> version 2
>> network 10.0.0.0
>> distribute-list 1 in FastEthernet0/0
>> no auto-summary
>>
>> R2#show run | sec access-list
>> access-list 1 permit 192.0.0.0 31.255.255.0
>>
>> R2#show ip ro rip
>> R 223.1.1.0/24 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>> R 200.1.1.0/24 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>> 193.1.1.0/25 is subnetted, 1 subnets
>> R 193.1.1.0 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>> R 192.1.1.0/24 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>> R 195.1.1.0/24 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>> 194.1.1.0/26 is subnetted, 1 subnets
>> R 194.1.1.0 [120/1] via 10.1.12.1, 00:00:07, FastEthernet0/0
>>
>>
>> Blogs and organic groups at http://www.ccie.net
>>
>>
>> ______________________________**______________________________**
>> ___________
>> Subscription information may be found at:
>> http://www.groupstudy.com/**list/CCIELab.html<http://www.groupstudy.com/list/CCIELab.html>
>>
>
>
> Blogs and organic groups at http://www.ccie.net
>
> ______________________________**______________________________**
> ___________
> Subscription information may be found at: http://www.groupstudy.com/**
> list/CCIELab.html <http://www.groupstudy.com/list/CCIELab.html>

Blogs and organic groups at http://www.ccie.net
Received on Mon Jun 25 2012 - 00:33:27 ART

This archive was generated by hypermail 2.2.0 : Sun Jul 01 2012 - 10:39:52 ART