Eric Hidle on 28 Jan 2009 05:18:20 -0800


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

[PLUG] Silly routing question


Okay, so I am trying to run some testing on an Ethernet switch-like device. I have two PCs each with 4 Ethernet ports running linux.

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.

So, if PC1 has 192.168.0.1-4 and PC2 has 192.168.1.5-8, and I "ping 192.168.0.1 -I 192.168.0.2", I'd like to see that packet go out the wire and the response come back on the same path.

Is there any reasonable way to do this? I messed around with some routing tables but still couldn't get the thing to work right:

ip route add 192.168.0.0/24 dev eth# src 192.168.0.# table if#
--- etc cetera

Any advice?
Thanks
E
___________________________________________________________________________
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