Question: How do you solve "`gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details" in Ubuntu Linux netplan log messages?
Login to See the Rest of the Answer
Answer: Use
routes:
- to: default
via: TheIPAddressOfYourDefaultGateway