User Tools

Site Tools


doc:appunti:hardware:raspberry_networking

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:hardware:raspberry_networking [2022/02/09 11:30] – [/etc/dhcpcd.conf] niccolodoc:appunti:hardware:raspberry_networking [2022/02/09 13:01] – [/etc/dhcpcd.conf] niccolo
Line 37: Line 37:
 interface eth0 interface eth0
 fallback static_eth0 fallback static_eth0
 +</file>
 +
 +Per configurare **wlan0** tramite **DHCP** è necessario configurare il file **/etc/wpa_supplicant/wpa_supplicant.conf**, comprese le righe iniziali con le impostazioni **country**, ecc.:
 +
 +<file>
 +country=IT
 +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
 +update_config=1
 +network={
 +        ssid="MyESSID"
 +        psk="MyWPA2Secret"
 +}
 +</file>
 +
 +Per configurare **wlan0** con **IP statico*, oltre alla configurazione del file ''/etc/wpa_supplicant/wpa_supplicant.conf'' come visto sopra, è necessario aggiungere una sezione in **/etc/dhcpcd.conf**:
 +
 +<file>
 +interface wlan0
 +static ip_address=10.0.0.73/24
 +static routers=10.0.0.189
 +static domain_name_servers=8.8.4.4
 </file> </file>
  
doc/appunti/hardware/raspberry_networking.txt · Last modified: 2023/06/11 11:41 by niccolo