DerTitel sagt es schon, WLAN0 geht nur wenn ETH0 per Kabel verbunden
Konfiguration
Raspi 3 B+
Aktuellstes Rasbian BUSTER tiny aktuellste patches
Zusätzlich installiert CAN und Python
headless Installation
feste IP Adressen für eth0 und wlan0 via /etc/dhcpcd.conf
....
interfcae eth0
static ip_address=172.16.1.251/24
static routers=172.16.1.253
static domain_name_servers=172.16.1.242
interface wlan0
static ip_address=172.16.1.250/24
static routers=172.16.1.253
static domain_name_servers=172.16.1.242
...
Alles anzeigen
solange das Kabel dran ist kann ich beide Adressen pingen oder per ssh conecten , sobald das Kabel ab ist keine Verbindung zu wlan0.
Nachstehend die Ausgabe von ifconfig
ifconfig
can0: flags=193<UP,RUNNING,NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 2 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.1.251 netmask 255.255.255.0 broadcast 172.16.1.255
inet6 fe80::25b0:c8b7:8d2f:4287 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:63:2c:f2 txqueuelen 1000 (Ethernet)
RX packets 5817 bytes 406450 (396.9 KiB)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 548 bytes 61356 (59.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 23 bytes 2440 (2.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 23 bytes 2440 (2.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.16.1.250 netmask 255.255.255.0 broadcast 172.16.1.255
inet6 fe80::d7cb:c3af:c041:21a1 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:36:79:a7 txqueuelen 1000 (Ethernet)
RX packets 5445 bytes 301338 (294.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 48 bytes 5340 (5.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Alles anzeigen
Google findet zig Einträge zu diesem Problem quer durch so gut wie alle raspi Versionen und Betriebssystem, aber alles ohne rechte Lösung. Da wird von Routing etc. gesprochen.
Hier ist nix mit Routing, sowohl mein Arbetsplatz als der raspi als das WLAN sind im selben Netz. Andere Geräte ob PC via Kabel oder Smartphone oder Notebook funktionieren. Auch m ein Notebook mit Debian das sowohl WLAN als ETH konfiguriert hat geht mit und ohne Kabel.
Es muss doch eine sinnige Lösung für dieses Problem geben.
Danke für Hilfe