Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What happened when the newly installed centOS7 was unable to access the Internet?

Shulou Source: shulou.com Published: 2022-06-02 07:56:32 10月26日 Update

This article introduces the knowledge of "how the newly installed centOS7 cannot surf the Internet". Many people will encounter such a dilemma in the operation of the actual case, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Problem phenomenon

Unable to surf the Internet

Ifconfig command does not exist

Yum command execution displays repo error

Solution.

1. Different computers that modify network card files may be different. My computer is / etc/sysconfig/network-scripts/ifcfg-ens33.

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

Modify ONBOOT=yes

2. Restart the network card service and install net-tools

Service network restartyum install net-tools-y

Can surf the Internet

The ifconfig command is ready to use

This is the end of the content of "what's wrong with the newly installed centOS7 unable to surf the Internet". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Commands things Xin'an content more computers knowledge network cards different practical successful learning next methods difficulties reality situations documents articles cases phenomena Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Huawei vpn Apple Docker