cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1514
Views
1
Helpful
7
Replies

Tracking in a route-map

rasmus.elmholt
Level 7
Level 7

Hi

I have configured a route-map with the match track 1, but I cannot get it to work with RIP default routes.

This is my IP SLA:

 

ip sla 1
icmp-echo 155.1.7.7
frequency 5
ip sla schedule 1 life forever start-time now

R1#show ip sla summary
IPSLAs Latest Operation Summary
Codes: * active, ^ inactive, ~ pending

ID           Type        Destination       Stats       Return      Last
                                           (ms)        Code        Run
-----------------------------------------------------------------------
*1           icmp-echo   155.1.7.7         RTT=11      OK          4 seconds ago

I have then made a track of the IP SLA:

#track 1 ip sla 1

R1#show track
Track 1
  IP SLA 1 state
  State is Up
    1 change, last change 00:13:16
  Latest operation return code: OK
  Latest RTT (millisecs) 8
  Tracked by:
    Route Map 0

And everything is UP and seems to be working.

But my route-map and RIP default route is not working:

router rip
 version 2
 network 150.1.0.0
 network 155.1.0.0
 default-information originate route-map DG
 no auto-summary
route-map DG permit 10
 match track  1

Everything seems to be working, but when I do a debug ip rip. The default route is not sent to the neighbors.

 

7 Replies 7

rishrapsody1
Level 1
Level 1
Is there a default route existing on your source router?

Hi

 

No, there is no default route in the routing table of the source router.

Gateway of last resort is not set

      150.1.0.0/32 is subnetted, 10 subnets
C        150.1.1.1 is directly connected, Loopback0
R        150.1.2.2 [120/2] via 155.1.0.2, 00:00:10, Tunnel0
R        150.1.3.3 [120/1] via 155.1.13.3, 00:00:16, GigabitEthernet1.13
R        150.1.4.4 [120/2] via 155.1.0.4, 00:00:10, Tunnel0
R        150.1.5.5 [120/1] via 155.1.0.5, 00:00:10, Tunnel0
R        150.1.6.6 [120/1] via 155.1.146.6, 00:00:08, GigabitEthernet1.146
R        150.1.7.7 [120/2] via 155.1.146.6, 00:00:08, GigabitEthernet1.146

But if i just do the normal default-information originate the default route is sent to all the neighbors.

On a neighboring router:

Gateway of last resort is 155.1.0.1 to network 0.0.0.0

R*    0.0.0.0/0 [120/1] via 155.1.0.1, 00:00:24, Tunnel0

Hello

If i remember using conditional route advertising using route map with track is some what buggy, have you tried an alternative and match on a access-list relating to the route you want to monitor.

 

example:

access-list 10 permit 150.1.7.7

route-map DG
match ip address 10

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Paul
If I do a match on an accesslist or prefix list everything works.
I made the solution to generate a dummy route that got put in the routing table when my track was UP and then sent the default RIP route whenever that dummy route was in the RIB, using a prefix list.
So I have solved the problem.

I was just wondering if this is a bug or if it simply isn't allowed to use a track in a route-map used for default route generation.

As far as I understand the default-information originate route-map <map> command it should inject a default route if the route-map return true in one of it's conditions.

Congratulations on a creative solution to achieve your requirement. It seems more like a bug to me than an intentional policy. Perhaps someone from Cisco might provide a more authoritative answer?

 

HTH

 

Rick

HTH

Rick

Sorry to bump an old post, but would you please share the work around configuration you had done. Thanks a lot

Hi @Learner09 

This is an real old post, I really can't remember how I solved it.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card