sudo nano /boot/config.txt
#USB gadget modedtoverlay=dwc2rootwaitsudo nano /boot/cmdline.txt
modules-load=dwc2,g_etherOther params are possible for IP-Address ore more
g_ether.host_addr=00:01:02:03:04:05 g_ether.dev_addr=00:01:02:03:04:06ssh rapberrypi.localsudo nano /etc/network/interfaces *************************************auto loiface lo inet loopbackallow-hotplug usb0iface usb0 inet staticaddress 192.168.0.XXX # whatever IP address you want the pi zero to occupy however it must not clash with the IP’s currently on the network or the ones which the DHCP assigns.netmask 255.255.255.0network 192.168.0.0 # the base IP of your networkbroadcast 192.168.0.255 # whatever your broadcast #address isgateway 192.168.0.1 # gateway IP for your networknameserver 8.8.8.8 # google nameserverdns-nameserver 8.8.8.8 8.8.8.4 # google dns servers***************************************