I followed this guide to set up networking over systemd:
Use systemd-networkd for general networking
After rebooting I can't connect to my Raspi again using USB cable (with RNDIS). Also, I somehow screwed up my wifi credentials so the raspi doesn't connect to my router again... and to top it of, for some reason it doesn't help when I put a fresh wpa_supplicant.conf into the boot partition of the sd card.
I used Advanced IP scanner to test if the raspi is present within the network, but apparently it isn't. So it is fully secluded. Is there a way to connect to it again without reinstalling the operating system?
EDIT: Turns out I was on the wrong path all along. I put my wpa_supplicant credentials without quotation marks "". This would lead to the Raspi not connecting to the router as it should. For some reason Bonjour decided to resolve raspberry.local to route over the WLAN IP instead of the RNDIS direct connection. So naturally, when that option was not available anymore it just didn't work anymore.
This doesn't solve the issue though. I would still want to be able to connect over RNDIS, even more so because the LAN connection could break anytime. But how can I tell Bonjour then that raspberrypi.local should be looked up over the RNDIS ethernet interface? I would like to skip mDNS and directly assign the IP addresses of each interface (host and device), but I don't know how this is possible.
e*
and wifi connection -wl*
... but the interface name will be usb0 which doesn't match those - at least, I think that's happening :p – Jaromanda X Jan 14 '21 at 23:16