title: iperf between 2 interfaces on same host
body: <p>I am looking for a way how I can run iperf benchmark between 2 interfaces on the same host as shown on the schema:</p>
  
  <p><a href="https://i.stack.imgur.com/IVtKb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IVtKb.png" alt="Setup Schema"></a>
  <br><br>
  Both of the machines (pc and router) are linux.<br>
  I'm need a way to run some functional tests on my "router" machine using my only 1 PC with 2 ethernet ports.</p>
  
  <p><br>
  I tried already few different ways to solve it but still no luck:
  <br>
  1) Adding static routes for destination hosts with metric
  <br>
  2) Binding iperf to specific ip address
  <br>
  3) Disabling local loopback interface
  <br>
  <br>
  Basicly what I'm looking for is to run traffic 192.168.1.10&lt;-->1.1.1.10 thru the router device (with ip forwarding enabled).</p>