No internet connection but wired shows connected

I installed Manjaro XFCe in my lenovo G460 but since the installation process it stopped having internet (before i used ubuntu which had the same problem, and before ubuntu windows, where it worked correctly) now when i try to connect through ethernet it shows like it was connected but there’s no internet at all.

Kernel: 5.10.89-1-MANJARO x86_64 bits: 64 Desktop: Xfce 4.16.0
    Distro: Manjaro Linux
Machine:
  Type: Laptop System: LENOVO product: 0677 v: Lenovo G460 serial: <filter>
  Mobo: LENOVO model: N/A serial: <filter> BIOS: LENOVO v: 29CN28WW(V2.05)
    date: 06/10/2010
Battery:
  ID-1: BAT1 charge: 0 Wh (0.0%) condition: 4.0/4.0 Wh (100.0%) volts: 8.2
    min: 11.1
CPU:
  Info: dual core model: Intel Core i3 M 350 bits: 64 type: MT MCP cache:
    L2: 512 KiB
  Speed (MHz): avg: 933 min/max: 933/2266 cores: 1: 933 2: 933 3: 933
    4: 933
Graphics:
  Device-1: Intel Core Processor Integrated Graphics driver: i915 v: kernel
  Device-2: Chicony Lenovo EasyCamera type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: modesetting
    resolution: 1366x768~60Hz
  OpenGL: renderer: Mesa DRI Intel HD Graphics (ILK) v: 2.1 Mesa 21.3.2
Audio:
  Device-1: Intel 5 Series/3400 Series High Definition Audio
    driver: snd_hda_intel
  Sound Server-1: ALSA v: k5.10.89-1-MANJARO running: yes
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.42 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169
  IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: enp0s29u1u4 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: Spreadtrum Unisoc Phone type: USB driver: rndis_host
  Report: This feature requires one of these tools: hciconfig/bt-adapter
Drives:
  Local Storage: total: 465.76 GiB used: 26.07 GiB (5.6%)
  ID-1: /dev/sda vendor: Western Digital model: WD5000LPCX-22VHAT0
    size: 465.76 GiB
Partition:
  ID-1: / size: 28.67 GiB used: 17.87 GiB (62.3%) fs: ext4 dev: /dev/dm-0
  ID-2: /boot size: 965.9 MiB used: 123.9 MiB (12.8%) fs: ext4
    dev: /dev/sda1
  ID-3: /home size: 421.8 GiB used: 7.8 GiB (1.8%) fs: ext4 dev: /dev/dm-1
Swap:
  ID-1: swap-1 type: partition size: 5.86 GiB used: 288.8 MiB (4.8%)
    dev: /dev/sda2
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 241 Uptime: 7h 52m Memory: 2.78 GiB used: 1.73 GiB (62.3%)
  Shell: Bash inxi: 3.3.11

You could try unloading the module…

sudo rmmod r8169
## and reloading it?
sudo modprobe r8169

You could also try blacklisting the 8169 module from the beginning

printf "blacklist r8169" | sudo tee -a /etc/modprobe.d/blacklist-8169.conf

(to remove it again you can just delete the file: sudo rm /etc/modprobe.d/blacklist-8169.conf)

Tried both but no result, the only thing that’s weird is that when i try to open something in the browser it doesn’t say that i don’t have internet it tells me this: “This site can’t be reached, www.google.c0m’s server ip address could not be found”

This second device there is odd. Maybe try turning it off?

sudo ip link set enp0s29u1u4 down

I’ve also had an issue where the net worked on Windows side but not on Linux side. The answer I got on my thread has since helped me several times while trouble shooting net connectivity issues. You could consider trying that as well.

Sorry i forgot to say that, that is my phone, im connected trough USB tethering

What is the output of

mhwd -l -d 

I’m also reading this and i made it to the 4th step but when i do the command the output is “Error: unknown connection <>”

--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:1c.1/0000:05:00.0 (0280:14e4:4727)
  Network controller Broadcom BCM4313 802.11bgn Wireless Network Adapter
--------------------------------------------------------------------------------
  > AVAILABLE:

   NAME:	network-broadcom-wl
   ATTACHED:	PCI
   VERSION:	2018.10.07
   INFO:	Broadcom 802.11 Linux STA wireless driver BCM43142
   PRIORITY:	0
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0200 0280 0282 
   VENDORIDS:	14e4 


--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:02.0 (0300:8086:0046)
  Display controller Intel Corporation Core Processor Integrated Graphics Controller
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 



  > AVAILABLE:

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 
   VENDORIDS:	* 


Warning: no configs for USB devices found!

Mk. You can try with 8168 driver:

sudo pacman -S linux510-r8168

You may need to blacklist the 8169 as well like above.

After the installation i shut my laptop down and booted it again, but now in the network icon on the panel it says “no network device available”.
It seems that the driver didn’t or won’t load because it doesn’t appear when i do inxi:

Network:
  Device-1: Broadcom BCM4313 802.11bgn Wireless Network Adapter driver: N/A
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: N/A

Tried doing
sudo rmmod r8168
but i got this output
Error: r8168 is not currently loaded
After a bit it stopped showing that error but now it does nothing. The same with:
sudo modprobe r8168

Did you also blacklist 8169 ?
(and yes the modprobe command should initialize the module)

PS … I think we can get that wireless working with:

sudo mhwd -i pci network-broadcom-wl

I blacklisted r8169 before installing r8168 then when i tried to modprobe r8168 nothing happened.

I’m afraid that i can’t get it working, from when i had windows my wifi didn’t work (i always used wired connection) and the same with gnu/linux, i think my wireless adapter might be broken or something.
Still… when i try to install the broadcom config this is the output:

linux510-broadcom-wl: the reason of the installation has been set to <<explicitly installed>>
## then this
modprobe: FATAL: Module bcm43xx not found.
modprobe: FATAL: Module brcm80211 not found.


Well … I guess undo everything we have done (remove the extra driver and the blacklist)
Then I would say try some different kernels. Maybe 5.15, 5.4 ?
Otherwise I am not coming up with much…
This arch forum thread has a bad connection with the same device, but slightly different symptoms…
https://bbs.archlinux.org/viewtopic.php?id=255946

Okay, thank you for your time! and sorry for bothering too much hahaha, i’ll keep searching.