Netplan gateway4弃用报错
NetPlan gateway4弃用报错
问题
gateway4 has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
问题原因
此错误代表gateway4已经被弃用,需要更换为to: default和via来替代
解决方法
-
替代前
gateway4: 192.168.1.1
-
替代后
route: - to: default via: 192.168.1.1
Leave a comment