On startup of my laptop, all wifi networks are detected, my laptop connects to the wifi, but I don’t have internet and get wifi with a question mark icon.
Upon running the following command I have immediately an internet connection:
resolvectl --no-pager status
Does anybody have a clue what is going on, and how to resolve it?
I am running Fedora Linux 40 (Workstation Edition)
firmware Version 2.29
DNS4, DNS6 : Automatic
Edit: updated to fedora 41, and the issue seems to be resolved for now
Does
ping 1.1.1.1
Work ? If yes then could be DNS problem.
It does work, but changing DNS doesn’t solve the issue unfortunately
Do you have a custom DNS set up on your Fedora machine or the router by chance?
Do you have a custom DNS set up on your Fedora machine or the router by chance?
No, The DNS is set to automatic. And: ipv4 and ipv6 are set to automatic (DHCP), and automatic respectively.
Then I’m afraid I can’t help. I only have such an issue if the DNS is experiencing a downtime or I don’t pay my bills in time.
use journalctl -f to show you what’s happening as you try to connect and look for errors/failure/disconnects/etc.
anonymous@fedora:~$ journalctl -f Oct 31 17:34:08 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=geoclue comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:34:09 fedora realmd[1795]: quitting realmd service after timeout Oct 31 17:34:09 fedora realmd[1795]: stopping service Oct 31 17:34:09 fedora systemd[1]: realmd.service: Deactivated successfully. Oct 31 17:34:09 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=realmd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:34:11 fedora systemd[1]: systemd-hostnamed.service: Deactivated successfully. Oct 31 17:34:11 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:34:11 fedora audit: BPF prog-id=63 op=UNLOAD Oct 31 17:34:11 fedora audit: BPF prog-id=62 op=UNLOAD Oct 31 17:34:11 fedora audit: BPF prog-id=61 op=UNLOAD Oct 31 17:34:14 fedora systemd[1]: systemd-timedated.service: Deactivated successfully. Oct 31 17:34:14 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-timedated comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:34:14 fedora audit: BPF prog-id=74 op=UNLOAD Oct 31 17:34:14 fedora audit: BPF prog-id=73 op=UNLOAD Oct 31 17:34:14 fedora audit: BPF prog-id=72 op=UNLOAD Oct 31 17:34:15 fedora systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. Oct 31 17:34:15 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:34:20 fedora systemd[1946]: Starting gvfs-metadata.service - Virtual filesystem metadata service... Oct 31 17:34:20 fedora systemd[1946]: Started gvfs-metadata.service - Virtual filesystem metadata service. Oct 31 17:34:30 fedora systemd[1946]: Started vte-spawn-20272143-c14e-4bfd-a2f8-d6bc96a25a33.scope - VTE child process 4502 launched by gnome-terminal-server process 3321. Oct 31 17:35:05 fedora systemd[1]: virtqemud.service: Deactivated successfully. Oct 31 17:35:05 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=virtqemud comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:35:29 fedora chronyd[968]: Can't synchronise: no selectable sources Oct 31 17:35:44 fedora systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service... Oct 31 17:35:44 fedora systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service. Oct 31 17:35:44 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:35:48 fedora gnome-shell[2194]: Received multiple virtual 0x1d key releases (ignoring) Oct 31 17:35:54 fedora systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. Oct 31 17:35:54 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:36:02 fedora systemd[1946]: Starting grub-boot-success.service - Mark boot as successful... Oct 31 17:36:02 fedora systemd[1946]: Finished grub-boot-success.service - Mark boot as successful. Oct 31 17:36:11 fedora gnome-shell[2194]: Received multiple virtual 0x1d key releases (ignoring) Oct 31 17:36:21 fedora gnome-shell[2194]: Received multiple virtual 0x1d key releases (ignoring) Oct 31 17:36:25 fedora audit: BPF prog-id=75 op=LOAD Oct 31 17:36:25 fedora systemd[1]: Starting fprintd.service - Fingerprint Authentication Daemon... Oct 31 17:36:25 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:36:25 fedora systemd[1]: Started fprintd.service - Fingerprint Authentication Daemon. Oct 31 17:36:27 fedora audit[4805]: USER_AUTH pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:authentication grantors=pam_unix acct="anonymous" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:27 fedora audit[4805]: USER_ACCT pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:accounting grantors=pam_unix acct="anonymous" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:27 fedora sudo[4805]: anonymous : TTY=pts/1 ; PWD=/home/anonymous ; USER=root ; COMMAND=/usr/sbin/lshw -C network Oct 31 17:36:27 fedora audit[4805]: USER_CMD pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='cwd="/home/anonymous" cmd=6C736877202D43206E6574776F726B exe="/usr/bin/sudo" terminal=pts/1 res=success' Oct 31 17:36:27 fedora audit[4805]: CRED_REFR pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:27 fedora sudo[4805]: pam_unix(sudo:session): session opened for user root(uid=0) by anonymous(uid=1000) Oct 31 17:36:27 fedora audit[4805]: USER_START pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_open grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:30 fedora kernel: warning: `lshw' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211 Oct 31 17:36:30 fedora sudo[4805]: pam_unix(sudo:session): session closed for user root Oct 31 17:36:30 fedora audit[4805]: USER_END pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:session_close grantors=pam_keyinit,pam_limits,pam_keyinit,pam_limits,pam_systemd,pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:30 fedora audit[4805]: CRED_DISP pid=4805 uid=1000 auid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_unix acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success' Oct 31 17:36:55 fedora systemd[1]: fprintd.service: Deactivated successfully. Oct 31 17:36:55 fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:36:55 fedora audit: BPF prog-id=75 op=UNLOAD Oct 31 17:36:57 fedora audit: BPF prog-id=76 op=LOAD Oct 31 17:36:57 fedora systemd[1]: Starting systemd-resolved.service - Network Name Resolution... Oct 31 17:36:57 fedora systemd-resolved[4883]: Positive Trust Anchors: Oct 31 17:36:57 fedora systemd-resolved[4883]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d Oct 31 17:36:57 fedora systemd-resolved[4883]: Negative trust anchors: home.arpa 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 31.172.in-addr.arpa 170.0.0.192.in-addr.arpa 171.0.0.192.in-addr.arpa 168.192.in-addr.arpa d.f.ip6.arpa ipv4only.arpa resolver.arpa corp home internal intranet lan local private test Oct 31 17:36:57 fedora systemd-resolved[4883]: Using system hostname 'fedora'. Oct 31 17:36:57 fedora systemd[1]: Started systemd-resolved.service - Network Name Resolution. Oct 31 17:36:57 fedora audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-resolved comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' Oct 31 17:36:57 fedora systemd-resolved[4883]: wlp0s20f3: Bus client set search domain list to: home, home Oct 31 17:36:57 fedora systemd-resolved[4883]: wlp0s20f3: Bus client set default route setting: yes Oct 31 17:36:57 fedora systemd-resolved[4883]: wlp0s20f3: Bus client set DNS server list to: [my current dns4 address], [my current dns6 address]
too much noise and not obvious errors/failures/timeouts; try filtering by service units with something like
journalctl -u ${service-unit-name}
and set deeper debugging level with sudo.so i think that a list of the relevant service units will be decent place to start and the no-brainers from your copy/paste are audit, kernel, and systemd-${whatever} service units and we need to figure out what else we need to add to that list: maybe gnome-shell since you’ve mentioned nmcli? are you using fedora’s default ndiswrapper and what is it?
I also typed those in a separate command window
anonymous@fedora:~$ nslookup discussion.fedoraproject.org 2001:4860:4860::8888 Server: 2001:4860:4860::8888 Address: 2001:4860:4860::8888#53 Non-authoritative answer: discussion.fedoraproject.org canonical name = fedoraproject.hosted-by-discourse.com. Name: fedoraproject.hosted-by-discourse.com Address: 184.105.99.46 Name: fedoraproject.hosted-by-discourse.com Address: 2602:fd3f:3:ff01::2e anonymous@fedora:~$ nmcli general status STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN connected (site only) limited enabled enabled enabled enabled anonymous@fedora:~$ sudo lshw -C network | grep "driver" [sudo] password for anonymous: configuration: broadcast=yes driver=iwlwifi driverversion=6.11.4-201.fc40.x86_64 firmware=46.7e3e4b69.0 9000-pu-b0-jf-b0- ip=[current ipv4 address] latency=0 link=yes multicast=yes wireless=IEEE 802.11 configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=6.11.4-201.fc40.x86_64 firmware=0.4-3 latency=0 link=no multicast=yes port=twisted pair configuration: autonegotiation=off broadcast=yes driver=cdc_mbim driverversion=6.11.4-201.fc40.x86_64 duplex=half firmware=CDC MBIM link=no multicast=yes port=twisted pair anonymous@fedora:~$ resolvectl --no-pager status Global Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported resolv.conf mode: stub Link 2 (enp0s31f6) Current Scopes: none Protocols: -DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported Link 3 (wwp0s20f0u5i12) Current Scopes: none Protocols: -DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported Link 4 (wlp0s20f3) Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6 Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported DNS Servers: [my current dns4 address] [my current dns6 address] DNS Domain: home
I had one laptop doing this, the work around was disabling ipv6