Find the answer to your Linux question:
Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    1

    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?

    Thanks,
    Aaron

  2. #2
    Just Joined!
    Join Date
    Dec 2010
    Posts
    1
    This error is iperf's way of reporting that it was unsuccessful in resolving a hostname to an IP address.

    For example this will preduce that error:
    iperf -c -u iperf

    While the correct way is this (-u and -c is swapped):
    iperf -u -c iperf

    I hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •