Only after restart: Wlan connected but no Internet

Hey,

I have no Internet through WLAN connection if my fedora starts new.

sudo systemctl restart NetworkManager

fixes this, but only until I start the system again, then I have to repeat the process.

Here someone suggests to

remove and reinstall your kernel WiFi Device driver

through:

sudo modprobe -r iwlwifi && sudo modprobe iwlwifi

at my device I end up at:

modprobe: FATAL: Module iwlwifi is in use.

Someone knows what to do to fix this? thx!

1 Like

What do you see in the system logs related to wifi (journalctl -b -g wifi) before restarting NetworkManager, when you do it, and later?

1 Like

thx 4 the quick reply!

before:

journalctl -b -g wifi
kernel: Intel(R) Wireless WiFi driver for Linux
kernel: iwlwifi 0000:03:00.0: loaded firmware version 36.c>
kernel: iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band >
kernel: iwlwifi 0000:03:00.0: base HW address: 14:4f:8a:dc>
kernel: iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
NetworkManager[1721]: <info>  [1679760015.0688] rfkill2: f>
NetworkManager[1721]: <info>  [1679760015.0885] Loaded dev>
NetworkManager[1721]: <info>  [1679760018.8184] device (wl>
NetworkManager[1721]: <info>  [1679760018.8196] device (wl>
NetworkManager[1721]: <info>  [1679760018.9450] device (wl>

after:

sudo systemctl restart NetworkManager
journalctl -b -g wifi
kernel: Intel(R) Wireless WiFi driver for Linux
kernel: iwlwifi 0000:03:00.0: loaded firmware version 36.c>
kernel: iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band >
kernel: iwlwifi 0000:03:00.0: base HW address: 14:4f:8a:dc>
kernel: iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
NetworkManager[1721]: <info>  [1679760015.0688] rfkill2: f>
NetworkManager[1721]: <info>  [1679760015.0885] Loaded dev>
NetworkManager[1721]: <info>  [1679760018.8184] device (wl>
NetworkManager[1721]: <info>  [1679760018.8196] device (wl>
NetworkManager[1721]: <info>  [1679760018.9450] device (wl>
NetworkManager[3829]: <info>  [1679760173.3795] rfkill2: f>
NetworkManager[3829]: <info>  [1679760173.3832] Loaded dev>
NetworkManager[3829]: <info>  [1679760176.7617] device (wl>
NetworkManager[3829]: <info>  [1679760176.7634] device (wl>
NetworkManager[3829]: <info>  [1679760176.8407] device (wl>
lines 1-15/15 (END)...skipping...
kernel: Intel(R) Wireless WiFi driver for Linux
kernel: iwlwifi 0000:03:00.0: loaded firmware version 36.ca7b901d.0 8265-36.ucode op_mode iwlmvm
kernel: iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
kernel: iwlwifi 0000:03:00.0: base HW address: 14:4f:8a:dc:67:07, OTP minor version: 0x0
kernel: iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
NetworkManager[1721]: <info>  [1679760015.0688] rfkill2: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.6/0000:03:00.0/ieee80211/phy0/rfkill2) (driver iwlwifi)
NetworkManager[1721]: <info>  [1679760015.0885] Loaded device plugin: NMWifiFactory (/usr/lib64/NetworkManager/1.40.10-1.fc37/libnm-device-plugin-wifi.so)
NetworkManager[1721]: <info>  [1679760018.8184] device (wlp3s0): Activation: (wifi) access point '***' has security, but secrets are required.
NetworkManager[1721]: <info>  [1679760018.8196] device (wlp3s0): Activation: (wifi) connection '***' has security, and secrets exist.  No new secrets needed.
NetworkManager[1721]: <info>  [1679760018.9450] device (wlp3s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "***"
NetworkManager[3829]: <info>  [1679760173.3795] rfkill2: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.6/0000:03:00.0/ieee80211/phy0/rfkill2) (driver iwlwifi)
NetworkManager[3829]: <info>  [1679760173.3832] Loaded device plugin: NMWifiFactory (/usr/lib64/NetworkManager/1.40.10-1.fc37/libnm-device-plugin-wifi.so)
NetworkManager[3829]: <info>  [1679760176.7617] device (wlp3s0): Activation: (wifi) access point '***' has security, but secrets are required.
NetworkManager[3829]: <info>  [1679760176.7634] device (wlp3s0): Activation: (wifi) connection '***' has security, and secrets exist.  No new secrets needed.
NetworkManager[3829]: <info>  [1679760176.8407] device (wlp3s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "***"

the last 15 lines then appear once again

Make sure this is not a DNS related problem:

tracepath -n 8.8.8.8
tracepath -n 2001:4860:4860::8888

Also try collecting a more detailed log:

journalctl --no-pager -b -u NetworkManager.service

You can post the output to paste.centos.org.

1 Like

before sudo systemctl restart NetworkManager

tracepath -n 8.8.8.8
 1?: [LOCALHOST]                      pmtu 1500
 1:  192.168.178.1                                        20.068ms 
 1:  192.168.178.1                                        17.067ms 
 2:  84.157.132.214                                       15.181ms pmtu 1492
 2:  62.155.240.146                                       34.279ms 
 3:  217.5.74.6                                           43.019ms asymm  6 
 4:  72.14.202.10                                         47.063ms asymm  5 
tracepath -n 2001:4860:4860::8888
 1:  Senden fehlgeschlagen
     Resume: pmtu 128000 
journalctl --no-pager -b -u NetworkManager.service

https://paste.centos.org/view/0dd47ad3

after sudo systemctl restart NetworkManager

tracepath -n 8.8.8.8
 1?: [LOCALHOST]                      pmtu 1500
 1:  192.168.178.1                                        15.446ms 
 1:  192.168.178.1                                        14.954ms 
 2:  84.157.132.214                                       14.007ms pmtu 1492
 2:  62.155.240.146                                       35.591ms 
 3:  217.0.203.146                                        41.878ms asymm  6 
 4:  72.14.202.10                                         36.433ms asymm  5
 tracepath -n 2001:4860:4860::8888
 1:  Senden fehlgeschlagen
     Resume: pmtu 128000
journalctl --no-pager -b -u NetworkManager.service

https://paste.centos.org/view/eb84314b

Let’s isolate issues related to power saving, MAC address randomization and DNS.

Also modify the connection settings to use a custom DNS provider:

nmcli connection show
nmcli connection modify CONNECTION \
    ipv4.ignore-auto-dns yes \
    ipv6.ignore-auto-dns yes \
    ipv4.dns 8.8.8.8,8.8.4.4
1 Like

thx again

/etc/NetworkManager/conf.d/

is empty


I applied

nmcli connection show
nmcli connection modify CONNECTION \
    ipv4.ignore-auto-dns yes \
    ipv6.ignore-auto-dns yes \
    ipv4.dns 8.8.8.8,8.8.4.4

I replaced “CONNECTION” by the name of the WIFI that the trouble appears with. After a restart the problem still occurs.

1 Like

When the linked code is pasted to the terminal, it should create the config files in the specified location and restart the service to apply the changes.

1 Like

Yeah you were right, the files were created. But unfortunately it did not fix the problem.

1 Like

Can you check connection to any other wireless network?
Perhaps the issue is related to a specific combination of Wi-Fi settings, e.g. 2.4GHz / 5GHz, or open / hidden SSID, or WPA2 / WPA3 PSK, or TKIP / CCMP ciphers, or WMM / roaming mode, etc.

1 Like

When I restart and try to connect to the hotspot of my smartphone it occurs as well and I remember being in another place using wifi that before worked without issues I had to run sudo systemctl restart NetworkManager as well to fix it.

I check the infos u gave from what is saved in my notebook and on my router:

device 2.4 GHz / 5GHz open / hidden SSID WPA2 / WPA3 PSK TKIP / CCMP WMM / Roaming
router 2,4 GHz & 5GHz open WPA2 CMPP (according to the router) WMM (says the router)
smartphone 2,4 GHz & 5 GHz open WPA2 where to find? where to find?
1 Like

I just witnessed, that after a restart that follows a system update, the Internet is detected fine. No sudo systemctl restart NetworkManager necessary. If I then just restart again, the Internet is not detected and sudo systemctl restart NetworkManager is necessary to get it back.

You can also try fixing SELinux labels:
Systemd-resolved fails on initial load - #10 by grumpey