使用“netplan”时如何解决“gateway4已被弃用”错误?

使用“netplan”时如何解决“gateway4已被弃用”错误?

我尝试在 Ubuntu jammy 中使用 netplan 生成静态 IP 地址。当我输入时

sudo netplan apply

这就是结果

** (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.

相关内容