netdev
[Top] [All Lists]

Re: External Loopback with crossed route entries

To: "Andrew Morton" <andrewm@xxxxxxxxxx>
Subject: Re: External Loopback with crossed route entries
From: "Rick Richardson" <rick@xxxxxxxxxxxxxxx>
Date: Tue, 13 Feb 2001 17:57:13 -0600
Cc: netdev@xxxxxxxxxxx
In-reply-to: <3A89C2F5.853775B8@uow.edu.au>; from andrewm@uow.edu.au on Tue, Feb 13, 2001 at 11:27:49PM +0000
References: <20010213131528.A1746@bravidacorp.com> <3A89C2F5.853775B8@uow.edu.au>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, Feb 13, 2001 at 11:27:49PM +0000, Andrew Morton wrote:
> Rick Richardson wrote:
> > 
> > I saw the thread/argument on a 2.0.36 patch so that you could do
> > external ethernet loopback with a crossover cable using crossed route
> > entries.  The thread was dated 03/29/1999.  Apparently, the patch was
> > rejected by Alan Cox.
> > 
> > Well, it turns out I'm just beating my head against this same wall.
> > But using kernel 2.4.0.  Can't seem to get crossed routing with an
> > external loopback to work.  I need this for a big simulation project I
> > am working on.
> > 
> > Any idea if 2.4.0 supports crossed routing between two ethernet ports
> > out of the box?  If not, is there a patch yet for 2.4.0?
> 
> I bet you can do it with policy routing.  Send us a little
> ASCII network diagram.

+----------------------+
|                      |
|  +------------------+|
|  | eth0 192.168.1.1 |----------+
|  +------------------+|         |
|                      |         | crossover cable
|  +------------------+|         |
|  | eth1 192.168.2.1 |----------+
|  +------------------+|
|                      |
|  PC with two I/F's   |
+----------------------+

A "ping 192.168.2.1" should go out the top port (eth0), over the
crossover cable, and back in to the lower port (eth1).

I tried these crossed route entries that I could not get to work...

        # route add -host 192.168.2.1 eth0
        # route add -host 192.168.1.1 eth1

-Rick


-- 
Rick Richardson  rick@xxxxxxxxxxxxxxx  http://home.mn.rr.com/richardsons/

Genetic manipulation will lead to swimmers born with flipper feet.  Hows
the IOC gonna stop that?

<Prev in Thread] Current Thread [Next in Thread>