less than 1 minute read

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来替代

解决方法

  1. 替代前

     gateway4: 192.168.1.1
    
  2. 替代后

     route:
       - to: default
         via: 192.168.1.1
    

Updated:

Leave a comment