How to make sure, on the same interface, to properly route traffic to the same subnet, based on availability of a gateway?
e.g.
10.1.1.1/24 interface eth0/1 gateway 10.1.2.1 pref 10 metric 1
10.1.1.1/24 interface eth0/1 gateway 10.1.3.1 pref 20 metric 1
this usually means while accessing, for example, 10.1.1.50
it goes via 10.1.2.1
, but the problem is, when 10.1.2.1
is down (cannot ping), it will not automatically goes to the second route (it does if using 2 interfaces and the first interface physically goes down).