Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2

    [SOLVED] Setting up a simple route...


    Hi all,

    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
    Code:
    route add -host 10.3.0.6 gw 10.3.0.4 ath0
    at A.

    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?

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    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
  •