How to specify network interface for different protocols?
At work, I have 2 interfaces active: WiFi and Ethernet.
Eth connects to company network for shared volumes over SMB. But then no Internet.
WiFi connects to Internet, but not to company network.
I cannot mount shared volumes if "Set Service Order" has WiFi in first position; and I cannot access my FTP if it's set to Ethernet.
Is there some way I can specify which protocol will use which interface?
Or at least direct certain IPs/servers to Eth?
Thanks to this article, I did it with
sudo networksetup -setadditionalroutes Ethernet 10.25.254.66 255.255.255.0 10.25.19.254 10.25.252.223 255.255.255.0 10.25.19.254