ip sla 1
icmp-echo 192.168.0.26 source-interface e0/2
threshold 200
timeout 200
frequency 2 ! will send icmp-echo every 2 sec
exit
ip sla schedule 1 life forever start-time now
ip sla 2
icmp-echo 192.168.0.30 source-interface e0/3
threshold 200
timeout 200
frequency 2
exit
ip sla schedule 2 life forever start-time now
track 1 ip sla 1 reachability ! Create tracking objects for the IP SLA results to be used in the route map.
track 2 ip sla 2 reachability ! Create tracking objects for the IP SLA results to be used in the route map.
route-map ECMP-PBR permit 5
match ip address 10 ! Standard ACL (VLAN 100,101).
set ip next-hop verify-availability 192.168.0.26 1 track 1 ! Will add this next-hop as primary.
set ip next-hop verify-availability 192.168.0.30 2 track 2 ! Will add this next-hop as Backup.
route-map ECMP-PBR permit 6
match ip address 20 ! Standard ACL (VLAN 102,103)
set ip next-hop verify-availability 192.168.0.26 2 track 1 ! Will add this next-hop as primary.
set ip next-hop verify-availability 192.168.0.30 1 track 2 ! Will add this next-hop as Backup.
- Apply Route Map on Cisco Core Switch LAN Interfaces:
int range po3,po4,e4/2
ip policy route-map ECMP-PBR