I have a raspberry pi zero board and I want to share my ethernet through USB OTG. I use the following command to create a shared ethernet:
nmcli connection add type ethernet ifname usb0 ipv4.method shared con-name local
I also use the following command to enable the autoconnect
on boot time
nmcli con mod local connection.autoconnect yes
but when I reboot the board the local
connection is not connected and I have to run the following command to enable local
connection
nmcli connection up local