Can't connect to LAN

Hello, could you assist to make LAN connection?

Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8168 v: 8.049.02-NAPI port: 3000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Lenovo driver: rtw_8822ce v: N/A port: 2000 bus-ID: 02:00.0
    chip-ID: 10ec:c822 class-ID: 0280

Welcome here, @mtogonid :wave:

Please provide output of

inxi -Fza

And

mhwd -l -d

Also please dont forget to format your output using the </> button in the post editor tools.

( [HowTo] Provide System Information )

Thank you for quick reply :slight_smile:

System:
  Kernel: 5.15.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=19099756-9ef5-4b5b-86fc-812b9811b2f2 rw quiet
    resume=UUID=a4e7ba68-beb8-458a-a7ab-07b86a2d5b8b udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82KD v: Lenovo V15 G2 ALC
    serial: <superuser required> Chassis: type: 10 v: Lenovo V15 G2 ALC
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: No DPK serial: <superuser required>
    UEFI: LENOVO v: GLCN20WW date: 01/21/2021
Battery:
  ID-1: BAT0 charge: 39.2 Wh (100.0%) condition: 39.2/38.0 Wh (103.2%)
    volts: 8.8 min: 7.7 model: SMP L20M2PF0 type: Li-poly serial: <filter>
    status: Full cycles: 35
