1. cd /etc/sysconfig/network-scripts/ Enter the directory of configuration files related to the network to be modified
Second, ls to see what file directory
3. vi ifcfg-ens33 to modify the file (some versions may have different file names, usually the first one)
Change ONBOOT=no to yes, save and exit.
4. Restart the network service service network restart, and then ping the network to pass