00.centos6.8配置静态IP

一:运行”vi /etc/sysconfig/network-scripts/ifcfg-eth0“命令打开配置文件

i  进入编辑

/etc/hosts

 

esc键  输入 :wq保存退出

    q!不保存强制退出

 重启网络

service network restart

ifconfig

原文地址:https://www.cnblogs.com/star521/p/11222547.html