Hi All,
I was looking at injecting a conditional default route through RIP. I would like RIP to inject a default route if it sees 2 of its interfaces as UP. I am trying to make this work using (object tracking "AND" rule) and (default-information originate route-map CONDITION)
track 1 ip route 1.1.1.0 255.255.255.0 reachability
track 2 ip route 2.2.2.0 255.255.255.0 reachability
track 3 list boolean and
object 1
object 2
router rip
version 2
network 10.0.0.0
default-information originate route-map CONDITION
no auto-summary
route-map CONDITION permit 10
match ip address prefix-list CONDITION
Now my question is if I use the below commands RIP doesnot inject a default route to its neighbor
ip prefix-list CONDITION seq 5 permit 0.0.0.0/0
ip route 0.0.0.0 0.0.0.0 Null0 track 3
But if I use the below commands RIP does inject a default route to its neighbor where 5.5.5.5/32 is just a dummy/fake route
ip prefix-list CONDITION seq 5 permit 5.5.5.5/32
ip route 5.5.5.5 255.255.255.255 Null0 track 3
I am unable to understand as to why RIP does not inject a default route if I match a default route in the CONDITION prefix-list. Could anybody please advise ?
Regards,
Nilesh