I considered asking under Unix but since this stems from using a Pi0 in ethernet gadget mode...
I'm having difficulty with static IP assignments. The downstream computer is a Raspberry Pi Zero running in ethernet gadget mode. It's connected to a Raspberry Pi Model 3 (via powered usb hub). They both have static IP addresses assigned (
10.20.0.x), but when I reboot the Pi0, the Model 3 reverts to an autoconfiguration address (
169.154.x.x). I have to cycle the interface (
ifdown usb0; ifup usb0) or physically replug the Pi0 to get back the proper static IP on the Model 3.
Can I prevent the Model 3 from reverting to silly autoconf addresses?
This is from
/etc/network/interfaces on the Pi zero:
allow-hotplug usb0 iface usb0 inet static address 10.20.0.2 netmask 255.255.255.0 network 10.20.0.0 broadcast 10.20.0.255 gateway 10.20.0.1 dns-nameservers 10.20.0.1
And this is from
/etc/network/interfaces on the Model 3:
allow-hotplug usb0 iface usb0 inet static address 10.20.0.1 netmask 255.255.255.0 network 10.20.0.0 broadcast 10.20.0.255