WLAN-Verbindung auf dem Raspberry Pi 3 Model B einrichten http://www.gtkdb.de/index_36_2798.html https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md https://www.elektronik-kompendium.de/sites/raspberry-pi/1912221.htm ---------------------------- *** some commands: ifconfig wlan0 iwlist wlan0 scan wpa_cli -i wlan0 reconfigure wpa_passphrase "testing" >> /etc/wpa_supplicant/wpa_supplicant.conf wpa_supplicant wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=DE network={ ssid="testing" key_mgmt=NONE } *** Adding multiple wireless network configurations: network={ ssid="SchoolNetworkSSID" psk="passwordSchool" id_str="school" } network={ ssid="HomeNetworkSSID" psk="passwordHome" id_str="home" } or two networks in range: network={ ssid="HomeOneSSID" psk="passwordOne" priority=1 id_str="homeOne" } network={ ssid="HomeTwoSSID" psk="passwordTwo" priority=2 id_str="homeTwo" } *** WLAN-Verbindung prüfen: ip l wpa_cli status *** Netzwerk-Konfiguration prüfen ip a *** Ist gewünschtes WLAN in Reichweite? iwlist wlan0 scan | grep -i ssid iwlist wlan0 scan | grep 'Frequency:2.4' | uniq -c *** WLAN-Reconnect am Raspberry Pi einrichten mv /etc/ifplugd/action.d/ifupdown /etc/ifplugd/action.d/ifupdown.alt cp /etc/wpa_supplicant/ifupdown.sh /etc/ifplugd/action.d/ifupdown reboot Hinweis Wenn der Reconnect auf diese Weise aktiviert wurde, dann geht anschließend der Ethernet-Port nicht mehr automatisch in Betrieb, wenn man den WLAN-Adapter entfernt und das LAN-Kabel wieder steckt. Wenn man den Raspberry Pi wieder per Ethernet am Netzwerk anschließen will, dann muss man den Reconnect rückgängig machen. Dazu wechselt man in folgendes Verzeichnis, löscht eine Datei und kopiert das Original zurück: cd /etc/ifplugd/action.d/ sudo rm ifupdown sudo cp ifupdown.alt ifupdown Die Änderung wird erst nach einem Neustart aktiv.