Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if you can't connect to the Internet after Centos7 installation?

Shulou Source: shulou.com Published: 2022-06-01 19:32:21 10月28日 Update

This article mainly shows you "what to do if you can't connect to the Internet after Centos7 installation". The content is simple and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "what to do if you can't connect to the Internet after Centos7 installation".

After installing centos7 in the VMware virtual machine today, it is found that centos is unnetworked by default, and the networking modification settings are as follows:

Enter the directory:

Cd / etc/sysconfig/network-scripts/

Find the name of the network card configuration file, which can be viewed through the ifconfig command. As shown in the figure below, the network card name of my virtual machine is ens33

Use the ls command to view the Nic configuration file name:

Edit the last line of the ifcfg-ens33 file and change ONBOOT=no to ONBOOT=yes, as shown below:

Finally, enter: wq to save and exit, and then restart network:

Service network restart

Done, at this time the virtual machine also has ip on the Internet.

These are all the contents of the article "what to do if you can't connect to the Internet after Centos7 installation". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: File network card how to do content article configuration command file name study help one line can be passed name easy to understand more function organization directory knowledge tape Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Docker MariaDB macOS