From: Con Spathas (con@spathas.net)
Date: Sat Aug 04 2007 - 10:05:17 ART
You could try using the 'match ip next-hop [acl]' statement in the route-map
and thus should be able to check that the correct next-hop is satisfied
before the default-route is injected.
I haven't tried it out though so not 100% sure.
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Prasad Shemrudkar (pshemrud)
Sent: Saturday, 4 August 2007 13:38
To: Cisco certification
Subject: OSPF default route
Hi,
I have a situation wherein there are 2 routers say R1 and BB1 connected to a
switch. The subnet is 204.12.1.0/24. R1 needs to conditionally advertise a
default route in ospf domain if it is CONNECTED to BB1. Now I have used the
following configuration on R1 but do not think its correct (for the reason
explained below the configuration).
router ospf 1
router-id 150.1.3.3
log-adjacency-changes
area 0 authentication message-digest
area 23 virtual-link 150.1.2.2
area 34 authentication
area 34 virtual-link 150.1.4.4
redistribute connected subnets route-map CONNECTED redistribute rip
subnets route-map RIP-->OSPF network 191.1.13.3 0.0.0.0 area 13 network
191.1.23.3 0.0.0.0 area 23 network 191.1.34.3 0.0.0.0 area 34
default-information originate route-map DEFAULT !
route-map DEFAULT permit 10
match ip address prefix-list BB1
!
ip prefix-list BB1 seq 10 permit 204.12.1.0/24
My point is, that since both router connect on Ethernet (via switch), even
if BB1 looses connectivity to the switch, the directly connected
route "C 204.12.1.0/24 is directly connected, Ethernet1/0" will still
be shown in R1's routing table (as that one is still connected) and hence R1
will continue advertising the default route in OSPF even though there is no
connectivity between R1 and BB1.
I dunno but got a feeling, have a wrong logic as the solution has configured
it the same way too!!
Thanks in Advance,
Prasad
This archive was generated by hypermail 2.1.4 : Sat Sep 01 2007 - 11:32:09 ART