Erstmal danke für Deine Geduld, aber ich bekomme es leider immer noch nicht hin.
Für die Raspbian-Distri mit Pixel-Desktop hatte ich mich entschieden, weil ich den Raspi neben YAHM auch als Medien-Client (Squeezebox-Player, Kodi, evtl. auch mit Amazon-Prime-Video- und TV-Streaming via Sat>IP und vdr-Client) nutzen möchte. Im Pixel-Desktop sehe ich bei mir auch das WLAN-Fehler-Symbol mit zwei roten Kreuzen, allerdings mit dem Hinweis: "No Wireless interfaces found"
In der /etc/wpa_supplicant/wpa_supplicant.conf standen aber tatsächlich bereits meine WLAN-Zugangsdaten drin. Ich war mir jetzt nicht sicher, wie ich Deinen Block dem bestehenden Inhalt hinzufügen sollte. Ich habe ihn deshalb den in geschweiften Klammern stehenden WLAN-Zugangsdaten einmal voran- und einmal nachgestellt und immer wieder nach Reboot die Ausgaben von ifconfig und route überprüft. Die waren aber (im Wesentlichen) immer identisch mit denen von vor diesen Änderungen:
Ausgabe ifconfig
eth0 Link encap:Ethernet Hardware Adresse b8:27:eb:e7:da:09
inet Adresse:192.168.178.101 Bcast:192.168.178.255 Maske:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metrik:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metrik:1
RX packets:568 errors:0 dropped:0 overruns:0 frame:0
TX packets:568 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1
RX bytes:44440 (43.3 KiB) TX bytes:44440 (43.3 KiB)
vethQOGFLH Link encap:Ethernet Hardware Adresse fe:a7:75:c6:e9:e7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:251 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:26682 (26.0 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet Hardware Adresse b8:27:eb:b2:8f:5c
inet Adresse:192.168.178.102 Bcast:192.168.178.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:674 errors:0 dropped:274 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:74257 (72.5 KiB) TX bytes:4096 (4.0 KiB)
yahmbr0 Link encap:Ethernet Hardware Adresse fe:a7:75:c6:e9:e7
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:251 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:23168 (22.6 KiB) TX bytes:0 (0.0 B)
Ausgabe route
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
default 192.168.178.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.178.1 0.0.0.0 UG 1 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 eth0
192.168.178.0 * 255.255.255.0 U 0 0 0 wlan0
Die in Deinen Hinweisen bisher erwähnten Konfigurationsdateien sehen bei mir jetzt so aus:
/var/lib/lxc/yahm/root/usr/local/etc/config/netconfig
HOSTNAME=homematic-ccu2
MODE=DHCP
CURRENT_IP=192.168.178.151
CURRENT_NETMASK=255.255.255.0
CURRENT_GATEWAY=192.168.178.103
CURRENT_NAMESERVER1=192.168.178.103
CURRENT_NAMESERVER2=0.0.0.0
IP=192.168.178.151
NETMASK=255.255.255.0
GATEWAY=192.168.178.103
NAMESERVER1=192.168.178.103
NAMESERVER2=0.0.0.0
CRYPT=0
/etc/sysctl.conf
#[auskommentierte Hinweise und Optionen]
#Routing aktivieren:
net.ipv4.ip_forward=1
#Wer IP6 auf dem Raspi nicht will:
net.ipv6.conf.all.disable_ipv6 = 1
/etc/network/interfaces
#[auskommentierte Hinweise und Optionen]
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
#allow-hotplug wlan0
#iface wlan0 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#allow-hotplug wlan1
#iface wlan1 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#auto yahmbr0
#iface yahmbr0 inet dhcp
# bridge_ports eth0
#pre-up brctl addbr lxcbr0
#auto lxcbr0
#iface lxcbr0 inet static
# address 192.168.30.1
# netmask 255.255.255.0
# post-up /opt/bin/lxcbr0-up
##### RJ45-Port fuer Netzwerkkabelanschluss:
auto eth0
allow-hotplug eth0
iface eth0 inet static
# Fuer DHCP: (Anpassung von Weiterleitung etc ist dann notwendig)
#iface eth0 inet dhcp
address 192.168.178.101
netmask 255.255.255.0
up route add -net 192.168.178.0 netmask 255.255.255.0 metric 1
##### WLAN-Interface:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
##iface wlan0 inet manual
##iface wlan0 inet dhcp
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid="MeinWLANName"
wpa-psk="MeinWLANPasswort"
address 192.168.178.102
netmask 255.255.255.0
gateway 192.168.178.1 # Adresse des Routers hier eintragen
up route add -net default netmask 0.0.0.0 gw 192.168.178.1 metric 1
##### Bridge-Interface yahm-br:
## Routing; siehe auch lxc-config
auto yahmbr0
iface yahmbr0 inet static
bridge_ports none # hier wichtig, Einstellung entgegen yahm aus der box
address 192.168.178.103 # muss mit Einstellungen in der lxc-config korrespondieren,
netmask 255.255.255.0
up route add -net 192.168.178.0 netmask 255.255.255.0 metric 1
# Einstellungen fuer die Bruecke:
bridge_stp off
bridge_maxwait 5
bridge_fd off
pre-up /sbin/brctl addbr yahmbr0
post-up /sbin/brctl setfd yahmbr0 0
# Regeln fuers weiterleiten (natting/masqurading):
# Kette einrichten (wer hierzu mehr wissen will, muss sich in iptables einlesen.
# Ich habe damit auch einen kleinen FW für den Raspi aufgebaut.)
post-up /sbin/iptables -t nat -F POSTROUTING
# Interface Regeln
post-up /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
pre-up /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to 192.168.178.151
post-up /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
pre-up /sbin/iptables -t nat -A PREROUTING -p tcp -i wlan0 --dport 80 -j DNAT --to 192.168.178.151
# Routing aktivieren:
echo "1" > /proc/sys/net/ipv4/ip_forward
/var/lib/lxc/yahm/config.network
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = yahmbr0
lxc.network.hwaddr = 4a:49:43:49:79:47
lxc.network.ipv4 = 192.168.178.151/24
lxc.network.ipv4.gateway = 192.168.178.103
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
##### WLAN-Interface:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
address 192.168.178.102
netmask 255.255.255.0
gateway 192.168.178.1 # Adresse des Routers (<Netzwerk2>.1) hierfuer eintragen
pre-up ip addr flush dev wlan0
#up route add -net 192.168.178.0 netmask 255.255.255.0 metric 1
#up route add -net default netmask 0.0.0.0 gw 192.168.178.1 metric 1
#
##### Ende WLAN-Interface
network={
ssid="MeinWLANName"
psk="MeinWLANPasswort"
key_mgmt=WPA-PSK
pre-up ip addr flush dev wlan0
}
Fällt Dir daran noch irgendwas Verdächtiges auf? Vielleicht habe ich Deine Hinweise und Platzhalter zu Variablen nicht alle richtig interpretiert?
Danke nochmal!
Und viele Grüße