I'm trying to set up a raspberry Pi Model A (the original generation) as a USB Ethernet Gadget from DietPi (following these instructions), along with trying suggestions from several similar articles, such as those linked from it. I'm able to SSH into the pi by the ip address ( over the USB Ethernet Gadget except when I enable internet sharing to it on the Mac it's connected to.

I've tried on two separate Macs, running MacOS Catalina and Monterey, so I'm confident it's not an issue with either of them, given the hardware and software are several generations apart, and I've successfully used this network sharing in the past.

I can't find anyone else online that has this issue, of a successful connection when isolated from the internet, but getting no response from identical ssh attempts when providing network sharing.

The relevant changes to configuration files are:


root=PARTUUID=0e2887fb-02 rootfstype=ext4 rootwait modules-load=dwc2,g_ether fsck.repair=yes
 net.ifnames=0 logo.nologo quiet console=ttyAMA0,115200 console=tty1

/boot/config.txt: (only showing changes at the end)

#enable usb ethernet gadget as a peripheral on the USB A port:
#the following for the pi touchscreen:

/etc/network/interfaces: (again, relevant changes from default)

allow-hotplug usb0
iface usb0 inet static

/etc/modprobe.d/g_ether.conf: (suggested to potentially fix an issue with some macs here

options g_ether use_eem=0

In the Mac's network settings it's connected to the RNDIS/Ethernet Gadget with manually configured ip address of, subnet mask of and router of, as the tutorials recommended, And I'm attempting to share the network from Wi-Fi (or ethernet, on the desktop), to the RNDIS/Ethernet Gadget, again, matching all the tutorials I've seen.

DietPi's automated network connectivity tests (pinging fails whether network sharing is on or off, though I'm unable to further test or configure anything while it's in that state of network sharing enabled, given the aforementioned issues, and the severely limited I/O of the model A (I do have it set up with the Pi 7" touchscreen, but there's no additional USB ports to add a keyboard, eithernet/wifi dongle, etc to).

  • I don't know what OS you are using, or more precisely what networking DietPi is using but those network settings are 6 years out of date.
    – Milliways
    Commented Nov 20, 2021 at 5:40
  • @Milliways thanks for the response, could you point me towards some more up-to-date resources for the networking settings?
    – Patronics
    Commented Nov 20, 2021 at 7:49
  • Debian networking (using /etc/network/interfaces) was replaced in Raspbian in 2015. AFAIK it is not used in any recent OS, although it is still included in Debian - provided you disable any other networking software. I am unaware what DietPi uses. You probably followed some obsolete link.
    – Milliways
    Commented Nov 20, 2021 at 10:09


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.