Ip Tracking question

From: Naufal Jamal <naufalccie_at_yahoo.in>
Date: Wed, 1 Dec 2010 23:55:02 +0530 (IST)

I am trying to configure ip route tracking on a router.

R1 and R2 are connected point to point. I am configuring a track on R1 for
reachablity for R2's loopback0 ip. I have given a static route in R1 for
reaching loopback0 of R2. I want this static route to be disappeared from my
R1 routing table when this loopback is unreachable. This is not happeneing.

R1

track 1 ip route 2.2.2.2 255.255.255.255 reachability
delay down 2 up 2
   
interface FastEthernet0/0
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto

ip route 2.2.2.2 255.255.255.255 1.1.1.2 track 1

ip route 2.2.2.2 255.255.255.255 1.1.1.2 (The track comes up only after
entering this statement,Is it neccessary to add this route as well.)

R2

interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.252
duplex auto
speed auto

interface loopback0
ip address 2.2.2.2 255.255.255.255

when I shut down loopback0 on R2 the track doesnt go down in R1

R1(config)#do ping 2.2.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
U.U.U
Success rate is 0 percent (0/5)

R1(config)#do sh track
Track 1
  IP route 2.2.2.2 255.255.255.255 reachability
  Reachability is Up (static)
    8 changes, last change 00:02:27
  Delay up 2 secs, down 2 secs
  First-hop interface is FastEthernet0/0
  Tracked by:
    STATIC-IP-ROUTING 0

Why it is showing up when 2.2.2.2 is no more reachable

Blogs and organic groups at http://www.ccie.net
Received on Wed Dec 01 2010 - 23:55:02 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART