Home  >  Article  >  System Tutorial  >  I cannot access the Internet after CentOS is installed. How to solve the problem?

I cannot access the Internet after CentOS is installed. How to solve the problem?

WBOY
WBOYforward
2024-01-04 18:06:291966browse

CentOS cannot access the Internet normally after installation mainly because the gateway in the directory /etc/sysconfig/network-scripts/ is in the No state. This requires changing it to yes:

1. First enter /etc/sysconfig/network-scripts/, find the file ifcfg-eno (the number after the file is random, and different computers have different numbers after installation), and use the vim/vi editor to open the file ;

I cannot access the Internet after CentOS is installed. How to solve the problem?

I cannot access the Internet after CentOS is installed. How to solve the problem?

2. After configuring wq, save and exit. At this time, the network configuration still does not take effect. You need to restart the network service service network restart

I cannot access the Internet after CentOS is installed. How to solve the problem?

Ok! Done

The above is the detailed content of I cannot access the Internet after CentOS is installed. How to solve the problem?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete