To save the file in Vi, first enter the Esc key and enter the phrase :wq and press Enter.Ħ- After applying the above steps, restart your network service. vi ifcfg-eno16777728Ĥ- Press the i button and copy the following phrase into it.Įnter your settings in the IPADDR and. For example, our interface file is in ifcfg-eno16777728.ģ- Open the interface settings file with the Vi editor. Ifcfg will be added at the beginning of the interface name. cd /etc/sysconfig/network-scriptsĢ- Enter the ls command to find the name of your interface file. Recommended Article: Set static IP on CentOS 7 Setting static IP on CentOS 7 by terminal environment commandsġ- First, go to /etc/sysconfig/network-scripts path.
0 Comments
Leave a Reply. |