I am trying to configure OSPF so that in case of network split OSPF does not advertise a connected route anymore.
I am trying to make this work like this.
In case IP address 172.20.240.5 does not ping, OSPF withdraws a route for 172.20.240.0/29
The configuration is as follows.
ip vrf AJ-IP
import map AJ-IP-IN
export map AJ-IP-OUT
route-target export 65000:215
route-target import 65000:215
route-target import 65000:666
ip sla monitor 1
type echo protocol ipIcmpEcho 172.20.240.5 source-interface FastEthernet0/1.2
ip sla monitor schedule 1 start-time now recurring
track 1 rtr 1 reachability
encapsulation dot1Q 2
ip vrf forwarding AJ-IP
ip address 172.20.240.2 255.255.255.240
no ip redirects
no ip unreachables
no ip proxy-arp
standby 1 ip 172.20.240.1
standby 1 priority 110
standby 1 preempt
router ospf 1 vrf AJ-IP
redistribute static subnets route-map AJ-IP
network 172.20.0.0 0.0.0.255 area 0
ip route vrf AJ-IP 172.20.240.0 255.255.255.240 Null0 tag 98 track 1
route-map AJ-IP permit 10
match tag 98
This does not work. I think it is because
connected route is still sitting in the routing table due to lower A/D and therefore static cannot
Is there a way around this.