00.centos6.8 configure a static IP

One: Run "vi / etc / sysconfig / network-scripts / ifcfg-eth0" command to open the configuration file

i enter edit

esc to enter: wq to save and exit

    q! forced to exit without saving

 Restart Network

service network restart

 

ifconfig

 

Guess you like

Origin www.cnblogs.com/star521/p/11222547.html