I am trying to setup a CentOS with 3 NIC and static routes. eth0 has IP address 192.168.10.2 and GW:192.168.10.1, eth1 has IP address 192.168.20.2 and GW:192.168.20.1, eth2 has IP address 192.168.10.3 and GW:192.168.10.1.
I want to accept traffic on eth1 from other machines (I have set eth1 of my server as gateway for those client machines) and send it over eth2 and further to router and vice-versa(reverse path).
Added route to system as
ip route add default via 192.168.10.3 dev eth1 proto static metric 1024
Now I am facing problem like traffic is receiving on eth1 but not going through eth2. It look like going through eth0.
I do not want to use NAT or IPTABLES for now, is it possible to route traffic of eth1 to eth2 and vice versa.