I'm currently testing the routing performance of a hardware device (DUT - Device Under Test) with the following setup (all addresses start with
eth0 (29.2) <---> eth1 (29.1) eth2 (30.1) <---> eth0 (30.2) HOST1 |~~~~~~~~~DUT~~~~~~~~~~| HOST2
Iperf is working just fine in this setup.
However, I want to get rid of HOST2, since another Ethernet card is available on HOST1. This is what I want to achieve:
eth0 (29.2) <---> eth1 (29.1) eth2 (30.1) <---> eth1 (30.2) HOST1 |~~~~~~~~~DUT~~~~~~~~~~| HOST1
How can I configure the Linux routing on HOST1 such that the packets from eth0 to eth1 would go through the DUT and not internally though the kernel?
I'm running Debian with a 3.0 kernel. The iproute2 version is