1. 程式人生 > >CentOS7輸入ifconfig返回command not found

CentOS7輸入ifconfig返回command not found

ifconfig不能用:試下ip addr

網絡卡沒啟動:

1、進入網絡卡目錄   cd /etc/sysconfig/network-scripts

2、編輯ifcfg-ens33檔案  vi ifcfg-ens33

3、將ONBOOT屬性改為yes 按a或i計入編輯模式,編輯完後按鍵盤Esc鍵,再敲入 :wq

4、重啟網絡卡 service network restart

5、進入網絡卡目錄檢視ONBOOT屬性是否改過來了 cat ifcfg-ens33

6、敲入ip addr檢視網絡卡資訊,看是否顯示了