From: Patrick Torney (ptorney@satx.rr.com)
Date: Wed Aug 04 2004 - 14:49:39 GMT-3
! Before...
R1(config-router)#do sh ip route ospf
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
O E1 172.16.16.0/24 [110/84] via 172.15.1.2, 00:03:11, Serial0
O E1 172.16.15.0/28 [110/148] via 172.15.1.2, 00:03:11, Serial0
O E1 172.16.15.0/24 [110/84] via 172.15.1.2, 00:03:11, Serial0
O 192.168.101.0/24 [110/128] via 172.15.1.2, 00:03:11, Serial0
! after... (used route-map along with distribute-list in router process
below)
router ospf 1
log-adjacency-changes
network 172.15.1.1 0.0.0.0 area 0
neighbor 172.15.1.2 priority 1
distribute-list route-map WORD in
!
ip classless
no ip http server
no ip http secure-server
!
!
!
ip prefix-list WORD seq 5 permit 172.16.15.0/28
!
!
route-map WORD deny 10
match ip address prefix-list WORD
!
route-map WORD permit 20
R1#sh ip route ospf
172.16.0.0/24 is subnetted, 2 subnets
O E1 172.16.16.0 [110/84] via 172.15.1.2, 00:03:35, Serial0
O E1 172.16.15.0 [110/84] via 172.15.1.2, 00:03:35, Serial0
O 192.168.101.0/24 [110/128] via 172.15.1.2, 00:03:35, Serial0
R1#
HTH
----- Original Message -----
From: "Chuck South" <cciesouth@bellsouth.net>
To: <ccielab@groupstudy.com>
Sent: Wednesday, August 04, 2004 10:34 AM
Subject: distribute-list question
> Need help with a distribute-list;
>
> Two routes on a router;
> O E1 172.16.15.0/28 [110/67] via 172.16.100.1, 16:46:21, Serial0
> O E1 172.16.15.0/24 [110/67] via 172.16.100.1, 16:46:23, Serial0
>
> Want to block the /28 so I tried a distribute-list 1 in with;
>
> access-list 1 deny 172.16.15.0 0.0.0.15
> access-list 1 permit any
>
> But this blocked the both routes...?
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Sep 03 2004 - 07:02:32 GMT-3