I have a Ubuntu device connected to two different networks:
enp3s0
(10.131.140.0/22
), wired and connected to a local network (no access to internet)wlp4s0
(172.29.0.0/16
), wireless and connected to internet.
I would like every packets with destination 10.131.140.0/22
go through the enp3s0
interface, whereas all other packets go with wlp4s0
interface.
How can I do that?
In my route table I have two default routes:
default via 10.131.143.254 dev enp3s0 proto static metric 100
default via 172.29.0.1 dev wlp4s0 proto static metric 600
Thanks