Hallo Freunde,
ich habe einen Raspberry PI 2 B und Raspbian Jessie drauf laufen. Ich würde gerne eine Internetverbindung per WLAN aufbauen und eine direkte Verbindung per LAN zwischen dem Raspberry PI und meinem Linux Receiver aufbauen. Wie muss ich die /etc/networks/interfaces Datei parametrieren, dass sich das WLAN automatisch verbindet, sobald das WLAN verfügbar ist und ich auch per LAN eine Verbindung zwischen Raspberry und Linux Receiver bekomme?
Die /etc/networks/interfaces Datei sieht bei mir derzeit folgendermaßen aus:
Please note that this file is written to be used with dhcpcd.
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'.
auto lo
iface lo inet loopback
#auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.2.15
netmask 255.255.255.0
gateway 192.168.2.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 10.0.0.15
netmask 255.255.255.0
gateway 10.0.0.138
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Alles anzeigen
Irgendwie verbindet bei dieser Konstellation der Raspberry Pi nicht automatisch mit dem WLAN, sobald dieses aus und wieder ein ist und eine Verbindung mit dem Linux Receiver besteht. Könnt ihr mir helfen wie man diese Konfiguration richtig einrichtet?
Vielen Dank im Voraus.