Eric Hidle on 28 Jan 2009 09:06:19 -0800


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

Re: [PLUG] Silly routing question


Thanks for the advice. I'm also wondering if the iptables ROUTE target patch would work, but patch-o-matic seems to be awol at the moment. I'll do some more digging and see what I can come up with.
E


On Wed, Jan 28, 2009 at 10:54 AM, Paul L. Snyder <plsnyder@drexel.edu> wrote:
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

___________________________________________________________________________
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