新聞中心
今天裝完 ubuntu 18 LTS,配置網(wǎng)絡(luò)時發(fā)現(xiàn)Ubuntu 18LTS ifupdown has been replaced by netplan(5) on this system。

創(chuàng)新互聯(lián)公司專注于新興網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供新興營銷型網(wǎng)站建設(shè),新興網(wǎng)站制作、新興網(wǎng)頁設(shè)計、新興網(wǎng)站官網(wǎng)定制、小程序定制開發(fā)服務(wù),打造新興網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供新興網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
隨手記錄一下netplan配置。
- vim /etc/network/interfaces 修改網(wǎng)絡(luò)配置時發(fā)現(xiàn)Ubuntu 18LTS ifupdown has been replaced by netplan(5) on this system。
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
- 直接配置netplan吧
vim /etc/netplan/50-cloud-init.yaml
配置如下:
network:
ethernets:
enp4s0:
addresses: [192.168.0.20/24] //IP址
gateway4: 192.168.0.1 // 網(wǎng)關(guān)
nameservers:
addresses: [114.114.114.114, 192.168.0.1] //DNS
dhcp4: no
optional: no
version: 2
- 啟用生效
sudo netplan apply
分享題目:Ubuntu18LTSnetplan網(wǎng)絡(luò)配置
網(wǎng)站URL:http://fisionsoft.com.cn/article/coihshs.html


咨詢
建站咨詢
