Hey everyone, I'm fairly new to Linux, having started about three months ago. This morning, when I booted up my PC, I found that the internet wasn't working. It seems to work fine on my phone, but on my PC, it only connects briefly right after I change or restart something. Does anyone have any ideas on how to troubleshoot this issue?
3 Answers
It's important to share a bit more context when asking for help. What Linux distribution are you using? What's your connection type? Are you seeing any indicator of connectivity in your desktop environment? Are local network devices accessible? Adding these details can really help people offer better assistance!
First, try pinging your localhost and an external IP to see where the issue might be. Use the commands: `ping 127.0.0.1` and `ping 1.1.1.1`. Also, use `dig google.com` to check DNS resolution. If there are any errors, check `journalctl -b -p err` for details. This will help you identify what’s going wrong with your connection.
I pinged both 1.1.1.1 and 127.0.0.1. The response time is about 10 to 20 ms for localhost and 90 ms for the external IP. Does that mean my connection is okay?
I connected to 1.1.1.1 instead of 8.8.8.8. It loads Steam's front page, but I'm having trouble with Firefox and other sites. What's `dig` and how do I access `journalctl`?
It looks like your connection works well enough to post here multiple times! But maybe you're connected through your phone's hotspot? Just check that you're not using Wi-Fi inadvertently.
I'm actually using my phone just for posting because my PC isn't connecting. I didn’t mean to post multiple times!
I’m on Linux Mint 22.1 Cinnamon, with Cinnamon version 6.5.8. My hardware includes an R5 5600 and an RTX 3070. I mentioned it's an Ethernet connection.