ip route for WiFi

To route traffic for a specific IP range through a particular interface, use the ip route command.

Example — assuming wlp2s0 is your WiFi interface:

sudo ip route add 155.100.200.0/24 via 192.168.1.1 dev wlp2s0

This sends all traffic destined for 155.100.200.0/24 through the WiFi interface, using 192.168.1.1 as the gateway.

I have not yet found a clean solution to route traffic for a target domain (rather than IP range) through a specific interface. Happy to hear about any approaches.