CentOS 7Configure staticIPAddress
systemctl Status Network.service Stop
nmcli Dev Status View Network Connections
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/85/53/wKioL1egLwXgXebYAAGBBum-YGQ073.png "title=" 1.png " alt= "Wkiol1eglwxgxebyaagbbum-ygq073.png"/>
Go to the/etc/sysconfig/network-scripts directory and locate the configuration file (IFCFG-ENP0S3) for that interface. If not, create a.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/85/54/wKiom1egL0HQMGFgAAGNwMoWBhk845.png "title=" 2.png " alt= "Wkiom1egl0hqmgfgaagnwmowbhk845.png"/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/85/53/wKioL1egL2ayAPk1AAEAd1RmeYw652.png "title=" 3.png " alt= "Wkiol1egl2ayapk1aaead1rmeyw652.png"/> here to write a gateway .
Now verify that the interface is configured correctly:
IP add
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/85/54/wKiom1egL7OTAlRSAAIliMGevFU821.png "title=" 4.png " alt= "Wkiom1egl7otalrsaailimgevfu821.png"/>
Save the changes and use the following command to restart the network service:
Systemctl Restart Network.service
This article is from the It Dick thread blog, so be sure to keep this source http://68686789.blog.51cto.com/10438688/1833492
centos7_ Configuring static IP