LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2022, 10:01 PM   #1
junefish
LQ Newbie
 
Registered: Jan 2022
Posts: 1

Rep: Reputation: 0
Question wifi connected but unable to ping,etc


I'm running Debian 9.13 (stretch) on a Pinebook Pro. Wifi worked when I first installed it, but I didn't use the laptop for a few months.

Now, I'm connected to wifi, but I can't do anything.
- If I try to do
Code:
sudo apt update
I get
Code:
Failed to fetch...Temporary failure resolving...
.
- If I try to ping a URL such as google.com, I get
Code:
Temporary failure in name resolution.
- If I try to ping DNS such as 1.1.1.1, I get
Code:
ping: sendmsg: operation not permitted.
- If I ping my gateway (192.168.0.1) it does work.

/etc/resolvconf contains:
Code:
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
It was empty so I added these manually and they persist on reboot and NetworkManager restart.

I'm at a total loss as to how to resolve this. Any help appreciated.
 
Old 01-22-2022, 12:49 AM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 561

Rep: Reputation: Disabled
iptables?
 
Old 01-22-2022, 11:50 AM   #3
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
Add your routers IP to the nameservers list
 
Old 01-22-2022, 12:21 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Since the OP can ping the gateway but not the internet I am guessing there is no route. Post the output of the command

ip r

I also assume that other devices on your home network can connect like the Windows 10 computer you are using to post to this forum.
 
Old 01-22-2022, 12:30 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Quote:
Originally Posted by Fearless Fred View Post
Add your routers IP to the nameservers list
Actually, make it FIRST in the nameservers list!
 
Old 01-22-2022, 01:51 PM   #6
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 561

Rep: Reputation: Disabled
You shouldn't really have to add the nameservers to resolvconf as your dhcp server (usually your home router) should provide your laptop with the dns servers.

Following on the instructions from users michaelk & wpeckham, as the root user also please provide the output of:
1. ifconfig
2. nslookup www.linuxquestions.org 8.8.8.8
3. rfkill list
4. iptables -L

Last edited by yvesjv; 01-22-2022 at 02:04 PM.
 
Old 01-22-2022, 09:08 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,313
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
I've found these steps useful in diagnosing such issues:

Test with a wired connection to verify that the machine is capable of network connectivity.

Ping a known internet ip address, such as 8.8.8.8 (that's a Google ip). If that gets a response and ping google.com doesn't, you likely have a DNS issue.

Use the traceroute command to both local and internet addresses. That will give you some idea where the connection is breaking. See man traceroute for more.

If you can ping neither a local nor an internet address, I'd be suspicious that it may be an issue with the wireless card itself.

Just a few thoughts.
 
Old 01-23-2022, 03:48 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
OP, please consider posts #6 and #7.
Additionally, there's no file called "/etc/resolvconf" - it's either "/etc/resolv.conf" or "/etc/resolvconf.conf".
But, as pointed out, neither should be required.
 
Old 01-27-2022, 03:18 AM   #9
beka
LQ Newbie
 
Registered: Dec 2021
Posts: 21

Rep: Reputation: Disabled
You can ping the gateway so the WiFi interface is good. If you have access to your gateway you should check if the gateway can access the Internet.

Best
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't ping external IP addresses or connect to internet although my WiFi says it's connected and I'm able to ping my router aa24577 Linux - Networking 4 04-20-2019 06:10 PM
network manager shows connected to wifi but ifconfig show connected to ethernet mia_tech Linux - General 10 12-16-2015 10:23 AM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
[SOLVED] Wifi Says Connected, but Can't Ping or Access Web - Mint10 gentisle Linux Mint 6 05-06-2012 03:22 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration