ubuntu24 netplan apply执行时提示`gateway6` has been deprecated, use default routes instead.
使用 netplan apply命令时提示:
`gateway6` has been deprecated, use default routes instead.See the 'Default routes' section of the documentation for more details.
`gateway4` has been deprecated, use default routes instead.See the 'Default routes' section of the documentation for more details.
如图
解决方法:
不使用gateway方式,使用routes即可解决
routes: - to: default via: fe80::1 - to: default via: 192.168.1.1