Skip to contentSkip to conversation

How to make "external loopback" with 2 interfaces

LARTC David Müller 2 participants 2 messages Jun 5, 2002

lore
Share & tools
lore
#0 lore raw

Hello

For testing purposes, i would like to make a connection between 2 network interfaces on the same machine.

For example, i have eth0 (10.0.0.100) and eth1 (10.0.0.101) and would like to have the traffic going on the "wire", not just taking the "shortcut" inside the protocol stack.

I have played around a little bit with the routing table, but did not succeed.

Does Linux and/or the associated network tools support such strange requirements and if yes how to i setup the routing table?

TIA

Dave

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

You would have to hack the IP layer for that AFAIK.

I need the same thing for a device driver I am writing and the only way to do this seem to be bypassing the IP layer optimization which basically says "If the destination IP is one of my interfaces, pick up pkt from xmit queue and put it in recv queue"

ciao,
Amit

Quoted 23 lines · David Müller

Hello

For testing purposes, i would like to make a connection between 2 network interfaces on the same machine.

For example, i have eth0 (10.0.0.100) and eth1 (10.0.0.101) and would like to have the traffic going on the "wire", not just taking the "shortcut" inside the protocol stack.

I have played around a little bit with the routing table, but did not succeed.

Does Linux and/or the associated network tools support such strange requirements and if yes how to i setup the routing table?

TIA

Dave

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 12 lines
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/