OSPF Conditional Default

From: Nick Griffin (nick.jon.griffin@gmail.com)
Date: Thu Dec 07 2006 - 14:07:39 ART


It's been a bit since I played with this, refreshing things. Trying to
conditionally advertise a default in OSPF based on existing prefix in
routing table. Router 4 is receiving 192.168.12.0 from upstream, I've tried
matching on prefix list and acl, I get inconsistent results. I can get it to
advertise it, but it doesn't appear to get removed. I must be overlooking
something:

R4#sh run | begin router
router ospf 1
 log-adjacency-changes
 network 192.168.0.4 0.0.0.0 area 0
 network 192.168.45.4 0.0.0.0 area 45
 default-information originate route-map OSPF-CONDITION

ip access-list standard MATCH
 permit 192.168.12.0 0.0.0.255

route-map OSPF-CONDITION permit 10
 match ip address MATCH
 set metric 5
 set metric-type type-2

R4 doesn't have the 192.168.12.0/24 network
R4#sh ip route ospf
O 192.168.57.0/24 [110/11] via 192.168.45.5, 00:02:35, Ethernet0
O 192.168.56.0/24 [110/11] via 192.168.45.5, 00:02:35, Ethernet0
     192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
O 192.168.0.3/32 [110/64] via 192.168.0.3, 00:01:49, Serial0

Network not in table, still receiving default from R4

R5#sh ip route ospf
     192.168.0.0/24 is variably subnetted, 2 subnets, 2 masks
O IA 192.168.0.0/24 [110/65] via 192.168.45.4, 00:02:06,
FastEthernet0/0.45
O IA 192.168.0.3/32 [110/65] via 192.168.45.4, 00:02:06,
FastEthernet0/0.45
O*E2 0.0.0.0/0 [110/5] via 192.168.45.4, 00:02:06, FastEthernet0/0.45

Thoughts appreciated



This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:37 ART