文檔目標:幫助新手在剛剛安裝好的CentOS 7上設置靜態IP地址。centos
目標人羣:本篇教程比較簡單,針對的是初學者,專業人士請跳過,不喜勿噴。謝謝!測試
- 在vmware中安裝好centos7(安裝過程省略),登陸root
-
剛安裝好的系統,默認是沒有啓用網卡的,而且默認是DHCP
協議,經過命令:
cat /etc/sysconfig/network-scripts/ifcfg-en33centos7
![](http://static.javashuo.com/static/loading.gif)
-
作任何修改以前,都要先備份一下(筆者有慘痛的教訓,請你們慎重)
![](http://static.javashuo.com/static/loading.gif)
-
能夠經過vi編輯配置文件來啓用,並設置靜態IP
地址
![](http://static.javashuo.com/static/loading.gif)
-
重啓網卡,使靜態IP
生效
![](http://static.javashuo.com/static/loading.gif)
-
使用另外一臺機器測試聯通性
![](http://static.javashuo.com/static/loading.gif)
(全文完) spa