I am trying to determine how I can configure a route-map policy to failover from one next-hop ip to a different next-hop ip if the first one goes down. I have a specific application that accesses remote servers over the backup ISP connection. I tell it to go via the backup ISP using a route-map policy. See config below.
int fa 0/0
ip address 172.21.21.1 255.255.255.0
ip policy route-map ISP2-Redirect
int se 0/0
ip address 10.10.1.1 255.255.255.0
int se 0/1
ip address 10.20.2.1 255.255.255.0
ip access-list extended ISP2-Redirect-Match
permit ip 172.21.21.0 0.0.0.255 10.0.0.186 0.255.255.0
route-map ISP2-Redirect permit 10
match ip address ISP2-Redirect-Match
set ip next-hop 10.20.2.2
However, if the connection to 10.20.2.2 fails, how can I configure the route-map policy to send the traffic over ISP1?