You are not logged in.

#1 2015-09-19 03:48:53

pandada8
Member
Registered: 2014-08-19
Posts: 2

[SOLVED]Cannot ping even with sudo

when I ping everything I got

ping: socket: Address family not supported by protocol (raw socket required by specified options).

the getcap shows /usr/bin/ping have right capabilities

$ getcap /usr/bin/ping
/usr/bin/ping = cap_net_raw+ep

and reinstall the iputils didn't help.
and there is no alias or extra options added
What wrong with that?

Last edited by pandada8 (2015-09-23 11:19:52)

Offline

#2 2015-09-19 05:16:02

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]Cannot ping even with sudo

Can you show your full ping command and its output?

Offline

#3 2015-09-19 05:18:00

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED]Cannot ping even with sudo

What command exactly did you use? Does it work if you use the option -4?
Please, see also this bug report https://bugs.archlinux.org/task/46297

--edit: too slow tongue

Last edited by mauritiusdadd (2015-09-19 05:18:42)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#4 2015-09-19 07:16:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [SOLVED]Cannot ping even with sudo

I've seen this before when restoring a system from a tarball.  Does reinstalling iputils fix it?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2015-09-19 07:18:15

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]Cannot ping even with sudo

The OP mentioned that reinstalling iputils didn't fix it.

Offline

#6 2015-09-19 11:38:37

pandada8
Member
Registered: 2014-08-19
Posts: 2

Re: [SOLVED]Cannot ping even with sudo

ping -4 solve the questions smile
I am going to alias ping as ping -4
thank you for help!

Offline

#7 2015-09-19 18:23:52

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: [SOLVED]Cannot ping even with sudo

You're welcome.
Please, remember also to mark the thread as solved: https://bbs.archlinux.org/viewtopic.php?id=130309

Last edited by mauritiusdadd (2015-09-19 18:24:11)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

Board footer

Powered by FluxBB