Netzwerk Wireless (Raspbian)

Aus Tutorials
Zur Navigation springen Zur Suche springen

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

Links

http://linux.die.net/man/5/wpa_supplicant.conf

http://www.freebsd.org/cgi/man.cgi?wpa_supplicant.conf%285%29


Zurück zu Raspbian