How to set up the CentOS 7 IP:
1. Manually set the IP method
A) Run the command, CD to directory:
cd/etc/sysconfig/network-scripts/
b) Run command: ls-l
Find something similar to this file name file: Ifcfg-enp0s3
c) Run command: VI ifcfg-enp0s3
Edit content, such as:
Type=Ethernetbootproto=Nonedefroute=Yesipv4_failure_fatal=Noipv6init=yesipv6_autoconf=Yesipv6_defroute=Yesipv6_failure_fatal=NoNAME=Enp0s3uuid=52884a0b-649e-4438-95b2-0d712d97c59bonboot=yesnm_controlled=yesIPADDR0=192.168.1.35PREFIX0= atGATEWAY0=192.168.1.1HWADDR= ,:xx: -: in: 6f:b8ipv6_peerdns=yesipv6_peerroutes=yes
2. Use the Nmtui tool to set the IP
If Nmtui is not installed, you can install it using the command: Yum install Networkmanager-tui
The use of specific tools, can be parameters here:
Http://linux.cn/article-3977-1.html
Http://www.it165.net/os/html/201409/9414.html
[Linux]-CentOS IP Setup method