Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    [SOLVED] Setting up a simple route...

    Hi all,

    I have three hosts in the same subnet :

    host A (
    host B (
    host C (

    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 gw ath0
    at A.

    Here is my problem :
    When I try to 'traceroute' 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' 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?


  2. #2
    That's ok, I juste figured it out, I also need to echo a 1 in A's /proc/sys/net/ipv4/ip_forward.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts