Usb gadget mode slave networking (moved from wrong category)

I’m running raspberry pi zero w as a host and i would like to connect rpi zero (not w) as a slave using g_ether usb gadget -mode. I could not make this work with network manager. Should i make conf to host or container? Is this possible? slave works fine with osx and other linux computer so it should be fine.