ip route for wifi

In case you want to route the traffic of your linux machine of a specific IP through a specific interface ip routecommand should be used.

One example below asuming wlp2s0 is your wifi.

sudo ip route add via dev wlp2s0

This will lead all the traffic with target ip range trough the interface of your wifi (assuming is the wifi router).

I did not yet found a solution to route the traffic of a target “domain” through a specific interface. Happy for any input.