In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail the solutions to the inability of linux to connect to the Internet, and the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
First, check the configuration of the network card
Check the settings of the network card. The configuration file of the network card under linux is in / etc/sysconfig/network-scripts/
Use ls to view and then use vi or vim to edit ifcfg-eth0
After opening the file with vim, you will see the configuration of the network card.
Where DEVICE is the name of the network card, BOOTPROTO is static or dynamic, IPADDR is the IP address, MASK is the subnet mask, GATEWAY is the gateway, and ONBOOT is the switch status of the network card, for example, the gateway is 192.168.229.2, then come to the ping gateway to see if ping can be reached.
If other hosts in the local area network can access the Internet, but when you cannot access the Internet, excluding the relevant access restrictions made by the gateway or server, it can only be the configuration problem of the local computer. Check DNS.
2. Configure DNS
Let's verify that the DNS is parsed successfully.
Baidu can already get through under ping.
This is the end of the solution to the inability of linux to connect to the Internet. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.