Banana pi M4 ubuntu18.04 static IP config

In the /etc/netplan/ directory, the default configuration file name is 50-cloud-init.yaml.

##Let NetworkManager manage all devices on this system

network: version: 2

##renderer: NetworkManager

ethernets:

      eth0:

              addresses: [192.168.0.111/24]

              gateway4: 192.168.0.1

              nameservers:

                    addresses: [192.168.0.1]

sudo netplan apply, ---------------invalid ifconfig-------------------------IP unchanged

and, how do it?