CPU:
  Info: model: AMD Ryzen 3 5300U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 family: 0x17 (23) model-id: 0x68 (104) stepping: 1
    microcode: 0x8608102
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB
    L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 2267 high: 3893 min/max: 1400/3900 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1729 2: 1730
    3: 1730 4: 1716 5: 3885 6: 3893 7: 1730 8: 1730 bogomips: 41540
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
    IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Lucienne vendor: Lenovo driver: amdgpu v: kernel
    bus-ID: 04:00.0 chip-ID: 1002:164c class-ID: 0300
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-3:3 chip-ID: 13d3:56ff class-ID: 0e02
  Display: x11 server: X.Org 1.21.1.2 compositor: xfwm4 v: 4.16.1 driver:
    loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: AMD vendor: Lenovo driver: snd_hda_intel v: kernel
    bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.12-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.42 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8168 v: 8.049.02-NAPI modules: r8169 port: 3000
    bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce port: 2000
    bus-ID: 02:00.0 chip-ID: 10ec:c822 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: ipv6leakintrf0 state: unknown speed: N/A duplex: N/A
    mac: <filter>
  IF-ID-2: proton0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-4:2 chip-ID: 0bda:c123 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 5 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 238.47 GiB used: 14.42 GiB (6.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZALQ256HBJD-00BL2 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 5L2QFXM7 temp: 25.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 229.37 GiB size: 224.71 GiB (97.97%)
    used: 14.42 GiB (6.4%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 46.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 253 Uptime: 9h 20m wakeups: 3 Memory: 5.72 GiB
  used: 2.61 GiB (45.7%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1193 lib: 333 Shell: Bash
  v: 5.1.12 running-in: xfce4-terminal inxi: 3.3.11

Thenk you for your message :slight_smile:

> PCI Device: /devices/pci0000:00/0000:00:02.1/0000:01:00.0 (0200:10ec:8168)
  Network controller Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	network-r8168
   ATTACHED:	PCI
   VERSION:	2016.04.20
   INFO:	RealTek RTL-8168 Gigabit Ethernet driver
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0200 
   VENDORIDS:	1186 10ec 



  > AVAILABLE:

   NAME:	network-r8168
   ATTACHED:	PCI
   VERSION:	2016.04.20
   INFO:	RealTek RTL-8168 Gigabit Ethernet driver
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0200 
   VENDORIDS:	1186 10ec 


--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:08.1/0000:04:00.0 (0300:1002:164c)
  Display controller ATI Technologies Inc Lucienne
--------------------------------------------------------------------------------
  > 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!

Have you been using this r8168 network profile the whole time?

I also noticed that what is loaded is 8169.

So you could try blacklisting/removing that module to see if another is used, example:

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

And/Or have you tried with it removed?

sudo mhwd -r pci network-r8168

yes, i have been using only r8168.

I ran the first command, but I still don’t get the connection.

The first command would blacklist the module 
 you would then need to reload things, or simply reboot.

I rebooted, but still doesn’t work

Then remove the file

sudo rm /etc/modprobe.d/blacklist-8169.conf

Also check, just in case, the output of

rfkill list

I did.

0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

Please send the output ifconfig -a then nmcli from a terminal

enp1s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 84:a9:38:51:2b:13  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 69  base 0x9000  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1612  bytes 999715 (976.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1612  bytes 999715 (976.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.102  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::916a:d403:c9ff:cade  prefixlen 64  scopeid 0x20<link>
        ether 00:45:e2:8a:6a:01  txqueuelen 1000  (Ethernet)
        RX packets 67424  bytes 89628541 (85.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22125  bytes 2863961 (2.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
wlp2s0: verbunden to wlan
        "Realtek RTL8822CE"
        wifi (rtw_8822ce), 00:45:E2:8A:6A:01, hw, mtu 1500
        ip4-Vorgabe
        inet4 192.168.2.102/24
        route4 0.0.0.0/0
        route4 192.168.2.0/24
        inet6 fe80::916a:d403:c9ff:cade/64
        route6 fe80::/64

enp1s0: nicht verfĂŒgbar
        "Realtek RTL8111/8168/8411"
        ethernet (r8168), 84:A9:38:51:2B:13, hw, mtu 1500

lo: nicht verwaltet
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 192.168.2.1
        interface: wlp2s0

Rufen Sie »nmcli device show« auf, um vollstĂ€ndige Informationen ĂŒber bekannte >
lines 1-23...skipping...
wlp2s0: verbunden to wlan
        "Realtek RTL8822CE"
        wifi (rtw_8822ce), 00:45:E2:8A:6A:01, hw, mtu 1500
        ip4-Vorgabe
        inet4 192.168.2.102/24
        route4 0.0.0.0/0
        route4 192.168.2.0/24
        inet6 fe80::916a:d403:c9ff:cade/64
        route6 fe80::/64

enp1s0: nicht verfĂŒgbar
        "Realtek RTL8111/8168/8411"
        ethernet (r8168), 84:A9:38:51:2B:13, hw, mtu 1500

lo: nicht verwaltet
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 192.168.2.1
        interface: wlp2s0

Rufen Sie »nmcli device show« auf, um vollstĂ€ndige Informationen ĂŒber bekannte GerĂ€te abzurufen
und »nmcli connection show« fĂŒr eine Übersicht ĂŒber aktive Verbindungsprofile.


Die Hilfeseiten nmcli(1) und nmcli-examples(7) geben vollstÀndige Aufrufbeschreibungen.

i don’t understand your problem. Seems, you are connected to the WLAN via IPv4 just fine. Is it not working or do you want to connect via wired Ethernet? In the later case, disable WLAN (not the complete network, only wireless) in the network manager and the system should switch to Ethernet. Or did i miss something?

If WLAN doesn’t work either, could it be that your provider only supports IPv6?

HP

Hello, I have wireless connection, but when I try to connect to Ethernet it doesn’t work. Of course I disable Wifi before pluging Ethernet cable.

so please disable WLAN, connect the Ethernet cable, wait some 2-3 seconds, then send the output from ifconfig -a then nmcli (as before) and from ‘ping 8.8.8.8’. Also make sure the cable is fine, maybe test with a different cable and with different ports of your internet router.

HP


 also:
run
sudo dmesg -w
in a Terminal while you plug in/unplug the cable
it should register 
 something when things change

Thank you, I have solved the problem. It was router issue :face_with_open_eyes_and_hand_over_mouth:

1 Like