I have a network where I have the host A
, the host B
(both Linux) and the gateway C
. I am trying to reach the host Z
.
The traffic, by default does:
A -> C -> Z
For some internal needs, I need the traffic to do:
A -> B -> C -> Z
In order to do so, I just add a route. So in A
I execute something like:
route add A gw B
if I ping, I can see how the traffic does:
A -> B -> C -> Z
Which is good. However, as the time progresses, you can see how it comes back to (checked with mtr
)
A -> C -> Z
and the routing table stills existing (route -n
)
Any ideas to solve this issue ?