01-25-2023 10:32 PM
Hi,
I want to redistribute the static routes to EIGRP with customized matric based on ipsla tacking. As the NCS configuration pattern is little different from normal ISR/ASR. Can anyone share a sample? Or validate my draft.
ipsla
operation 230 type icmp echo source address 10.10.10.1
operation 230 type icmp echo destination address 20.20.20.2
operation 230 type icmp echo timeout 5000
operation 230 type icmp echo frequency 5
!
schedule operation 230 start-time now
schedule operation 230 life forever
!
exit
!
------------------------------------------------------------------------------------
track 30 type rtr 230 reachability
!
------------------------------------------------------------------------------------
prefix-set AAA
192.168.230.0/24
end-set
!
prefix-set BBB
192.168.232.0/24
end-set
!
prefix-set Others
30.30.30.0/24,
40.40.40.0/24
end-set
!
---------------------------------------------------------------------------------------
router static address-family ipv4 unicast 192.168.230.0/24 10.10.10.2 1 description AAA
router static address-family ipv4 unicast 192.168.232.0/24 10.10.10.2 1 description BBB
router static address-family ipv4 unicast 20.20.20.2/32 10.10.10.2 1 description track!
router static address-family ipv4 unicast 30.30.30.0/32 172.16.31.2 1 description CCC
router static address-family ipv4 unicast 40.40.40.0/32 172.16.31.2 1 description CCC
!
exit
!
------------------------------------------------------------------------------------
route-policy static_into_eigrp
if (destination in AAA and track 30 is up) then
set eigrp-metric 1000000 1000 255 255 1500
endif
if (destination in AAA and track 30 is down) then
set eigrp-metric 10000 1000 255 255 1500
endif
if (destination in BBB and track 32 is up) then
set eigrp-metric 10000 1000 255 255 1500
endif
if (destination in BBB and track 32 is down) then
set eigrp-metric 1000 1000 255 255 1500
endif
if (destination in Others) then
set eigrp-metric 1000000 100 255 255 1500
endif
!
exit
!
------------------------------------------------------------------------------------
router eigrp 100
address-family ipv4
redistribute static route-policy static_into_eigrp
!
-----------------------------------------------End------------------------------------
Thanks,
Mamun.
01-25-2023 11:13 PM
The configuration you have provided looks like a good starting point for redistributing static routes into EIGRP with customized metrics based on IPSLA tracking. It appears you have created IPSLA operations and a schedule, defined a track object to track the reachability of an IP address based on the IPSLA operation, created prefix-sets for different IP ranges, and configured static routes for those ranges. Then, you have created a route-policy that checks the destination IP address against the prefix-sets and sets the EIGRP metric accordingly based on the reachability status of the tracked IP address. Lastly, you have configured EIGRP to redistribute the static routes with the specified route-policy.
However, there are a few things that need to be corrected in the configuration provided:
I hope this helps, let me know if you have any more questions.
Please rate this and mark as solution/answer, if this resolved your issue
All the best,
AK
01-25-2023 11:30 PM
Hi,
Thanks for your time, and recommendations.
But as per your 2nd correction, i do not find any rtr type as "icmp-echo". Please have a look,
---------------------------------------------------------------------------
RP/0/RP0/CPU0:RT-NCS-5504(config)#track 230 type rtr 230 ?
reachability Tracks whether the route is reachable
RP/0/RP0/CPU0:RT-NCS-5504(config)#track 230 type rtr 230
---------------------------------------------------------------
01-25-2023 11:47 PM
I apologize for the confusion, it seems that the "icmp-echo" option is not available on the NCS 5504 platform.
Instead of using "icmp-echo" you can use the "reachability" option for the route tracking to track the reachability of the route.
You can configure the route tracking using the following command:
track <track-id> type rtr <rtr-id> reachability
Example: track 230 type rtr 230 reachability
This will track the reachability of the route with RTR ID 230. If the route becomes unreachable, the corresponding routing protocol will withdraw the route.
Please let me know if you have any further questions.
Please rate this and mark as solution/answer, if this resolved your issue
All the best,
AK
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