Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Procedure:
1.
Enter the network configuration file directory, first make sure that / etc / sysconf / network-scripts / ifcfg-ens33 root user login status
2.
Modify the configuration file ifcfg-ens33 that is, we need to modify the file, sometimes find can not find this file, the name may be different, there is such a situation, you can find the file ifcfg-ens33 with a similar name, and then to view its contents to see if it is with ifcfg-ens33 have the same content file, if it is, you can modify this file
Use vim command file for editing, and then edited ESC + WQ save and exit
3.
Using service network restart command to restart the network services
4.
Enter the ip addr command to see the effect of our modified