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 and PC2 has, and I "ping -I", 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 dev eth# src 192.168.0.# table if#
--- etc cetera

Any advice?
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --