[15.0] "network is unreachable" always same problem with WiFi, why?

Hi

I’m experiencing again a “network is unreachable” problem. I’ love OpenSuse but I’ve always had these problems with WiFi networks since the old versions.
I don’t know why it’s so easy to break the network in Suse, but I would like to hope it’s easy to fix it as well. Again, I totally say this as a constructive critic.

My current situation is the following: I bought a USB wireless card, I plugged it in my PC, I configured everything via Yast (wicked services) and everything worked.
Then I said to myself, why not using the NetworkManager app in the tray icon to choose the WiFi network in an easy way? well, I installed the network-manager gnome applet (dont’ recall the correct name), I moved from Wicked to NetworkManager in Yast and then I tried to connect via the NetworkManager widget. I selected the correct network, wrote the password and after a while it prompt me again the request for the WiFi password, like if the password was wrong. I tried the suggestions I’ve found in this forum about checking the “save for all users” and some other checkbox, but nothing changed this behavior… ti still asked me for the password again and again.

I said then: ok le’ts uninstall this widget (and I did) and let’s go back to wicked. I tried again the wicked services, but I experienced the dreaded “network is unreachable” error on ping. I tried the ifup wlan0 and / or ifconfig wlan0 up commands, but no change. I then tried to plug the WiFI adapter in another USB port and in Yast I saw two adapters (why??): wlan0 and wlan1, I then deleted the wlan0 and still same problem with this new wlan1.

I tried both DHCP and manual configuration, using the google DNS and without using it. I tried also to change the options to enable the adatper at boot, manually or on hotplug, but now I’m stuck with this “network is unreachable” error.

Any suggestion? I would love also a suggestion for a book / good tutorial about how networking works on OpenSuse and how to fix these kind of problems.

Thank you and have a great Sunday

For minimal configuration from scratch: Systemd-networkd - openSUSE Wiki

And apart from upgrading to a supported version of openSUSE (helping is easier when both sides use the same software), I assume you are aware of the fact that most openSUSE users do not have the problems you have. So blaming openSUSE might be inproductive, because when you concentrate on that you might mentaly skip searching for oher causes like failing Wifi hardware on you system, bad connectivity in your building, failing router, failing connection to your ISP, etc.

Whenever your connection fails, you should try to gather as much information as possible, like

  • is your Wifi hardware still up and having an IP address?
ip addr
  • when yes, can you ping another system on your LAN?
ping -c1 <IP-address of your router>

(I hope you know that address)

  • Do you still have a default route to the Internet?
ip route
  • and can you connect to a system on the internet?
ping -c1 130.57.66.6
  • Can you resolve host/domain names?
ping -c1 forums.opensuse.org

Take care. As soon a one step fails, that must be resolved first. It is useless to go to the next step before it is resolved. Post that output here to enable people to try to help you based on computer facts.

Thank you for the link mate

Thank you very much for your extensive reply. I totally agree with you about the mindset you’re speaking about, it’s the right one to have. Again, I’m not saying that this problem is due to OpenSuse, I did something wrong for sure, it’s my fault and I’m not here to blame. I just would like to give suggestions on what IMHO could be improved.
And yes, I will upgrade for sure, but at the moment I can’t do it for other reasons.

Regarding this specific issue:

is your Wifi hardware still up and having an IP address?

ip addr

I got

  wlan2: BRPADCAST. ,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether myMACAddress brd ff:ff:ff:ff:ff:ff 

On yast everything seems set, I don’t understand why it is not taking the address…

PS now wlan2 instead of wlan1. I didn’t touch the network adapter.

  • when yes, can you ping another system on your LAN?
ping -c1 <IP-address of your router>

(I hope you know that address)

Not possible to ping, still Network is unreachable error

  • Do you still have a default route to the Internet?
ip route

No output from that command, no default route also from ip route show

On Yast everything is correctly set (apparently).

and can you connect to a system on the internet?

ping -c1 130.57.66.6

Can you resolve host/domain names?

ping -c1 forums.opensuse.org

Negative

Just tried:

[code ] $ sudo ifconfig wlan0 up$ sudo ip link set wlan up



Still not working

Then you have a hardware issue. That’s what happens if you unplug the USB then plug it in again. Maybe you have a bad USB port or a faulty WiFi device.

I bought it two days ago. Just tried back on Kubuntu and it works.

Plug off, open an terminal as root:

journalctl -f

plug in your stick, post all new from the terminal here using Code-Tags, the small #

Apart from the good advice given above, I would like to give a different hint.

When people here advice you to use a command and post that in an answer, then please do not select some parts of what you see, but post everything. That is including the prompt.command line, all output and the next prompt.
Like wise, you do not say “impossible to ping”, but you post what you get on the terminal. Probably people here come to the same conclusion as you, but they may differ and your conclusion may be wrong or hide other information that is now missed.

