No internet after upgrade to 15.6

After upgrading a ThinkPad X390 to Leap 15.6, the system has no internet connection. It connects to the router with both wired and wireless interfaces. The router has good internet service as shown by this machine and by booting the X390 into Windows 11.

In 15.6 wired and wireless both give this notice:
Limited

The upgrade was with a wired ethernet connection, which worked. Some information is:

howard@X390-oS156:~> ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:2b:67:10:59:53 brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
3: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 40:ec:99:b4:2c:2e brd ff:ff:ff:ff:ff:ff
    altname wlp0s20f3
    inet 192.168.1.13/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan1
       valid_lft 86123sec preferred_lft 86123sec
    inet6 fe80::e53c:17cc:d251:3f15/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
howard@X390-oS156:~> 
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (6) I219-V
	Subsystem: Lenovo Device 22ac
	Flags: bus master, fast devsel, latency 0, IRQ 143
	Memory at cf700000 (32-bit, non-prefetchable) [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: e1000e
	Kernel modules: e1000e
	
00:14.3 Network controller: Intel Corporation Comet Lake PCH-LP CNVi WiFi
	Subsystem: Intel Corporation Dual Band Wi-Fi 5(802.11ac) Wireless-AC 9560 160MHz 2x2 [Jefferson Peak]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at cf738000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

howard@X390-oS156:~> systemctl status network
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-08-16 13:03:30 PDT; 57min ago
       Docs: man:NetworkManager(8)
   Main PID: 10400 (NetworkManager)
      Tasks: 4 (limit: 4915)
        CPU: 12.472s
     CGroup: /system.slice/NetworkManager.service
             └─10400 /usr/sbin/NetworkManager --no-daemon
howard@X390-oS156:~> 

What needs changing to get internet?
Thanks,
Howard

Show us the output of
nmcli

It should report the current connection(s), including IP gateway and DNS address(es).

Here it is, with both wired and wireless connections to the router, but not reaching the internet:

howard@X390-oS156:~> nmcli
eth0: connected to eth1
        "Intel I219-V"
        ethernet (e1000e), 00:2B:67:10:59:53, hw, mtu 1500
        ip4 default
        inet4 192.168.1.12/24
        route4 192.168.1.0/24 metric 100
        route4 default via 192.168.1.1 metric 20100
        inet6 fe80::a815:a9a6:850c:a937/64
        route6 fe80::/64 metric 1024

lo: connected (externally) to lo
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
        inet4 127.0.0.1/8
        inet6 ::1/128

wlan1: connected to howardcathy2.4G
        "Intel Comet Lake PCH-LP CNVi Wireless-AC 9560 160MHz 2x2"
        wifi (iwlwifi), 40:EC:99:B4:2C:2E, hw, mtu 1500
        inet4 192.168.1.13/24
        route4 192.168.1.0/24 metric 600
        route4 default via 192.168.1.1 metric 20600
        inet6 fe80::e53c:17cc:d251:3f15/64
        route6 fe80::/64 metric 1024

p2p-dev-wlan1: disconnected
        "p2p-dev-wlan1"
        wifi-p2p, hw

DNS configuration:
        servers: 192.168.1.1
        interface: eth0

        servers: 192.168.1.1
        interface: wlan1

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
howard@X390-oS156:~>  

Thanks.

That looks as expected, although you should understand that with both wired and wireless connected concurrently, the route metric (set by NetworkManager) will mean that the ethernet path is preferred.

The DNS address is set as your router, which means your router also acting as DNS forwarder. (You could change that explicitly via NetworkManager if desired, even for test purposes.)

With respect to internet connectivity, try pinging a well-known Google DNS…

ping 8.8.8.8

then by name eg

ping google.com

You are right about a DNS problem.

howard@X390-oS156:~> ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=36.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=112 time=21.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=112 time=21.9 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=112 time=21.9 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=112 time=28.4 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=112 time=20.9 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=112 time=21.6 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=112 time=21.1 ms
64 bytes from 8.8.8.8: icmp_seq=9 ttl=112 time=21.5 ms
64 bytes from 8.8.8.8: icmp_seq=10 ttl=112 time=21.2 ms
^C
--- 8.8.8.8 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9016ms
rtt min/avg/max/mdev = 20.949/23.662/36.264/4.687 ms
howard@X390-oS156:~> ping google.com
ping: google.com: Name or service not known
howard@X390-oS156:~>

After the above, I added 1.1.1.1,1.0.0.1 to the eth1 IPv4 tab, stopped and started the connection, but there was no difference - could ping 1.1.1.1 but not google.com. It showed (after turning off wireless):

howard@X390-oS156:~> nmcli
eth0: connected to eth1
        "Intel I219-V"
        ethernet (e1000e), 00:2B:67:10:59:53, hw, mtu 1500
        ip4 default
        inet4 192.168.1.12/24
        route4 192.168.1.0/24 metric 100
        route4 default via 192.168.1.1 metric 20100
        inet6 fe80::a815:a9a6:850c:a937/64
        route6 fe80::/64 metric 1024

lo: connected (externally) to lo
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
        inet4 127.0.0.1/8
        inet6 ::1/128

wlan1: unavailable
        "Intel Comet Lake PCH-LP CNVi Wireless-AC 9560 160MHz 2x2"
        wifi (iwlwifi), 86:8A:D8:67:3C:72, sw disabled, hw, mtu 1500

p2p-dev-wlan1: unavailable
        "p2p-dev-wlan1"
        wifi-p2p, sw disabled, hw

DNS configuration:
        servers: 1.1.1.1 1.0.0.1 192.168.1.1
        interface: eth0

Use "nmcli device show" to get complete information about known devices and
"nmcli connection show" to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.
howard@X390-oS156:~> 

I’m puzzled what changed in the upgrade. Networking was fine in 15.5. I used the same .iso download to upgrade three other machines, and their networking is fine.
Regards,
Howard

What does the following command return?

grep hosts /etc/nsswitch.conf
howard@X390-oS156:~> grep hosts /etc/nsswitch.conf
hosts:          [NOTFOUND=return] files mdns_minimal dns wins
howard@X390-oS156:~> 

Change that to
hosts: files mdns_minimal [NOTFOUND=return] dns wins

BTW, are you really using WINS? I doubt it as it’s been deprecated for a long time.

Genius, that fixed it. Normal internet access now.

I am likely not using wins. I have no idea how anything got into nsswitch.conf, or why only this one machine got garbled.

Thank you for the help.
Best regards,
Howard

Ok, glad to have been of help.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.