I have just started picking up Ubuntu and have come across an issue I cannot seem to resolve. I have been using linux for a few days and it has been working fine. All of a sudden, today I was not able to connect to the internet.
I cannot connect to any website. It shows I am connected to my home's wireless network. My internet is working on other devices. In fact, I have both windows and linux on my machine and it is working on my windows machine. Firefox aside, even when i do ping google.com
, it returns ping: google.com: Temporary failure in name resolution
.
Here are some of the things I have tried/diagnosed but haven't worked:
- Updating software (cannot connect to internet so no updates)
- Restarting my computer
- Changing my DNS to 8.8.8.8 and 8.8.8.4
- Connecting to other wifi networks (can connect, but same issue of no internet)
nmcli dev status
returns:
DEVICE TYPE STATE CONNECTION
wlo1 wifi connected My Home Network
ipv6leakintrf0 dummy connected pvpn-ipv6leak-protection
docker0 bridge connected docker0
p2p-dev-wlo1 wifi-p2p disconnected --
enp... ethernet unavailable --
lo loopback unmanaged --
- Based on the
p2p-dev-wlo1 wifi-p2p disconnected --
portion above, I found this question Ubuntu 20.04 says that Wi-Fi is connected but doesn't allow me to connect to the internet . Similar to the person asking that, my default gateway is also 192.168.0.1. I changed it manually in the network settings window, but even then my default route and DNS remained the same i.e. 192.168.0.1. I tried changing it by first doing sudo route del default gw 192.168.0.1
and then sudo route add default gw 192.168.1.1
but my second operation was denied due to siocaddrt network is unreachable
.
- I have looked at several other questions about this issue but are not appropriate to my situation.
I am at a loss as to what else I can do. Any input is appreciated. I will try to answer the questions to the best of my ability. Thank you a lot in advance.
I am using ubuntu 20.04. My network controller is from Intel. ifconfig -a
gives me the following information for wlo1
(which is assume has to do with wireless):
wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.108 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::3a14:f4d:3085:1ee4 prefixlen 64 scopeid 0x20<link>
ether 40:ec:99:f7:a2:88 txqueuelen 1000 (Ethernet)
RX packets 419 bytes 35272 (35.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 138 bytes 20200 (20.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
EDIT:
Based on comments raised i did some further diagnostics.
The issue happens on both ethernet and wifi.
> ping -c4 192.168.0.1
4 packets transmitted, 3 received, 25% packet loss, time 3026ms rtt min/avg/max/mdev = 9.068/80.681/204.124/87.600 ms
> ip l | grep $(ip r | awk '/default/ {print $5}' ) | awk '{print $2, $4, $5}'
wk '{print $2, $4, $5}'
wlo1: mtu 1500
Note: I manually wrote most of the above outputs since my ubuntu machine doesn't have internet. So pardon me if there is an error.