I tried to generate a static IP address using netplan in Ubuntu jammy. When I type in
sudo netplan apply
this was the result
** (generate:41329): WARNING **: 16:53:17.169: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
** (process:41327): WARNING **: 16:53:17.379: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.