doc:appunti:hardware:raspberry_networking
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:raspberry_networking [2022/02/09 11:30] – [/etc/dhcpcd.conf] niccolo | doc:appunti:hardware:raspberry_networking [2026/05/05 10:30] (current) – [Novità con RaspiOS basato su Debian 13 Trixie] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Networking con Raspberry Pi 3 e 4 ====== | ====== Networking con Raspberry Pi 3 e 4 ====== | ||
| + | |||
| + | ===== Novità con RaspiOS basato su Debian 13 Trixie ===== | ||
| + | |||
| + | Le installazioni di RaspiOS basato su Debian 13 Trixie hanno introdotto la novità del pacchetto **cloud-init**, | ||
| + | |||
| + | * Users | ||
| + | * Network settings | ||
| + | * SSH keys | ||
| + | * Storage configurations | ||
| + | |||
| + | In precedenza le impostazioni iniziali erano gestite dallo script **firstrun.sh**. Questa novità prevede anche l' | ||
| + | |||
| + | * **meta-data** | ||
| + | * **network-config** | ||
| + | * **user-data** | ||
| + | |||
| + | Vedere in proposito l' | ||
| + | |||
| + | ===== RaspiOS basato su Debian 9 Stretch fino a Debian 12 Bookworm ===== | ||
| La versione **3** e **4** del **Raspberry Pi** dispone di una interfaccia **Ethernet** e di una **Wifi**. La gestione della rete in Raspbian 9 e 10 (basate su Debian Strech e Buster rispettivamente) utilizza il pacchetto **dhcpcd5**, | La versione **3** e **4** del **Raspberry Pi** dispone di una interfaccia **Ethernet** e di una **Wifi**. La gestione della rete in Raspbian 9 e 10 (basate su Debian Strech e Buster rispettivamente) utilizza il pacchetto **dhcpcd5**, | ||
| Line 22: | Line 41: | ||
| < | < | ||
| interface eth0 | interface eth0 | ||
| - | static ip_address=10.0.0.72 | + | static ip_address=10.0.0.72/24 |
| static routers=10.0.0.189 | static routers=10.0.0.189 | ||
| static domain_name_servers=8.8.4.4 10.0.0.189 | static domain_name_servers=8.8.4.4 10.0.0.189 | ||
| Line 31: | Line 50: | ||
| < | < | ||
| profile static_eth0 | profile static_eth0 | ||
| - | static ip_address=10.0.0.72 | + | static ip_address=10.0.0.72/24 |
| static routers=10.0.0.189 | static routers=10.0.0.189 | ||
| static domain_name_servers=8.8.4.4 10.0.0.189 | static domain_name_servers=8.8.4.4 10.0.0.189 | ||
| Line 38: | Line 57: | ||
| fallback static_eth0 | fallback static_eth0 | ||
| </ | </ | ||
| + | |||
| + | Per configurare **wlan0** tramite **DHCP** è necessario configurare il file **/ | ||
| + | |||
| + | < | ||
| + | country=IT | ||
| + | ctrl_interface=DIR=/ | ||
| + | update_config=1 | ||
| + | network={ | ||
| + | ssid=" | ||
| + | psk=" | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Per configurare **wlan0** con **IP statico**, oltre alla configurazione del file ''/ | ||
| + | |||
| + | < | ||
| + | interface wlan0 | ||
| + | static ip_address=10.0.0.73/ | ||
| + | static routers=10.0.0.189 | ||
| + | static domain_name_servers=8.8.4.4 | ||
| + | </ | ||
| + | |||
| + | ==== Configurare il WiFi con raspi-config ==== | ||
| + | |||
| + | Se si desidera una configurazione guidata dell' | ||
| + | |||
| + | * Localization Options => Wlan Country | ||
| + | * System Options => Wireless LAN | ||
| + | |||
| + | Entrambe le impostazioni verrano scritte in **/ | ||
| ===== Network Manager ===== | ===== Network Manager ===== | ||
| Line 44: | Line 93: | ||
| FIXME: Qual' | FIXME: Qual' | ||
| + | |||
| + | ===== Configurazione legacy con / | ||
| + | |||
| + | Se si desidera continuare ad utilizzare il file **/ | ||
| + | |||
| + | < | ||
| + | systemctl disable dhcpcd.service | ||
| + | systemctl disable wpa_supplicant.service | ||
| + | </ | ||
| + | |||
| ===== Altre pagine (più o meno aggiornate) ===== | ===== Altre pagine (più o meno aggiornate) ===== | ||
doc/appunti/hardware/raspberry_networking.1644402612.txt.gz · Last modified: by niccolo
