🛠 Se connecter en SSH via l'Ethernet

Raspberry Pi Model B Revision 2 (2012) — Board Sheet · intermediaire · Schéma : IMG-model-b-rev2-intermediaire-3-modelb2-ethernet-ssh.svg — Model B Rev 2 relié par câble Ethernet au routeur (puce SMSC LAN9512), ordinateur portable distant affichant une session SSH

Objectives

Configure the network address of the Model B Rev 2 and control the board remotely via SSH. The board has neither WiFi nor Bluetooth: only the 10/100 Mbps Ethernet port (SMSC LAN9512 chip, behind the single USB bus) allows connecting it to the network.

Hardware

Complete code

# Voir l'adresse IP obtenue par DHCP (interface eth0, pas de wlan0 sur cette carte)
ip -4 addr show eth0
# Adresse statique classique via /etc/network/interfaces (era Raspbian legacy)
sudo nano /etc/network/interfaces
#   auto eth0
#   iface eth0 inet static
#       address 192.168.1.50
#       netmask 255.255.255.0
#       gateway 192.168.1.1
sudo /etc/init.d networking restart
# Activer le serveur SSH si absent
sudo apt install -y openssh-server
sudo service ssh start
# Depuis un autre poste:
ssh pi@192.168.1.50

Expected verification

ip -4 addr show eth0 displays an IPv4 address; the Ethernet port LED blinks; ssh pi@<ip> opens a remote session. ifconfig -a shows no wireless interface, which is normal for this model.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials