LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2010, 12:32 AM   #1
Xerxeslins
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
I can not ping 127.0.0.1 on Slackware


Hello,

never experienced this problem before. Nothing on Google helped me.

When I run:

# Ping 127.0.0.1

Returns nothing. As if expecting an answer that never comes. Then press Ctr + C and returns:

--- 127.0.0.1 ping statistics ---
117 Transmitted packets, 0 received, 100% packet loss, time 116009ms

I use 3g modem connection configured with the command:

# pppsetup

The internet connection is normal. But without the ping localhost also can not open the settings for CUPS.

Here is my /etc/resolv.conf (if it helps in something):

google.com search
nameserver 8.8.8.8
nameserver 8.8.4.4

And here is my /etc/hosts:

# For loopbacking.
127.0.0.1 localhost
127.0.0.1 darkstar.slack.org darkstar

The response of the command "route":

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
* 255 255 255 255 10.64.64.64 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0

Responses to "ifconfig lo":

Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

I'd be very happy and grateful if someone with a good heart had a clue about what is causing this problem.

Thank you and sorry for my English.
 
Old 07-25-2010, 01:08 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Q: What does "ifconfig" say? Could you cut/paste the exact contents?

Q: What version of Slackware are you running?

Q: What does "iptables -L -n" say? Do you show any rules blocking ICMP (ping)?

Last edited by paulsm4; 07-25-2010 at 01:12 AM.
 
Old 07-25-2010, 01:29 AM   #3
Xerxeslins
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your interest! Very much.

I solved the problem by adding the following line to rc.local:


"ifconfig lo 127.0.0.1 netmask 255.0.0.0"

Slackware version 13.1.


Iptables:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
-----------------------------------
Thanks again!

I think the problem is the fact that the script "rc.inet1" which is in /etc/rc.d, was disabled.

=)

A big hug!
 
  


Reply

Tags
ping, slackware


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
I can't ping 127.0.0.1 (with open firewall) jsmith6 Slackware 16 07-24-2008 03:41 PM
Can not ping 127.0.0.1 dan0r Linux - Networking 12 06-15-2006 04:08 PM
FC4 won't ping 127.0.0.1 or the internet, but will ping local computers jalsk Linux - Networking 4 11-22-2005 05:59 PM
No ping replies on 127.0.0.1 zzero Linux - Networking 14 03-15-2004 10:17 AM
No ping 127.0.0.1 Spi Linux - Networking 11 07-18-2003 11:16 PM

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

All times are GMT -5. The time now is 08:00 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