Re: prefix and acl

From: <daniel.dib_at_reaper.nu>
Date: Sun, 24 Jun 2012 15:12:41 +0200

 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

Blogs and organic groups at http://www.ccie.net
Received on Sun Jun 24 2012 - 15:12:41 ART

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