国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Ubuntu 報錯 WARNING:gateway4 has been deprecated, use default routes instead... 解決方案

這篇具有很好參考價值的文章主要介紹了Ubuntu 報錯 WARNING:gateway4 has been deprecated, use default routes instead... 解決方案。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

/etc/netplan/50-cloud-init.yaml 下配置靜態(tài)網(wǎng)絡:

network:
  ethernets:
    eth0:
      dhcp4: false
      addresses: [192.168.1.11/24]
      optional: true
      gateway4: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1]
  version: 2

配置完成后應用網(wǎng)絡配置的時候出現(xiàn)以下報錯:

root@k8s-master-01:~# netplan apply

** (generate:234574): WARNING **: 14:21:04.809: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.

** (process:234572): WARNING **: 14:21:06.172: `gateway4` has been deprecated, use default routes instead.
See the 'Default routes' section of the documentation for more details.
root@k8s-master-01:~# 

報錯的意思是說,gateway4 已被棄用,請改用默認路由。默認路由就是通過 routes 配置 IP

修改網(wǎng)絡配置如下:

network:
  ethernets:
    eth0:
      dhcp4: false
      addresses: [192.168.1.11/24]
      optional: true
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1]
  version: 2

應用網(wǎng)絡配置:文章來源地址http://www.zghlxwxcb.cn/news/detail-676786.html

netplan apply

到了這里,關于Ubuntu 報錯 WARNING:gateway4 has been deprecated, use default routes instead... 解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領支付寶紅包贊助服務器費用

相關文章

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領取紅包,優(yōu)惠每天領

二維碼1

領取紅包

二維碼2

領紅包