Change the file in the red box below to yes. The number behind my computer is 33. Each computer may not be the same

vim /etc/sysconfig/network-scripts/ifcfg-ens33

 

Then restart the NIC. Run the following command to restart the NIC

systemctl restart network