And the wlan2 is due to indeed wlan0 (and later wlan1) bailing out. Wenn the hardware is “seen” again later, the system assumes this is a new device.

 Mar 15 15:16:35 linux-whdb baloo_file[2342]: QObject::connect: invalid null parameterMar 15 15:16:46 linux-whdb kernel: usb 1-1.2: new high-speed USB device number 6 using ehci-pci
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: New USB device found, idVendor=2001, idProduct=3319
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Product: Wireless N Nano USB Adapter
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Manufacturer: Realtek
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: SerialNumber: 00e04c000001
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: This Realtek USB WiFi dongle (0x2001:0x3319) is untested!
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Please report results to Jes.Sorensen@gmail.com
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Vendor: Realtek
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Product: Wireless N 
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Serial: no USB Adap
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 00: 29 81 00 7c 01 40 03 00
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 08: 40 74 04 50 14 00 00 00
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 10: 21 21 21 21 21 21 25 25
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 18: 25 25 25 ee 0f ef ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 20: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 28: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 30: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 38: ff ff 1e 1e 1e 1e 1e 1e
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 40: 24 24 24 24 24 ee 0f ef
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 48: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 50: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 58: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 60: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 68: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 70: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 78: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 80: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 88: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 90: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 98: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: a0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: a8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: b0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: b8: 21 36 21 00 00 00 ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: c0: ff 01 00 10 00 00 00 ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: c8: 00 00 ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: d0: 01 20 19 33 e7 47 02 f4
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: d8: 8c eb 4f 36 58 09 03 52
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: e0: 65 61 6c 74 65 6b 1d 03
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: e8: 57 69 72 65 6c 65 73 73
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: f0: 20 4e 20 4e 61 6e 6f 20
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: f8: 55 53 42 20 41 64 61 70
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 100: 74 65 72 00 ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 108: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 110: ff ff ff ff ff ff ff 0d
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 118: 03 00 05 00 30 00 00 00
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 120: 00 93 ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 128: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 130: f6 a8 98 2d 03 92 98 00
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 138: fc 8c 00 11 9b 44 02 0a
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 140: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 148: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 150: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 158: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 160: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 168: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 170: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 178: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 180: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 188: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 190: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 198: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1a0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1a8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1b0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1b8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1c0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1c8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1d0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1d8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1e0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1e8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1f0: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: 1f8: ff ff ff ff ff ff ff ff
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: RTL8192EU MAC: f4:8c:eb:4f:36:58
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
Mar 15 15:16:46 linux-whdb kernel: usb 1-1.2: Firmware revision 19.0 (signature 0x92e1)
Mar 15 15:16:47 linux-whdb systemd[1]: Starting Load/Save RF Kill Switch Status...
Mar 15 15:16:47 linux-whdb mtp-probe[2950]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2"
Mar 15 15:16:47 linux-whdb mtp-probe[2950]: bus: 1, device: 6 was not an MTP device
Mar 15 15:16:47 linux-whdb systemd-udevd[2963]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 15 15:16:47 linux-whdb systemd[1]: Started Load/Save RF Kill Switch Status.
Mar 15 15:16:47 linux-whdb kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mar 15 15:16:47 linux-whdb baloo_file[2342]: QObject::connect: invalid null parameter
Mar 15 15:16:47 linux-whdb kdeinit5[2296]: QObject::connect: invalid null parameter
Mar 15 15:16:47 linux-whdb wickedd[1284]: unable to translate eap protocol PWD
Mar 15 15:16:48 linux-whdb kernel: wlan0: authenticate with 00:14:c1:0c:0f:5a
Mar 15 15:16:48 linux-whdb kernel: wlan0: send auth to 00:14:c1:0c:0f:5a (try 1/3)
Mar 15 15:16:48 linux-whdb kernel: wlan0: authenticated
Mar 15 15:16:48 linux-whdb kernel: rtl8xxxu 1-1.2:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Mar 15 15:16:48 linux-whdb kernel: rtl8xxxu 1-1.2:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Mar 15 15:16:48 linux-whdb kernel: wlan0: associate with 00:14:c1:0c:0f:5a (try 1/3)
Mar 15 15:16:48 linux-whdb kernel: wlan0: RX AssocResp from 00:14:c1:0c:0f:5a (capab=0x11 status=0 aid=11)
Mar 15 15:16:48 linux-whdb kernel: wlan0: associated
Mar 15 15:16:48 linux-whdb kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mar 15 15:16:49 linux-whdb avahi-daemon[1142]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.29.
Mar 15 15:16:49 linux-whdb avahi-daemon[1142]: New relevant interface wlan0.IPv4 for mDNS.
Mar 15 15:16:49 linux-whdb avahi-daemon[1142]: Registering new address record for 192.168.1.29 on wlan0.IPv4.
Mar 15 15:16:50 linux-whdb ModemManager[1134]: <info>  Couldn't check support for device at '/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2': not supported by any plugin
Mar 15 15:16:50 linux-whdb avahi-daemon[1142]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::f68c:ebff:fe4f:3658.
Mar 15 15:16:50 linux-whdb avahi-daemon[1142]: New relevant interface wlan0.IPv6 for mDNS.
Mar 15 15:16:50 linux-whdb avahi-daemon[1142]: Registering new address record for fe80::f68c:ebff:fe4f:3658 on wlan0.*.
Mar 15 15:17:19 linux-whdb chronyd[1856]: Selected source 185.19.184.35
Mar 15 15:17:42 linux-whdb kwin_x11[2326]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 30752, resource id: 33554551, major code: 2 (ChangeWindowAttributes), minor code: 0
Mar 15 15:17:47 linux-whdb kwin_x11[2326]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32431, resource id: 73400320, major code: 18 (ChangeProperty), minor code: 0
Mar 15 15:17:47 linux-whdb kwin_x11[2326]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32435, resource id: 73400321, major code: 18 (ChangeProperty), minor code: 0
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]: Creating the cache for:  "/home/daniele/Desktop/wif"
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]: Already in database?  false
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]:       First update :  QDateTime(2020-03-15 15:17:49.000 CET Qt::TimeSpec(LocalTime))
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]:        Last update :  QDateTime(2020-03-15 15:17:49.000 CET Qt::TimeSpec(LocalTime))
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]: After the adjustment
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]:      Current score :  0
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]:       First update :  QDateTime(2020-03-15 15:17:49.894 CET Qt::TimeSpec(LocalTime))
Mar 15 15:17:49 linux-whdb kactivitymanagerd[2390]:        Last update :  QDateTime(2020-03-15 15:17:49.000 CET Qt::TimeSpec(LocalTime))
Mar 15 15:17:50 linux-whdb kactivitymanagerd[2390]:          New score :  0
Mar 15 15:17:50 linux-whdb kactivitymanagerd[2390]: ResourceScoreUpdated: "168853ea-a41d-4e0a-b5eb-da2faac8993c" "org.kde.kate" "/home/daniele/Desktop/wif"
Mar 15 15:17:50 linux-whdb plasmashell[2347]: KActivitiesStats( 0x55c890eb72d0 ) ResultModelPrivate::onResultScoreUpdated  result added: "/home/daniele/Desktop/wif" score: 0 last: 1584281869 first: 1584281869




