[SOLVED] Setting up a simple route...
I have three hosts in the same subnet :
host A (10.3.0.2)
host B (10.3.0.4)
host C (10.3.0.6)
And I want to do something simple, I want each packets sent by A to C to go through B.
I Already echoed "1" in B's /proc/sys/net/ipv4/ip_forward, to allow B to perform IP forwarding.
Additionnaly, I did a
route add -host 10.3.0.6 gw 10.3.0.4 ath0
Here is my problem :
When I try to 'traceroute 10.3.0.6' from A, the first time after having launched the route command, all is ok, there's two hops (the ip packet goes through B to reach C).
But when I launch a second 'traceroute 10.3.0.6' from A, there's only one hop, A reaches C directly without going through B.
It's like if A resolved the address of C after the first traceroute and decided not to use my route anymore.
Does anyone has an idea about what could be my problem here?