iperf server and client on same computer
Hi, I'm trying to do some network testing using iperf, and I'd like to be able to run both the iperf client and server on the same computer. My problem is that I can't get the computer to rout the packets to an external device on the network, rather than take a shortcut and internally rout the packets to the other network card. Iperf's man page says its bind option can take an interface as an argument, but when I try:
/usr/bin/iperf -l 1392 -s -u -P 2 -B eth0
I get the error:
error: No address associated with hostname
If this is not the right way to specify an interface, what is?