Oh ja, danke. Roaming war schon mal das richtige Stichwort
Ich hab jetzt folgendes getan:
1. /etc/wpa_supplicant/wpa_supplicant.conf erstellt...mit folgendem Inhalt:
Code: Alles auswählen
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
# 0: Der Treiber des Interfaces kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# Dieser Modus sollte benutzt werden, wenn man eine Verschlüsselung auf ein Kabelnetzwerk legt.
# 1: wpa_supplicant kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# 2: Fast wie 0, es wird aber mit Hilfe von Sicherheitsrichtlinien und der SSID zu APs verbunden (BSSID wird nicht unters$
#
# Normalerweise funktioniert entweder Modus 1 oder Modus 2.
ap_scan=1
network=
{
ssid="WLAN1"
id_str="Wohnheim"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="MEINKEY"
}
network=
{
ssid="WLAN2"
id_str="ZuHause"
scan_ssid=1
key_mgmt=NONE
wep_tx_keyidx=0
wep_key0="MEINKEY"
}
2. /etc/network/interfaces abgeändert:
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
# Schnittstelle prüfen
pre-up ifconfig wlan0 up
pre-up ifconfig wlan0 down
# Mehrfachkonfiguration aktivieren
iface wlan0 inet manual
# Roaming aktivieren
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
# erstes bekanntes WLAN Name: Wohnheim mit DHCP
iface Wohnheim inet dhcp
# zweites bekanntes WLAN Name:ZuHause mit DHCP
iface uni inet dhcp
#Schnittstelle automatisch aktivieren
auto wlan0
3. Den Netzwerk-Dienst neu gestartet:
Und dann hab ich folgenden Fehler erhalten:
Code: Alles auswählen
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
done.
Mein ZuHause Netzwerk scheint aber nach diesem Fehler trotzdem aufgebaut zu sein...nur das andere wohl nicht.
Außerdem kann ich unter /var/run/ keine Datei namens wpa_supplicant finden...auf diese wird aber in der Config (Punkt1) verwiesen.
Was läuft da falsch?