Connecting multiple Raspberry Pi Zeros on a local wired network

Sorry for the late response, but I wanted to post in case others came across this. It’s a good question.

First off, VintageNet is the way to go for all network now in my opinion. If nothing else, the maintainers of NervesNetwork have mostly moved on to VintageNet themselves and it’s easier for us to support.

Nerves has two official systems for the Raspberry Pi Zero. nerves_system_rpi0 is the one most people use. It sets up the RPi0’s one USB port into gadget mode so that you can connect it to a development machine and ssh in. nerves_system_rpi (no 0) also works on the Raspberry Pi Zero. It configures the USB port to host mode. That makes it possible to use a microUSB-to-Ethernet adapter with one caveat. The Linux device driver for your microUSB-to-Ethernet adapter will need to be added. The usual way of doing this is to figure out what driver gets used by plugging the adapter into a desktop Linux system and then creating a custom Nerves system with that driver loaded.

After doing all that, the USB-to-Ethernet adapter should show up as eth0. The VintageNet cookbook directions for setting up a wired Ethernet connection should work. If I’m wrong and the adapter shows up as something else, you can find it by running ifconfig at the IEx prompt. You can get to the IEx prompt over the RPi0’s UART pins.