From: Jeff Szeto (jytszeto@xxxxxxxxxxx)
Date: Mon Apr 29 2002 - 00:33:59 GMT-3
Dear Group,
R2-s0--------------------s1-R1
RIP-172.16.28.0/24
Originally, R1 is learning the following rip routes from R2
R1#sh ip ro rip
172.16.0.0/16 is variably subnetted, 20 subnets, 6 masks
R 172.16.184.0/22 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.180.0/25 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.181.0/26 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.182.0/27 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.181.64/28 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.60.0/24 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.8.0/24 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.90.0/24 [120/1] via 172.16.28.8, 00:00:02, Serial1
R 172.16.70.0/24 [120/1] via 172.16.28.8, 00:00:02, Serial1
I only want R1 to learn the routes with /24. I have tried the prefix list and
it works
R1#sh ip pre
ip prefix-list p1: 2 entries
seq 5 deny 172.16.0.0/16 le 23
seq 10 permit 172.16.0.0/16 le 24
But the extended access-list does not work,
R1#sh ip access 104
Extended IP access list 104
permit ip 172.16.0.0 0.0.255.255 host 255.255.255.0
Could anyone help me? Also, is the prefix list I used the shortest one?
Thank you in advance.
Jeff
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:58:21 GMT-3