Filter route from ospf

From: Mohamed Tandou (dtandou@gmail.com)
Date: Sat Aug 16 2008 - 17:23:03 ART


Hello Expert,

i got an issue may be you can help. i am running eigrp and ospf on R8. i did
mutual redistribution between ospf and eigrp. now i want to filter only the
following network so it will show up only in eigrp route not ospf route. but
when i did it it does not show up in ospf nor in eigrp.
here is my config

router eigrp 200
 redistribute ospf 110
 passive-interface default
 no passive-interface Serial0/0
 network 11.11.4.4 0.0.0.0
 network 11.11.150.4 0.0.0.0
 default-metric 100000 100 250 100 1500
 no auto-summary
 eigrp router-id 11.11.4.4
!
router ospf 110
 router-id 11.11.4.4
 log-adjacency-changes
 redistribute eigrp 200 subnets
 passive-interface default
 no passive-interface FastEthernet0/0.14
 no passive-interface Serial0/1
 network 11.11.114.4 0.0.0.0 area 0
 network 11.11.45.4 0.0.0.0 area 4
 default-metric 55
 distribute-list 44 in Serial0/1
!

access-list 44 deny 11.11.55.0 0.0.0.255
access-list 44 deny 11.11.44.0 0.0.0.255
access-list 44 deny 11.11.22.0 0.0.0.255
access-list 44 deny 11.11.35.0 0.0.0.255
access-list 44 deny 11.11.65.0 0.0.0.255
access-list 44 permit any

==========================================================================================================
BEFORE FILTER

R8#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static
route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

        11.0.0.0/8 is variably subnetted, 14 subnets, 2 masks
O IA 11.11.2.2/32 [110/129] via 11.11.114.1, 00:06:27, Serial0/1
O 11.11.1.1/32 [110/65] via 11.11.114.1, 00:06:27, Serial0/1
D 11.11.3.0/24 [90/2297856] via 11.11.100.3, 00:12:43, Serial0/0
C 11.11.4.0/24 is directly connected, Loopback0
O E2 11.11.55.0/24 [110/65] via 11.11.114.1, 00:06:27, Serial0/1
O E2 11.11.6.0/24 [110/65] via 11.11.114.1, 00:06:27, Serial0/1
O IA 11.11.12.0/24 [110/128] via 11.11.114.1, 00:06:27, Serial0/1
C 11.11.14.0/24 is directly connected, Serial0/1
O IA 11.11.44.0/24 [110/129] via 11.11.114.1, 00:06:27, Serial0/1
O E2 11.11.22.0/24 [110/65] via 11.11.114.1, 00:06:27, Serial0/1
D EX 11.11.30.0/24 [170/2195456] via 11.11.150.3, 00:06:26, Serial0/0
C 11.11.40.0/24 is directly connected, FastEthernet0/0.14
O E2 11.11.65.0/24 [110/65] via 11.11.114.1, 00:06:27, Serial0/1
C 11.11.150.0/24 is directly connected, Serial0/0

=====================================================================

AFTER THE FILTER

R8#sh ip route ospf

     11.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
O IA 11.11.2.2/32 [110/129] via 11.11.114.1, 00:26:30, Serial0/1
O 11.11.1.1/32 [110/65] via 11.11.114.1, 00:26:30, Serial0/1
O E2 11.11.6.0/24 [110/65] via 11.11.114.1, 00:26:31, Serial0/1
O IA 11.11.12.0/24 [110/128] via 11.11.114.1, 00:26:31, Serial0/1

R8#sh ip route eigrp
     11.0.0.0/8 is variably subnetted, 14 subnets, 2 masks
D 11.11.3.0/24 [90/2297856] via 11.11.150.3, 00:13:14, Serial0/0
D EX 11.11.35.0/24 [170/2195456] via 11.11.150.3, 00:06:58, Serial0/0

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Mon Sep 01 2008 - 08:15:31 ART