Skip to main content

Ethernet Interface

Ethernet Interface Testing

The ROCK 4A/4B/4A+/4B+/4SE has 1 Ethernet ports. Below we will conduct a simple test of the ROCK 4A/4B/4A+/4B+/4SE's Ethernet interface.

  • Hardware Connection
ethernet connection
  • Check Connection Status

After the system boots up, open the terminal and run the following command to check if the Ethernet connection is working properly. If connected correctly, the ROCK 4A/4B/4A+/4B+/4SE will automatically obtain an IP address.

ip a
ip show

As shown in the image, the Ethernet has automatically obtained an IP address, indicating that the Ethernet connection is working properly.

  • Test Connectivity
ping -c 4 google.com

If you get a response, the connection is working properly.

If there's no response, please check your network configuration.

  • Test Speed

    • First, install iperf3 on both your host machine and the ROCK 4A/4B/4A+/4B+/4SE

    sudo apt-get install iperf3

    • On the host machine, run as server:
    iperf3 -s
    -----------------------------------------------------------
    Server listening on 5201 (test #1)
    -----------------------------------------------------------
    • On the ROCK 4A/4B/4A+/4B+/4SE, run as client to test upload speed:
    iperf3 -c <server-ip> -t 20 -i 1 -w 2M
    • Test results:
    [ ID] Interval           Transfer     Bandwidth       Retr
    [ 4] 0.00-20.00 sec 2.67 GBytes 1.15 Gbits/sec 198 sender
    [ 4] 0.00-20.00 sec 2.67 GBytes 1.15 Gbits/sec receiver
    • Parameter explanation:
    ParameterDescription
    -cClient mode, followed by server IP
    -tTest duration in seconds
    -iOutput interval in seconds
    -wWindow size
    -PNumber of parallel threads
    -RReverse test (server sends, client receives)
    -dBidirectional test
    -uUse UDP protocol
    -bTarget bandwidth
    -pServer port
    -VShow version information
    -hShow help information
    • For more parameter details:
    iperf3 -h
    • To test download speed, run the following command on the ROCK 4A/4B/4A+/4B+/4SE:
    iperf3 -c <server-ip> -R -t 20 -i 1 -w 2M

Radxa 23W PoE HAT

Please refer to PoE HAT Usage.