I currently have a setup where my rpi 3b (raspbian jessie), is connected to two routers, using eth0 and wlan0. I want to using eth0 only to communicate with another device in tha LAN. And i want to use wlan0 for WAN traffic via the router.
- RPI eth0 -> router A -> Device in LAN. (RPI assigned IP in range 10.x.x.x)
- RPI wlan0 -> router B -> any WAN traffic. (RPI assigned static IP 192.168.1.13)
is it enough to use the route command, something like this below?
sudo route del default sudo route add default gw 192.168.1.1 (let's say this is the IP address of the router i want to use for internet)
however i was advised to avoid using the route command, since it is overwritten by most network configuration commands.