🛠 Gigabit Ethernet natif et administration à distance en SSH

Raspberry Pi 4 Model B (2019) — Board Sheet · intermediaire · Schéma : IMG-model-4b-intermediaire-3-model4b-ethernet-ssh.svg — Pi 4B connecté en RJ45 au routeur (Ethernet gigabit natif via RGMII), session SSH depuis un ordinateur portable

Objectives

Leverage the major new feature of the Pi 4B: native Gigabit Ethernet in the SoC (dedicated RGMII link to a Broadcom PHY), much faster than the 300 Mbit/s limit imposed by USB on the 3B+. Configure the network, measure the actual throughput, and administer the board via SSH without a screen.

Hardware

Complete code

# Cote Pi : activer SSH (sudo raspi-config -> Interface Options -> SSH) puis :
ip -br addr                       # noter l'IP de eth0
sudo apt install ethtool iperf3
sudo ethtool eth0                 # Speed: 1000Mb/s attendu
# Benchmark (serveur iperf3 -s sur un PC du meme reseau) :
iperf3 -c 192.168.1.10            # viser ~940 Mbit/s

# Cote PC : connexion et cles
ssh pi@192.168.1.50
ssh-copy-id pi@192.168.1.50       # authentification par cle
scp rapport.txt pi@192.168.1.50:~/

Expected verification

ethtool indicates Speed: 1000Mb/s; iperf3 approaches 940 Mbit/s upstream and downstream, the signature of native GbE (the 3B+ caps out at ~300). After ssh-copy-id, the SSH connection succeeds without a password.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials