Netplan quirk

Keith keith at caramail.com
Wed Oct 20 18:21:59 UTC 2021


On 10/20/21 12:08 PM, Zahid Rahman wrote:
> As you can see below a warning is shown
> When running netplan apply.
>
> ubuntu at ubuntu:~$ sudo netplan apply
>
> ** (generate:11395): WARNING **: 16:58:51.743: `gateway4` has b
> een deprecated, use default routes instead.
> See the 'Default routes' section of the documentation for more
> details.
>
> To remove the warning I took out the line
>
> gateway4 :  192.168.0.1
>
> Although the warning was gone  it had  disasterous  consequences , the
> pi no longer was able to connect to the internet.
>
>
> I am not sure which documents is being referred   to so I could see the
> new change to be applied in the /etc/netplan/<anyname>.yaml file.
>
>
It's the "Default routes" section of the netplan(5) manpage.

$ man 5 netplan

--
Keith




More information about the ubuntu-users mailing list