Here it is

Thank you for the reply, yep, I just copied and pasted now using a pen-drive.

Just another info.

When I try to switch from wicked to NetworkManager and I press OK, I get a popup:

 No network running 

After many attempts I’m now able to make it connect via wicked if I plug off and plug in again the adapter.
No idea why it is working this way because in the general tab there is writte: at boot time. From my point of view it should have worked in this way if I had chosen “hot plut”… it doesn’t make sense. Now looking for a way to improve this, looking at least for a way to perform this re-load at boot time with a shell command… but still looking for the real reason why it’s not correctly working…

no network is running

Check whether networking is running, first by testing the service and if that returns errors or doesn’t work then individual network setting commands

systemctl status network


ip addr
ip route
nslookup

network is unreachable

Generally means that networking is running, but mis-configured
If you are on a network, and either just logged on or maybe returned from standby/hibernate and your network provides a DHCP server, then you can simply refresh your network settings by running the following command

systemctl restart network

HTH,
TSU

Thank you for your reply, I understand.

This is the output of the commands:


~> 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 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 10:60:4b:67:6f:a4 brd ff:ff:ff:ff:ff:ff
6: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether f4:8c:eb:4f:36:58 brd ff:ff:ff:ff:ff:ff




ip route
daniele@linux-whdb:~> 


daniele@linux-whdb:~> nslookup
> 

The network service is online. Unfortunately restarting the service didn’t have effect

The part I highlighted in RED indicates you don’t have an IP address.
If restarting the network didn’t work,
Then you’ll have to look at other reasons for why that didn’t work… For example, wireless authentication may be required again. If that is the case, then I might consider recommend re-logging into the wireless, perhaps scripting it so that you can connect with a single click. Or, maybe whatever you are doing (resuming from standby? from hibernation?) could use a command to re-initiate the wireless connection if you’re always connected to the same wireless.

TSU

Thank you again for your reply. All the commands have been executed without any resume from standby / hybernation. I’ve tried to re-initialize the wireless connection several times but no luck.

In the journalfctl output I’ve just noticed the following:


kernel: wlan1: authentication with 00:14:c1:0c:0f:5a timed out
wickedd-nanny[1185]: device wlan1: got signal linkDown
wickedd-nanny[1185]: wlan1: failed to bring up device, still continuing

That’s a fundamental problem.
Pls remind us that you are using either NM or Wicked to manage your networking,
But regardless which you may be using run the following command to attempt to address “link down”

ifup wlan1

Once the above command has been run, you should see successful “link up” status,
And you can resume testing the other commands and configurations mentioned earlier.

TSU

I am sorry for the late reply, I had login problems.
I managed to fix this problem by just updating the driver to the last version. Thank you again for everything