天天看點

centos添加網卡 找不到ip addr指令對應的網卡

問題

centos添加網卡 找不到ip addr指令對應的網卡

ip addr 和網卡配置檔案不比對

解決

使用nmtui指令進入圖形界面

centos添加網卡 找不到ip addr指令對應的網卡

選擇編輯連接配接,按回車進入

centos添加網卡 找不到ip addr指令對應的網卡

選擇消失的配置檔案,選擇添加,按回車确認

centos添加網卡 找不到ip addr指令對應的網卡

選擇以太網,回車确認

centos添加網卡 找不到ip addr指令對應的網卡

進入界面後,填寫配置集名稱和裝置,接着選擇右下角确定

centos添加網卡 找不到ip addr指令對應的網卡

接下來檢視配置檔案,可以檢視到了

centos添加網卡 找不到ip addr指令對應的網卡

使用指令nmcli con show檢視

centos添加網卡 找不到ip addr指令對應的網卡

接着使用nmcli con up ens37

centos添加網卡 找不到ip addr指令對應的網卡

繼續閱讀