I started using netplan on my Ubuntu hosts with NetworkManager as a renderer and I noticed that it fails to retrieve an IPv4 address from my router using DHCP. I NetworkManager. I can set the option to require an IPv4 address. How do I do this with netplan? I checked the examples on netplan.io and documentation on GitHub.
Update: Here is my
network: renderer: NetworkManager version: 2 ethernets: eno2: dhcp4: true dhcp6: true ipv6-privacy: false accept-ra: false dhcp-identifier: mac
Edit: Looking at existing NetworkManager connections in
/etc/NetworkManager/system-connections/ the option I'm looking for is
ipv4.may-fail: false or
ipv4-may-fail: false to my netplan yaml results in an error:
$ sudo netplan apply /etc/netplan/01-netcfg.yaml:9:7: Error in network definition: unknown key 'ipv4-may-fail' ipv4-may-fail: false ^