/etc/udev/rules.d/10-pi-zero.rules

# Usb pi zero
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="32:aa:bb:cc:dd:ee", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="usbpi"

/etc/network/interfaces

# pi zero en USB
# cf udev rule pour le nommage
auto usbpi
allow-hotplug usbpi
iface usbpi inet static
    address 192.168.2.1
    netmask 255.255.255.0
    mtu 1500
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward
    post-up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    post-up iptables -I FORWARD -o eth0 -s 192.168.0.0/16 -j ACCEPT
    post-up iptables -I INPUT -s 192.168.0.0/16 -j ACCEPT