ip route get: which source address will be used
On a multi-homed server, this is faster than guessing from route tables.
ip route get 8.8.8.8
ip route get 1.1.1.1 from 192.0.2.10
Verify the result
Check dev, src, and via in the output.
On a multi-homed server, this is faster than guessing from route tables.
ip route get 8.8.8.8
ip route get 1.1.1.1 from 192.0.2.10
Check dev, src, and via in the output.