Policy Based Routing with the Multiple Tracking Options Feature Configuration Example - Cisco
Method 1
route-map alpha permit 10
!--- Define a route-map to set the next hop depending on !--- the state of the tracked routers.
set ip next-hop verify-availability 192.168.0.10 10 track 123
set ip next-hop verify-availability 192.168.1.20 20 track 124
set ip next-hop verify-availability 192.168.1.30 30 track 125
Method 2
ip route 0.0.0.0 0.0.0.0 192.168.0.10 1 track 1
ip route 0.0.0.0 0.0.0.0 192.168.0.20 2 track 2
ip route 0.0.0.0 0.0.0.0 192.168.0.30 3 track 3
Route 1 192.168.0.10
Route 2 192.168.0.20
Route 3 192.168.0.30
I applied at uplink of Layer 3 switch router,
what are difference between method 1 and method 2? which is better ?