Home >Operation and Maintenance >CentOS >What should I do if my centos system cannot access the Internet?

What should I do if my centos system cannot access the Internet?

王林
王林Original
2020-03-19 18:04:524493browse

What should I do if my centos system cannot access the Internet?

1. Execute the following command

ls /etc/sysconfig/network-scripts

What should I do if my centos system cannot access the Internet?

(Recommended tutorial: centos usage tutorial)

2. Continue to execute the following command

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

Then press the i key to enter the text insertion editing mode. Then press the i key to enter text insertion editing mode.

Focus on setting BOOTPROTO=dhcp and ONBOOT=yes.

After modifying, press the Esc key first, then enter a colon (:), then enter wq, save and exit.

3. Restart the network card

service network restart

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What should I do if my centos system cannot access the Internet?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn