You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actual Behavior
iperf3: error - unable to send control message: Bad file descriptor
Steps to Reproduce
Run iperf3 client from a linux machine that has multiple network interfaces with internet connectivity and try to bind to them.
From my testing, it seems that iperf3 runs fine if bound to the interface that has the very first default route, but it doesn't for other interfaces. This is surprising since other tools such as ping, or curl work fine for both interfaces, as shown above.
Possible Solution
The text was updated successfully, but these errors were encountered:
This might be a problem that's already been solved. If you can update to iperf-3.10 or newer (3.15 is current), there's a --bind-dev option that might be needed for your use case. Something like --bind 192.168.225.28 --bind-dev usb0. That should work for your bare-metal installation. I'm not sure what would happen in the container deployment, iperf3 was never intended to work inside containers.
Context
Both client and server are using the following docker image: https://hub.docker.com/r/networkstatic/iperf3
iperf 3.9 (cJSON 1.7.13)
Linux 893c486a2ac3 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
Optional features available: CPU affinity setting, IPv6 flow label, SCTP, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing, authentication
Client has two interfaces connected - an eth0 cabled connection and usb0 (LTE modem)
Server is a standard AWS EC2 instance with one network connection
As per the docker image above.
Also tried to install iperf3 on the underlying OS (same results):
libraries, cross-compiling, etc.):
Internet connectivity via the usb0 interface works:
Bug Report
Expected Behavior
Speedtest results when running
iperf3 -c serveraddress.com --bind 192.168.225.28
Actual Behavior
iperf3: error - unable to send control message: Bad file descriptor
Steps to Reproduce
Run iperf3 client from a linux machine that has multiple network interfaces with internet connectivity and try to bind to them.
From my testing, it seems that iperf3 runs fine if bound to the interface that has the very first default route, but it doesn't for other interfaces. This is surprising since other tools such as ping, or curl work fine for both interfaces, as shown above.
The text was updated successfully, but these errors were encountered: