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 doingsudo route del default gw 192.168.0.1
and thensudo route add default gw 192.168.1.1
but my second operation was denied due tosiocaddrt 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.
rfkill
to check for a block? Try a LiveUSB's "Try Ubuntu" environment to see if there is any difference? – user535733 Nov 01 '21 at 12:53ping -c4 192.168.0.1
. Try both wired and wireless separately. I'm assuming that your router is at 192.168.0.1 from your output -- if the router actually has a different address, use the correct address instead. After four pings, the system will show you a summary. A good result is something like4 packets transmitted, 4 received, 0% packet loss, time 2004ms
– user535733 Nov 01 '21 at 13:084 packets transmitted, 3 received, 25% packet loss, time 3026ms
rtt min/avg/max/mdev = 9.068/80.681/204.124/87.600 ms
in both cases (apologize for delay, had to transfer the output over) – codingray Nov 01 '21 at 13:22sudo journalctl -b 0 -u NetworkManager
. Readman journalctl
. What's your WiFi MTU?ip link show
, orip l | grep $(ip r | awk '/default/ {print $5}' ) | awk '{print $2, $4, $5}'
. WiFi MTU should be 1492, not 1500 – waltinator Nov 01 '21 at 13:41