07-28-2019 07:23 PM - edited 07-28-2019 07:25 PM
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.
07-30-2019 07:24 AM
08-02-2019 05:30 PM
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
08-03-2019 02:56 AM
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
08-03-2019 07:11 AM - edited 08-03-2019 07:28 AM
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.
08-03-2019 08:22 AM
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
12-17-2023 03:11 AM - edited 12-17-2023 03:12 AM
Sorry to bump an old post, but would you please share the work around configuration you had done. Thanks a lot
12-19-2023 03:19 AM
Hi @Learner09
This is an real old post, I really can't remember how I solved it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide