doc:appunti:hardware:raspberry_networking
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:appunti:hardware:raspberry_networking [2019/10/30 11:52] – created niccolo | doc:appunti:hardware:raspberry_networking [2023/06/11 09:41] (current) – [/etc/dhcpcd.conf] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Raspberry Pi Networkign | + | ====== |
- | Il Raspberry Pi 3 dispone di una interfaccia Ethernet e di una Wifi. La gestione 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 |
+ | * **[[https:// | ||
* **[[https:// | * **[[https:// | ||
* **[[https:// | * **[[https:// | ||
- | Altre pagine più o meno aggiornate: | + | In generale: |
+ | |||
+ | * Non usare **/ | ||
+ | * Utilizzare il file **/ | ||
+ | * Il programma **wpa_supplicant** viene avviato da **dhcpcd**, pertanto il servizio **systemd** chiamato **wpa_supplicant.service** deve essere disabilitato, | ||
+ | * Il programma **Network Manager** non è necessario, anzi va in conflitto con la configurazione predefinita. | ||
+ | * Se si desidera una interfaccia grafica, utilizzare il plugin **lxplug-network**. | ||
+ | |||
+ | |||
+ | ===== / | ||
+ | |||
+ | Snippet per configurare **eth0 con IP statico**: | ||
+ | |||
+ | < | ||
+ | interface eth0 | ||
+ | static ip_address=10.0.0.72/ | ||
+ | static routers=10.0.0.189 | ||
+ | static domain_name_servers=8.8.4.4 10.0.0.189 | ||
+ | </ | ||
+ | |||
+ | Per configurare **eth0 con DHCP e fallback con profilo statico**. La configurazione statica viene applicata solo quando la Ethernet sente la portante (carrier attivo, cavetto inserito) e dopo un timeout di circa 30 secondi. | ||
+ | |||
+ | < | ||
+ | profile static_eth0 | ||
+ | static ip_address=10.0.0.72/ | ||
+ | static routers=10.0.0.189 | ||
+ | static domain_name_servers=8.8.4.4 10.0.0.189 | ||
+ | |||
+ | interface 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 ===== | ||
+ | |||
+ | Se viene installato il pacchetto **network-manager** vengono ignorate le impostazioni di **/ | ||
+ | |||
+ | FIXME: Qual' | ||
+ | |||
+ | ===== Configurazione legacy con / | ||
+ | |||
+ | Se si desidera continuare ad utilizzare il file **/ | ||
+ | |||
+ | < | ||
+ | systemctl disable dhcpcd.service | ||
+ | systemctl disable wpa_supplicant.service | ||
+ | </ | ||
+ | |||
+ | ===== Altre pagine | ||
* **[[raspberry_eth_wifi]]** | * **[[raspberry_eth_wifi]]** | ||
* **[[raspberrypi_wpa_supplicant_problem]]** | * **[[raspberrypi_wpa_supplicant_problem]]** | ||
* **[[raspberrypi_wifi_country_not_set]]** | * **[[raspberrypi_wifi_country_not_set]]** | ||
+ | * **[[..: | ||
+ |
doc/appunti/hardware/raspberry_networking.txt · Last modified: 2023/06/11 09:41 by niccolo