When I try to use Netplan on my Ubuntu server, I get this error, Gateway 4 (or Gateway 6) has been deprecated, use the default routes instead. So I decided to show you how to fix this error. As it is obvious, you should use the routes instead of the gateway. Let’s see how it works.
Netplan is a utility developed by Canonical, the company behind Ubuntu. With Netplan, you can configure the network of your Ubuntu servers.