Netzwerk Wireless (Raspbian): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
== Debian 9 (Stretch) == | == Debian 9 (Stretch) == | ||
<pre> | |||
sudo vi /etc/dhcpcd.conf | |||
</pre> | |||
== Debian 8 (Jessie) == | == Debian 8 (Jessie) == |
Version vom 4. August 2018, 08:24 Uhr
Debian 9 (Stretch)
sudo vi /etc/dhcpcd.conf
Debian 8 (Jessie)
Nur interfaces-Datei
In der Datei /etc/network/interfaces folgende Zeilen hinzufügen / anpassen:
auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address <static ip> netmask 255.255.255.0 gateway <gateway ip> dns-nameservers <nameserver ip> wpa-ap-scan 1 wpa-scan-ssid 1 wpa-ssid "<ssid>" wpa-psk "<password>"
Dateien interfaces und wpa_supplicant.conf
Datei /etc/wpa_supplicant/wpa_supplicant.conf:
country=AT ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="<ssid>" psk="<password>" }
Datei /etc/network/interfaces:
source-directory /etc/network/interfaces.d auto lo iface lo inet loopback # WLAN auto wlan0 allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
bzw. mit statischer IP-Addresse:
source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet manual allow-hotplug wlan0 iface wlan0 inet static wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf address 10.0.0.98 netmask 255.255.255.0 gateway 10.0.0.138 dns-nameservers 10.0.0.138
Energiesparmodus deaktivieren
Edimax EW-7811un
Datei 8192cu.conf anlegen:
sudo nano /etc/modprobe.d/8192cu.conf
Folgenden Inhalt einfügen:
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
Cronjob anlegen
sudo nano /etc/crontab
*/1 * * * * ping -c 1 10.0.0.138
Links
http://linux.die.net/man/5/wpa_supplicant.conf
http://www.freebsd.org/cgi/man.cgi?wpa_supplicant.conf%285%29
https://developer-blog.net/raspberry-pi-problem-mit-wlan-stick-edimax-ew-7811un/
Zurück zu Raspbian