Paul L. Snyder on 28 Jan 2009 07:53:49 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Silly routing question


On Wed, 28 Jan 2009, Eric Hidle wrote:

> Okay, so I am trying to run some testing on an Ethernet switch-like device.
> What I would like to do is be able to ping one interface on a box from
> another interface on the same box (using the -I option for example) and have
> that ping actually go out on the wire as opposed to simply hit the local
> stack.

I haven't dug around in the internals of the Linux TCP/IP stack, but I'm
pretty sure that it checks whether an address is registered with a local
interface before it attempts to transmit.

You might try something using raw sockets that bypasses most of the protocol
logic and just shoves the bits out on the wire.  hping2 or scapy could be
worth exploring toward this end..

Paul
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug