Iperf is a simple tool for testing networks. There are many options to check network bandwidthI will outline how to check bandwidth on an interface.To install on debian systems:
sudo apt update
sudo apt install iperf
You install on client server and start the listener on port 5001 by default or define your own port to use, it will need to be allowed through firewalls.
iperf -s
iperf -s -p 12345
You can bind the listener to the interface you want to test by defining the IP on server:ย
In the below example I will bind to the 10.0.0.2 interface.
ย
iperf -s -B 10.0.0.2
On the client side you make the connection to test, again defining the interface/IP and the test will run; below is a test between proxmox nodes on migration/2.5G network.