Hi Muhammed,
Not understood your concern, however, let me share how track along with static route works.
Assume that you have 2 WAN connection with next hop IP address as A.A.A.A and X.X.X.X
so, if I don't want to load-share and just to use both of them as redundant connection, I will make a track statement which will track any one of the connection.
Lets assume,
track 1 will track reachability of A.A.A.A
Hence, when A.A.A.A is not reachable track 1 will fail.
So I can have static route something as below:
ip route 0.0.0.0 0.0.0.0 A.A.A.A track 1
ip route 0.0.0.0 0.0.0.0 B.B.B.B 20
What above 2 statement will do is as far as A.A.A.A is reachable for track, that first statement will be in the routing table. As soon as i have lost reachability of A.A.A.A, it will be remove from routing table and the second statement with higher AD of 20 will get install in the routing table.
Now, when A.A.A.A is reachable for track again, then since that has lower AD ( default = 1), it will get install in routing table and second statement with higher AD will be removed from routing table.
Please rate if helpful.
HTH,
Smitesh