bpi-cm5-netcat-iperf3-bandwidth-test-6.ino

Banana Pi BPI-CM5: Amlogic A311D2 Compute Module with Raspberry Pi CM4 Compatibility · File : bpi-cm5-netcat-iperf3-bandwidth-test-6.ino · Language : bash · Use case : Mesurer le débit réel du port Ethernet Gigabit de la BPI-CM5 sous Linux.

Bash script using iperf3 to test the bandwidth of the integrated Gigabit Ethernet port.

Install 'iperf3' via apt. Run the server on another local machine with 'iperf3 -s'. Execute the script on the BPI-CM5 after configuring interface eth0. Ensure the network cable is properly connected to the RJ45 port on the carrier board.

bpi-cm5-netcat-iperf3-bandwidth-test-6.ino

#!/bin/bash
# Test Ethernet Gigabit bandwidth on Banana Pi BPI-CM5 (Amlogic A311D2)
# Prerequisite: sudo apt update && sudo apt install iperf3

SERVER_IP=${1:-192.168.1.100} # Change to your server IP
TIME=10 # Duration in seconds

if command -v iperf3 &> /dev/null
then
    echo "Testing Gigabit Ethernet with iperf3..."
    echo "Target Server: $SERVER_IP"
    iperf3 -c $SERVER_IP -t $TIME -P 4 -w 256k
else
    echo "Error: iperf3 is not installed. Run 'sudo apt install iperf3'"
fi

← Back to the board