I've got 2 interfaces on my server (eno1 & eno2). Whenever any process try to reach an IP (lets say 183.182.99.1), I want the traffic to use the eno2 link.
Here is my current routing table:
default via 192.168.1.1 dev eno2 metric 90
default via 172.22.1.1 dev eno1 metric 100
183.182.99.1 via 192.168.1.1 dev eno2 metric 80
The problem here is whenever eno2 is down, then kernel try to reach this IP using eno1.
Instead, I want it to fail as if it were offline.
Is there any way to accomplish this?