You are not logged in.
Pages: 1
Ever since a fairly large update I haven't been able to ping localhost. When I try to ping localhost or 127.0.0.1 it hangs.
dpayne19 ~ $ ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
/etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost dpayne19-laptop
# End of file
I don't know if this is related but "ping6 ::1" still works fine.
Last edited by dpayne19 (2009-04-22 19:15:12)
Offline
Ifconfig tells you the loopback interface is up?
This is a recent install (and recent update)? Did you check pacman's output for anything peculiar, any error messages in the various system logs?
Loopback device configuration has been taken out the central configuration script a while ago, so it should be set up automatically (and I've never seen it fail, even when one had to configure it in rc.conf, but there's always a first).
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I acutally had a problem connecting to localhost, and I solved it by adding the loopback adapter (lo) to the "interfaces" line in rc.conf.
Something like this:
...
INTERFACES=(!eth0 !wlan0 lo)
...
Offline
I added ::1 localhost "hostname" to /etc/hosts, but it didn't solve the ping problem, but mpd works again. I didn't have internet that entire day and thought it was related to that so once it started working I didn't pay further attention to it.
Offline
I've tried everything suggested and none if it works.
B:
I checked output from the update. I didn't notice anything about loopback or anything like that, but I may have missed something.
ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1002 errors:0 dropped:0 overruns:0 frame:0
TX packets:1002 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57072 (55.7 Kb) TX bytes:57072 (55.7 Kb)
alexandrite:
I tried adding lo to interfaces as well as trying to configure it in rc.conf with
...
lo="lo 127.0.0.1"
INTERFACES=(eth0 lo)
...
neither of those worked.
Procyon:
If I add
::1 localhost.localdoman localhost dpayne19-laptop
to /etc/hosts I can ping6 localhost, but I still can't ping localhost and mpd still doesn't work.
Last edited by dpayne19 (2009-04-22 02:22:59)
Offline
Are you using any firewall? iptables etc?
Offline
make sure your MODULES line in /etc/rc.conf has loop (i.e. MODULES=(loop)
Offline
Disabling iptables was the first thing I tried and it doesn't seem to have any effect.
loop is in the MODULES list and lsmod says it has been loaded.
Last edited by dpayne19 (2009-04-22 07:06:35)
Offline
make sure your MODULES line in /etc/rc.conf has loop (i.e. MODULES=(loop)
loop is used to mount files like block devices
☃ Snowman ☃
Offline
create another user profile and try again.
Offline
you should also check /etc/sysctl.conf for kicks. our stateful firewall wiki recommended adding this:
net.ipv4.icmp_echo_ignore_all = 1
which will make your box invisible to pings (secure!)
of course, with it you can't ping localhost either.
//github/
Offline
That was it, sorta. After removing
net.ipv4.icmp_echo_ignore_all = 1
from /etc/sysctl.conf I could ping localhost. Mpd still didn't work though, so I removed everything else suggested in the stateful firewall wiki and now everything works fine.
Thanks for all the help!
Offline
make sure your MODULES line in /etc/rc.conf has loop (i.e. MODULES=(loop)
That won't do a thing to networking... loop is for loop mounting files as devices, not loopback network interface.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
decaren wrote:make sure your MODULES line in /etc/rc.conf has loop (i.e. MODULES=(loop)
That won't do a thing to networking... loop is for loop mounting files as devices, not loopback network interface.
Someone should probably correct that in the beginner's guide then. I just remembered it from doing a bunch of installs and reading through the beginners guide a million times last week. Sorry.
Offline
Fixed.
MODULES=: Specify additional MODULES if you know that an important module is missing. If your system has any floppy drives, add "floppy". If you will be using loopback filesystems, add "loop". Also specify any blacklisted modules by prefixing them with a bang (!). Udev will be forced NOT to load blacklisted modules. In the example, the IPv6 module as well as the annoying pcspeaker are blacklisted.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Fixed.
MODULES=: Specify additional MODULES if you know that an important module is missing. If your system has any floppy drives, add "floppy". If you will be using loopback filesystems, add "loop". Also specify any blacklisted modules by prefixing them with a bang (!). Udev will be forced NOT to load blacklisted modules. In the example, the IPv6 module as well as the annoying pcspeaker are blacklisted.
Can u show us the output of ifconfig ?
Offline
fukawi2 ~ $ ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:276752 errors:0 dropped:0 overruns:0 frame:0
TX packets:276752 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:113634458 (108.3 Mb) TX bytes:113634458 (108.3 Mb)
What are you getting at?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1