All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darryl Miles <lartc-list@the-morg.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] simpler version, How to bypass the local routing table?
Date: Fri, 12 Dec 2003 16:24:29 +0000	[thread overview]
Message-ID: <marc-lartc-107124635401035@msgid-missing> (raw)
In-Reply-To: <marc-lartc-107124395129803@msgid-missing>


 From your previous example my understanding of the hub, was that it was 
on a tapX interface in software on the same box, not another physical 
host on the ethernet segment.

I see, your immediate problem is the packets won't leave the host and 
don't appear appear on the wire, the only (proper) way around this is 
not to use the real IP of the other ethernet interface as the dest 
address during the ping.  Instead create a fake IP to use.

Then perform address translation at the hub, which is neither of the 1.1 
or 1.2 addresses itself, but say 1.3, that translates all packets going 
to the fake addresses in each direction, don't forget you have to 
translate both the src and dest addresses to each others fake address, 
replace fake with real and real with fake.  The fake addresses would 
also best be in another 2 subnet of their own, call them 192.168.3.1/24 
and 192.168.4.2/24.

I'd also recommend you don't overlap the subnets of eth0 and eth1 on the 
same box, make eth1 192.168.2.2/24 or something.

Mangling the IP on OUTPUT won't work, AFAIK, since it never gets into 
that routing path out of the kernel as its in the local table.

But your original request is improper from a network standpoint, each 
host has one IP stack, trying to split it in the middle is asking for 
trouble.


Antony Lesuisse wrote:

>imagine the folowing simpler configuration
>
>Hub  | Linux
> +----- eth0 192.168.1.1/24
> |   |
> +----- eth1 192.168.1.2/24
>     |
>
>  
>


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-12-12 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12 15:18 [LARTC] simpler version, How to bypass the local routing table? Antony Lesuisse
2003-12-12 16:24 ` Darryl Miles [this message]
2003-12-12 16:41 ` Julian Anastasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-107124635401035@msgid-missing \
    --to=lartc-list@the-morg.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.