2 ms·
As you seem to know well this thing, I'll ask you: they write type "ssh pi@raspberrypi.local" and voilà !", but I know that just enabling an IP stack over a USB
by astrobe_ 3y ago
As you seem to know well this thing, I'll ask you: they write type "ssh pi@raspberrypi.local" and voilà !", but I know that just enabling an IP stack over a USB link is not enough per se* normally, the device has to have a network configuration (IP address, netmask, gateway) which usually means DHCP. Moreover, how does the ssh client computer know that "raspberrypi.local" is this device?
- megous 3y agoDomain names: https://en.wikipedia.org/wiki/Multicast_DNS https://en.wikipedia.org/wiki/Multicast_DNS Yes, you have to have either some kind of network configuration, and enable the network interface that appears after you pluging in the USB device. It's no different from using USB-ethernet adapters. The easiest is probably to rely on link local addresses and mDNS if all you need is local access from the computer you connected the device to. On a systemd based Linux distros, mDNS is enabled by default in systemd-resolved daemon. On my distro, there's no default configuration for usb network adapters, so I have to do that part by myself. Other systems may work differently and auto-enable USB interfaces and at least setup link local addresses on them. The device implementig the gadget has to do the same.