WLAN Konfiguration mit NetworkManager
Konfigurieren der WLAN Verbindung
RaspiOS benötigt die Einstelung der WiFi localisation in raspi-config vor hinzufügen der Verbindung!
Netzwerkverbindung hinzufügen:
Als erstes den Namen des WLAN-Interfaces anzeigen lassen:
nmcli
Der con-name kann frei vergeben werden, dieser wird später bei allen Konfigurationen verwendet.
Die SSID anzeigen lassen:
nmcli dev wifi
Die Verbindung hinzufügen (im Beispiel: con-name: home-wifi, SSID: myhomewifi):
nmcli con add type wifi con-name home-wifi ifname wlan0 ssid myhomewifi
Um eine versteckte Netzwerkverbindung hinzuzufügen wird hidden yes angefügt.
nmcli con add type wifi con-name home-wifi ifname wlan0 ssid myhomewifi hidden yes
Einrichten von Anmeldedaten
Für WPA PSK folgendes hinzufügen:
nmcli con modify home-wifi wifi-sec.key-mgmt wpa-psk
Hinzufügen des Passworts mit modify:
nmcli con modify home-wifi wifi-sec.psk mysecretpassword
Verbinden mit dem WLAN-Netzwerk
Verbindung einschalten:
nmcli con up home-wifi
Verbindung testen:
nmcli con show home-wifi
Der Wert connection.autoconnect-retries gibt an wieviele Verbindungsversuche durchgeführt werden. Ist der Wert -1 werden vier Versuche durchgeführt. Bei 0 werden unendliche Versuche durchgeführt.
Ändern der Anzahl Verbindungsversuche:
nmcli connection modify CONNECTION NAME connection.autoconnect-retries 0
Netzwerkverbindung entfernen
Entfernen der Verbindung mit delete:
nmcli con delete home-wifi
Disable IPv6
To disable IPv6 using nmcli, find your connection's name, modify it to ipv6.method
"disabled", and then reconnect using nmcli
connection up. This permanently disables IPv6 for that specific connection until it is manually re-enabled.
Steps to disable IPv6
List your network connections to find the name of the connection you want to modify.
$
nmcli
connection show
Modify the connection to disable IPv6. Replace Example with the name of your connection.
$
nmcli
connection modify Example ipv6.method "disabled"
Restart the connection to apply the changes.
$
nmcli
connection up Example