16.04之後的版本配置靜態IP是相似這樣的文件 /etc/netplan/50-cloud-init.yamlapp
查詢網卡名稱it
修改配置文件/etc/netplan/50-cloud-init.yaml爲以下配置
執行以下命令讓配置生效,靜態IP就配置好了 netplan applyim