1, configure IP, gateway, edit/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP5S0
Type=EthernetBootproto =none //default is DHCPDefroute=Yespeerdns=yespeerroutes=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_peerdns=yesipv6_peerroutes=Yesipv6_failure_fatal=NoNAME=Eno16777736uuid=b33237b8-41c4-4c89-9100-484fb20b1b67device=eno16777736onboot =yes //default is no, no when restart network, Nic does not startipaddr=192.168.100.2//Add your own configuration netmask=255.255.255.0//Add your own configuration gateway=192.168.100.1//Add your own configuration
2, configure DNS information, general DNS configuration in the /etc/resolv.conf file
Respect for the work of others reproduced please be sure to indicate the source: http://www.cnblogs.com/5201351/p/4646933.html
Initial configuration of the Centos 7.x system after installation