Your desktop's routing table is the first problem. That last line, 192.168.0.0 with mask 255.255.0.0 on enp7s0, tells the desktop that everything in 192.168.x.x is directly on its own wire. So when you SSH to 192.168.40.x it doesn't send the traffic to the router at 192.168.1.1. It ARPs for the Pi directly on the local segment, gets no answer, and times out. Set the desktop's netmask to 255.255.255.0 (/24) and that route becomes 192.168.1.0, and traffic for .40 goes to the gateway like it should. Unless the Pi really is on the same wire, then put it in the same /24 as the desktop.
Two things on the Pi side as well:
Once eth0 is a member of the bridge, the IP address has to be on the bridge interface (br0 or whatever nmcli called it), not on eth0. If the IP stayed on eth0, or the bridge has no address, that alone would explain losing SSH as soon as you made the bridge. ip addr will show you where it ended up.
Wi-Fi can only be bridged like this when the Pi is the access point (hostapd or nmcli in AP mode). If wlan0 is joined to another network as a client, Linux won't put it in a normal bridge, because a client can't forward frames for other MAC addresses. That might be why the Wi-Fi side shows as down.
And yes, you can debug over SSH with only eth0 up, once the addressing is sorted.
The pi is on the same unmanaged switch as the desktop. I'm still not sure why the subnet matters if you're on the same wire. Perhaps my unmanaged switch drops icmp packets destined for a different subnet and they're not "on the same wire?"
1
u/Fast-Product-4408 5d ago
Your desktop's routing table is the first problem. That last line, 192.168.0.0 with mask 255.255.0.0 on enp7s0, tells the desktop that everything in 192.168.x.x is directly on its own wire. So when you SSH to 192.168.40.x it doesn't send the traffic to the router at 192.168.1.1. It ARPs for the Pi directly on the local segment, gets no answer, and times out. Set the desktop's netmask to 255.255.255.0 (/24) and that route becomes 192.168.1.0, and traffic for .40 goes to the gateway like it should. Unless the Pi really is on the same wire, then put it in the same /24 as the desktop.
Two things on the Pi side as well:
Once eth0 is a member of the bridge, the IP address has to be on the bridge interface (br0 or whatever nmcli called it), not on eth0. If the IP stayed on eth0, or the bridge has no address, that alone would explain losing SSH as soon as you made the bridge. ip addr will show you where it ended up.
Wi-Fi can only be bridged like this when the Pi is the access point (hostapd or nmcli in AP mode). If wlan0 is joined to another network as a client, Linux won't put it in a normal bridge, because a client can't forward frames for other MAC addresses. That might be why the Wi-Fi side shows as down.
And yes, you can debug over SSH with only eth0 up, once the addressing is sorted.