For centos7 to set static ip, please refer to the following tutorial
Original link: http://blog.csdn.net/johnnycode/article/details/40624403
CentOS static IP network configuration methodhttp ://www.linuxidc.com/Linux/2014-05/101727.htm