I am on a network which has a default route via eth0. There is another interface eth1 which can also handle a packet sent to a destination I am interested in. I will be making calls to this destination IP via the requests module.
Is there a way to define which interface the requests call should go though, at the script level?
I know I can modify the routing in order to force the route but I would like to understand if there is not a via eth0 concept I could use within the Python script.