Unable to connect to the Internet

I am unable to connect to the Internet using my Manjaro system. I am not sure if I lost the ability to connect after an update, or if something else caused the problem. I have not done anything out of the ordinary that I recall. I’ve been unable to connect to the Internet for about one month. Why did I lose Internet connection and what should I do to try to fix the problem? I am not an expert, but I usually fix my problems using the Manjaro wiki and forum. Not this time. Below is some system information.

  Kernel: 5.4.169-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64
    root=UUID=51a1db45-9033-43f5-bbb7-997e3151d085 rw quiet apparmor=1
    security=apparmor 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: Desktop System: Micro-Star product: MS-7B89 v: 1.0
    serial: <superuser required>
  Mobo: Micro-Star model: B450M MORTAR MAX (MS-7B89) v: 1.0
    serial: <superuser required> UEFI-[Legacy]: American Megatrends v: 2.50
    date: 11/07/2019
Battery:
  Device-1: hidpp_battery_0 model: Logitech MX Keys Wireless Keyboard
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 10% (should be ignored) rechargeable: yes
    status: Discharging
Memory:
  RAM: total: 62.82 GiB used: 2.17 GiB (3.5%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 3 2200G with Radeon Vega Graphics bits: 64 type: MCP
    arch: Zen family: 0x17 (23) model-id: 0x11 (17) stepping: 0
    microcode: 0x8101016
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 2505 high: 3675 min/max: 1600/3500 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 3675 2: 1831
    3: 3034 4: 1480 bogomips: 28010
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid
    cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
    fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm
    mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc
    nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse
    pse36 rdrand rdseed rdtscp rep_good sep sev sha_ni skinit smap smca sme
    smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall
    tce topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt
    xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  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, STIBP:
    disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    vendor: Micro-Star MSI driver: amdgpu v: kernel bus-ID: 10:00.0
    chip-ID: 1002:67df class-ID: 0300
  Device-2: Sunplus IT Co AUKEY PC-LM1 USB Camera type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 3-4:3 chip-ID: 1acf:2384
    class-ID: 0102
  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: 4360x1628 s-dpi: 96 s-size: 1154x431mm (45.4x17.0")
    s-diag: 1232mm (48.5")
  Monitor-1: DisplayPort-0 res: 900x1600 hz: 60
  Monitor-2: DisplayPort-1 res: 900x1600 hz: 60
  Monitor-3: DVI-D-0 res: 2560x1440 hz: 60 dpi: 109
    size: 597x336mm (23.5x13.2") diag: 685mm (27")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: AMD Family 17h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel bus-ID: 27:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-2: Sunplus IT Co AUKEY PC-LM1 USB Camera type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 3-4:3 chip-ID: 1acf:2384
    class-ID: 0102
  Sound Server-1: ALSA v: k5.4.169-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: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel port: e000 bus-ID: 22:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: No WAN IP found. Connected to web? SSL issues? Try enabling dig
Bluetooth:
  Device-1: Dynex Bluetooth 4.0 Adapter [Broadcom 1.12 BCM20702A0] type: USB
    driver: btusb v: 0.8 bus-ID: 3-3:2 chip-ID: 19ff:0239 class-ID: fe01
    serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 3.64 TiB used: 233.54 GiB (6.3%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 scheme: MBR
  ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: Samsung model: SSD 970 EVO 500GB
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 scheme: MBR
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM003-1SB102
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC63 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0001 scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 335.88 GiB size: 330.1 GiB (98.28%)
    used: 233.54 GiB (70.7%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:5 label: N/A uuid: 51a1db45-9033-43f5-bbb7-997e3151d085
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:4 size: 128.91 GiB fs: swap label: N/A
    uuid: a9efb757-3eaa-4029-97d4-421416cda6fb
  ID-2: /dev/nvme1n1p1 maj-min: 259:2 size: 579 MiB fs: ntfs
    label: System Reserved uuid: E8D47BA6D47B75A2
  ID-3: /dev/nvme1n1p2 maj-min: 259:3 size: 465.19 GiB fs: ntfs
    label: Local Disk uuid: 76547C89547C4DBD
  ID-4: /dev/sda1 maj-min: 8:1 size: 931.51 GiB fs: exfat label: N/A
    uuid: B4AE-0502
  ID-5: /dev/sdb1 maj-min: 8:17 size: 1.82 TiB fs: exfat label: PC-Office
    uuid: B055-883B
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 10 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:2
    info: SCM Microsystems SCR331-LC1 / SCR3310 SmartCard Reader
    type: Smart Card driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 04e6:5116 class-ID: 0b00
  Device-2: 1-4:3 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-3:2
    info: Dynex Bluetooth 4.0 Adapter [Broadcom 1.12 BCM20702A0] type: Bluetooth
    driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 19ff:0239
    class-ID: fe01 serial: <filter>
  Device-2: 3-4:3 info: Sunplus IT Co AUKEY PC-LM1 USB Camera
    type: Video,Audio driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s power: 500mA chip-ID: 1acf:2384 class-ID: 0102
  Hub-4: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-5: 5-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 5-1:2 info: Dell Dell 2330d Laser Printer type: Printer
    driver: usblp interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 2mA
    chip-ID: 413c:5230 class-ID: 0701 serial: <filter>
  Hub-6: 6-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 31.0 C mobo: N/A gpu: amdgpu temp: 36.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1095
Info:
  Processes: 275 Uptime: 11m wakeups: 4 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: 1408 pacman: 1388 lib: 428
  flatpak: 0 snap: 20 Shell: Bash v: 5.1.12 running-in: xfce4-terminal
  inxi: 3.3.12

What kind of internet connection did you used to have?
Wired or wireless?
Only your wired connection shows up here as a possibility - as far as I can see.

Wired. I’m connected to a eero beacon, which is bridged with a Verizon Fios router. I also cannot connect using Wi-Fi. I can connect using Windows.

What is the output of systemctl status NetworkManager?

● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; v>
    Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
             └─NetworkManager-ovs.conf
     Active: active (running) since Sat 2022-02-26 14:11:12 EST; 5min ago
       Docs: man:NetworkManager(8)
   Main PID: 1089 (NetworkManager)
      Tasks: 3 (limit: 77101)
     Memory: 15.1M
        CPU: 207ms
     CGroup: /system.slice/NetworkManager.service
             └─1089 /usr/bin/NetworkManager --no-daemon

Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9760] device >
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9762] device >
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9766] manager>
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9770] manager>
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9771] policy:>
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9776] device >
Feb 26 14:11:17 mbbrady NetworkManager[1089]: <info>  [1645902677.9785] manager>
Feb 26 14:11:18 mbbrady NetworkManager[1089]: <info>  [1645902678.4636] dhcp4 (>
Feb 26 14:11:18 mbbrady NetworkManager[1089]: <info>  [1645902678.4649] policy:>
Feb 26 14:11:22 mbbrady NetworkManager[1089]: <info>  [1645902682.9926] agent-m>
lines 1-23/23 (END)

That looks good. Let’s check your available devices: ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp34s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:d8:61:fc:b7:72 brd ff:ff:ff:ff:ff:ff
[mike@mbbrady ~]$ 

Do you have “fast boot” enabled, by chance? If you are not sure, it might be good to check and disable it before we continue troubleshooting.

No, fast boot was/is disabled.

Okay, a few other things that might help us identify where the problem is.

ip route should show the IP address of your gateway (your router). If it does not, there’s the problem.

You should be getting an IP address assigned from your router through DHCP. Run ip address, and your device’s IP address should be listed next to the device NetworkManager listed above (enp34s0).

Try to ping your router using the IP address from the ip route command above. If the IP address is 192.168.0.1 for example, the ping command would be ping 192.168.0.1. If the ping is successful, it will keep going until you press Ctrl+C.

Try to ping an external IP address. A commonly used IP address is 9.9.9.9 because it is easy to remember.

Try to ping a website with its FQDN, for example ping forum.manjaro.org.

A couple things you could try is connect directly to the router and see if that solves the issue.Also you could update to a newer LTS kernel like 5.10 or 5.15.

ping forum.manjaro.org failed. I was able to ping my router IP address and IP address 9.9.9.9

I recall now that I may have made a change to my BIOS when I was trying to remote access computers on my network using NoMachine. I was also creating VMs in Windows at the time. Enabling Hyper-V may have been the BIOS change, which I’m recall from memory a month back, so not 100% sure. Hyper-V is currently enabled. Would that affect Internet connection in Manjaro?

I do not know the answer to that, but if so that would be something I have never heard of.

It might be your DNS assignments just need to be adjusted. I have seen cases where Windows is able to work around bad nameserver assignments from the gateway (perhaps Windows has baked-in DNS alternatives), but Linux tends to do as it is told and if you ask it to use a bad DNS server it will just fail.

What is the output of cat /etc/resolv.conf?

[mike@mbbrady ~]$ cat /etc/resolv.conf

Generated by NordVPN

nameserver 103.86.99.99
nameserver 103.86.96.96[mike@mbbrady ~]$

That may be the crux of the issue right there. Although I do get a ping back from the first address, I cannot get a response from 103.86.96.96.

ping 103.86.96.96 PING 103.86.96.96 (103.86.96.96) 56(84) bytes of data. ^C --- 103.86.96.96 ping statistics --- 272 packets transmitted, 0 received, 100% packet loss, time 277535ms

I am guessing those IP addresses are assigned by your ISP. ISPs are notorious for setting up their own nameservers so they have an easy way to collect information about their subscribers browsing habits. Often times these nameservers do not function well or are broken.

The best fix would be to log in to your router’s admin portal and change your DNS servers to something better. This change would trickle down to NetworkManager automatically and would result in the least amount of fuss. Logging in to your routers admin portal is different for every device, but typically it isn’t hard to find some instructions by doing a web search for the model of your router.

Note: some routers do not allow changing DNS settings. Typically this would only be the case if you rent a device from your ISP and that is how they have configured it.

Another option is to edit your /etc/resolv.conf file to include the DNS servers you would like. You can use nano or whatever editor you are comfortable with to make the edit. The tricky thing is that NetworkManager will automatically update this file with whatever settings it gets from the gateway on your next boot (that is why it is ideal if you can change the DNS server settings in the router itself). You can work around this if you need to by making /etc/resolv.conf write protected by assigning the immutable file attribute to it. To do this, as root run:

chattr +i /etc/resolv.conf

Good DNS servers to choose are OpenDNS: 208.67.222.222 and 208.67.220.220. A lot of folks use the Google nameservers because they are fast and reliable (and easy to remember): 8.8.8.8 and 8.8.4.4.

Again, my guess is Windows has a backup nameserver baked in and is able to work around this on its own. Try changing the nameserver and see if your internet connection is restored.

1 Like

Do I use 208.67.222.222 and 208.67.220.220 for start and end IP address, respectively? When I try to save I get an error: “IP Addresses: Start IP address is greater than End IP address”

Is that an error message you are getting from the admin portal on your router? Is it possible to post a screenshot of what you are seeing?

NordVPN on Manjaro

Due to the way NordVPN work the system nameserver does not get restored correctly - which is the root cause of your issue.

The long version

The short version - be sure you read above topic

sudo systemctl enable --now systemd-resolved
sudo mv /etc/resolv.conf /etc/resolv.conf.bak
sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo systemctl restart NetworkManager
resolvectl status
2 Likes

:point_up_2: My mistake, I did not notice that. Looks like a good tip!

I am connected to the Internet on Manjaro - thanks so much everyone.

I had to reboot to move the .conf file.

In Windows, I successfully changed my DNS server name to OpenDNS (thanks BluishHumility). However, the server name was not changed in Manjaro.

Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
    resolv.conf mode: stub
  Current DNS Server: 2600:4040:2017:6c00::1
         DNS Servers: 2600:4040:2017:6c00::1 192.168.1.1
Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 9.9.9.10#dns.quad9.net
                      8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com
                      2620:fe::10#dns.quad9.net 2001:4860:4860::8888#dns.google
          DNS Domain: myfiosgateway.com

Link 2 (enp34s0)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.1.1
       DNS Servers: 192.168.1.1 2600:4040:2017:6c00::1
        DNS Domain: myfiosgateway.com