![centos7下網路ping不通](https://img.php.cn/upload/article/000/000/041/5e82df3e4799b360.jpg)
前言:
centos7已經不適用ifconfig指令了,已經用ip addr指令取代。
解決方法:
編輯ifcfg_ens33檔案啟動網卡
cd /etc/sysconfig/network-scripts/
登入後複製
![1585635273113842.png centos7下網路ping不通](https://img.php.cn/upload/image/588/354/166/1585635273113842.png)
(推薦教學:centos教學)
![1585635295332754.png centos7下網路ping不通](https://img.php.cn/upload/image/466/637/240/1585635295332754.png)
將ONBOOT=no 修改為ONBOOT=yes 儲存退出,然後執行指令
service network restart
登入後複製
重新啟動網路服務即可。
![1585635322970275.png centos7下網路ping不通](https://img.php.cn/upload/image/235/280/458/1585635322970275.png)
相關影片教學推薦:linux影片教學
以上是centos7下網路ping不通的詳細內容。更多資訊請關注PHP中文網其他相關文章!