cm3588-25gbe-throughput.sh
Bash script to measure real bandwidth on RTL8125B 2.5 GbE controller.
Hardware: CM3588 connected via Ethernet to a 2.5G+ switch or PC. Install iperf3 (sudo apt install iperf3). Start server on CM3588: ./test.sh server. From client: ./test.sh client <CM3588_IP>. Ensure link is at 2.5 Gbps.
cm3588-25gbe-throughput.sh
#!/bin/bash
# Server mode (on CM3588)
if [ "$1" == "server" ]; then
echo "Starting iperf3 server on CM3588..."
sudo iperf3 -s
# Client mode (from another machine)
elif [ "$1" == "client" ]; then
SERVER_IP=$2
if [ -z "$SERVER_IP" ]; then
echo "Usage: $0 client <server_ip>"
exit 1
fi
echo "Testing 2.5GbE throughput to $SERVER_IP..."
iperf3 -c $SERVER_IP -t 10 -P 4
else
echo "Usage: $0 [server|client <ip>]"
fi