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


  Search this Thread
Old 06-26-2002, 09:13 AM   #1
LQ Newbie
Registered: Jun 2002
Posts: 3

Rep: Reputation: 0
Angry Can't ping localhost (ping: sendto: Operation not permitted)

This is my first post one what appears to be an excellent place for a newbie such as myself, so be nice :-)

I had a problem with a full hard drive which crashed my SuSE 7.1 Linux server. I have cleaned out the disk and sorted out the disk problems, but I am now faced with two network cards that fails to work.

If I ping localhost I get the error message

PING localhost ( data bytes
ping: sendto: Operation not permitted
ping: wrote localhost 64 chars, ret=-1

If I ping the interface I get

PING 56 data bytes
ping: sendto: Invalid argument
ping: wrote 64 chars, ret=-1

I am running IPTables, but also get this error message when I have removed all blocking....

Other things I have noticed is that I get the following in my boot.msg file

Setting up network device eth0
insmod: insmod: a module named eepro100 already exists
insmod: insmod: insmod eth0 failed

As of yet I cannot find any more error messages out of place !!!

I am now stuck and in need of further help.

Questions asked will be answered !!

Old 06-26-2002, 11:03 AM   #2
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
need to check your kernel
what is compiled in from netowrk devices (eth +loopback=>localhost)
Old 06-26-2002, 11:11 AM   #3
LQ Newbie
Registered: Jun 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Should be default

I believe it is ok. It worked until I had disk full problem.

Please can you tell me where to check for this ??
Old 06-27-2002, 11:51 AM   #4
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
Please paste the output of lsmod as well as ifconfig.

If the output of ifconfig does not contain anything about eth0, give the output of ifconfig -a instead (and tell us what you did).

Finally give us the contents of your /etc/modules.conf.

That should give us everything we need to find your problem.
Old 07-03-2002, 07:00 AM   #5
LQ Newbie
Registered: Jun 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Managed workaround

Thanks for your comments, but in the end I deleted the interface definitions and reinstalled the network cards. That seemed to fix the problem. Also changed IPTables rules to allow better control of traffic.

Many Thanks
Old 06-18-2003, 02:05 PM   #6
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
Similar Prob

Mr mentor99us

I have a similar prob, since i've put in iptables, it get
ping: sendmsg: Operation not permitted

my config is suppose allow all packets to leave the gateway, any specific rule i should put it?

Thanks to all
Old 06-19-2003, 01:53 PM   #7
Registered: Nov 2002
Location: us
Distribution: red hat
Posts: 143

Rep: Reputation: 15
try this

Old 09-05-2012, 03:11 PM   #8
LQ Newbie
Registered: Feb 2007
Posts: 5

Rep: Reputation: 0
Originally Posted by balam View Post
try this

thanks, that worked !


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 03:39 PM
ping: sendmsg: operation not permitted br_sriram Linux - Networking 24 04-03-2011 12:12 PM
Can't ping with XP, can't ping localhost bozoka45 Mandriva 4 06-13-2005 05:23 AM
MDK 9.2, Can't ping localhost but can ping outside world? JohnLocke Linux - Networking 2 07-01-2004 06:59 PM
? on not being able to ping localhost eroica Linux - Networking 13 04-01-2004 04:58 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:35 AM.

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