Skip to content
Menu
vAndu
  • Home
  • Home Lab
  • AI/ML & vGPU
  • Snapshot
  • The Lab Floor
vAndu

Quick Guide on How to Use iperf3 to Measure Throughput Between Two ESXi 8.0 Update 3 Hosts or VMs

Posted on January 5, 2025January 5, 2025

Preparation:

  • Note: iperf3 is already included in ESXi; no need to download it from the iperf website.
  • Enable ESXi Shell and SSH on both hosts.

Steps for Each Host:

  1. Disable the ESXi Firewall (only during the test period) using the command:
    esxcli network firewall set --enabled false

  2. Enable iperf3 Execution by disabling application domain security policies:
    localcli system secpolicy domain set -n appDom -l disabled

  3. Navigate to the iperf3 location where the executable is stored.
    cd /usr/lib/vmware/vsan/bin

Testing:

  • On Host 1 (acting as the server), run:
    ./iperf3 -s

  • On Host 2 (acting as the client), connect to Host 1 by specifying its IP address (replace 10.1.0.21 with the actual server IP):
    ./iperf3 -c 10.1.0.21 -P 2 -w 10M -l 1M

    Here, -P 2 sets up 2 parallel connections. Adjust the number of connections by changing the value of -P (e.g., -P 6, -P 8, -P 20). -w 10M sets the TCP window size to 10 MB, and -l 1M sets the buffer length to 1 MB per I/O operation.

Final Steps:

  • After testing, re-enable the ESXi firewall on both hosts:
    esxcli network firewall set --enabled true

  • Re-enable security policies if necessary.

This guide will help you test network bandwidth between two ESXi hosts effectively using iperf3. Remember to restore the original security settings after completing your tests to maintain the security of your hosts.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Like this:

Like Loading...

Home Labber who likes to build things and push it to the limits. vSphere is like Lego for adults.

“The fastest way to learn IT is 80% labbing and 20% studying theory. Just do it and have fun.” – vAndu

“If you wish to achieve worthwhile things in your personal and career life, you must become a worthwhile person in your own self-development” – Brian Tracy

VMware vExpert 2023
VMware vExpert NSX
VMware vExpert Pro
©2026 vAndu | Powered by SuperbThemes!
%d