Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that ubuntu has a wired connection but cannot access the Internet?

Shulou Source: shulou.com Published: 2022-06-01 17:08:23 10月03日 Update

This article mainly explains how to solve the problem that ubuntu has a wired connection but cannot surf the Internet. Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem that ubuntu has a wired connection but cannot surf the Internet.

Ubuntu appears to be wired but unable to access the Internet. Execute the following command to solve the problem.

The code is as follows:

Sudo sysctl net.ipv4.conf.default.rp_filter=0

Sudo sysctl net.ipv4.conf.all.rp_filter=0

Sudo sysctl net.ipv4.ip_forward=1

Sudo sysctl net.ipv6.conf.all.forwarding=1

Or append directly to / etc/sysctl.conf

If you encounter a "device unmanaged", the network is generally disabled after the desktop defaults to mobile ip.

Then modify / etc/NetworkManager/NetworkManager.conf and set managed=true,reboot

Sometimes even if the above four items are still unable to connect to the network, then it is caused by managed=true, and then changed to false to connect to the web page.

At this point, I believe you have a deeper understanding of "how to solve the problem that ubuntu has been wired but cannot be connected to the Internet". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Cable problem content network learning practical deeper code interest desktop desktop command practicality practicality that is easy to operate method more sometimes friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MySQL Microsoft Redmi NVidia