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 07-20-2004, 06:15 AM   #1
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Rep: Reputation: 16
Question loopback failure?


Hello,
I seem to have developed network problem with one of my boxes. After a reboot yesterday I started having troubles connecting to it through the network. I experimented to try and find where the problem lay but all I can think of is a loopback problem. Here is what I tested:

1. The box can ping other sites in the big wide world as well as on the LAN.
2. The box cannot ping either its own IP address or is loopback address
3. I am not able to ping or connect (ssh etc.) to the box from another machine.

I have emptied all the rules from iptables and set all the defaults to allow, so it should not be a firewall problem. The only other thing I can think of is that it is a faulty network card, but this seems unlikely because some things work ok, and the NIC isn't concerned with the protocol either. But just to be safe, I moved the NIC away from the (old) graphics card.

BTW. The NIC is a Netgear

I may have also had the problem a while back when the machine was running a install of RH8. I say "may", because I was at Uni (box was at home) then and all I knew was that I couldn’t connect to the machine for long random periods (and nor could any other machine on the LAN).

Many thanks for any help!


Radam

PS. Oh, and i'm running Mandrake 10.0 Official. And before the fateful restart i installed sendmail, but that is now removed and the problem is still there.

Last edited by radam; 07-20-2004 at 06:16 AM.
 
Old 07-20-2004, 06:22 AM   #2
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
Hello radam,

can you send screen of "ifconfig -a" command and "netstat -rn" of course hide your real ip address i suggested.


-------
lynOS
 
Old 07-20-2004, 06:37 AM   #3
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 16
Hi,

The result of "ifconfig -a" is:
eth0 Link encap:Ethernet HWaddr 00:A0:CC:7B:3B:EB
inet addr:90.0.0.76 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:ccff:fe7b:3beb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1082 errors:0 dropped:0 overruns:0 frame:0
TX packets:603 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:305831 (298.6 Kb) TX bytes:65928 (64.3 Kb)
Interrupt:10

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:1025 errors:0 dropped:0 overruns:0 frame:0
TX packets:1025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:85724 (83.7 Kb) TX bytes:85724 (83.7 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)


And "netstat -rn":
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
90.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 90.0.0.1 128.0.0.0 UG 0 0 0 eth0
128.0.0.0 90.0.0.1 128.0.0.0 UG 0 0 0 eth0
0.0.0.0 90.0.0.1 0.0.0.0 UG 0 0 0 eth0



Thanks for your help!

Radam

PS. I left my IP in as it is internal to the LAN
 
Old 07-20-2004, 07:10 AM   #4
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
It seems OK...

Type on the console

#ifdown eth0

than

#ifup eth0

after that try to access on another machine via ssh

(you can try to be sure iptables rule is empty " #iptables -F " to flush )

in other way is i think give another ip address on your network.

After that type

#service network restart
 
Old 07-20-2004, 07:18 AM   #5
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks. I have given all of those a go and it does not seem to have helped. I also noticed that my /etc/hosts.deny file contains the single line (+ comments):
ALL:ALL EXCEPT 127.0.0.1ENY

I dont realy know how this file is layed out, but is this denying the loopback interface? Just a guess. I have never looked at this file before so I do now know if this is odd.

Also, /etc/hosts contains only:
127.0.0.1 localhost

The /etc/hosts.allow file is empty


I am barking up the wrong tree here? I'm not realy sure.

Thanks
Radam
 
Old 07-20-2004, 07:29 AM   #6
lynos
Member
 
Registered: Mar 2004
Distribution: RedHat, Centos, Ubuntu
Posts: 52

Rep: Reputation: 15
OK

Take care

-------
lynOS
 
Old 07-20-2004, 07:48 AM   #7
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 16
Hi,
I tried that and it doesn't seem to have helped :-(

I commented out the line in my hosts.deny file, rebooted and still had the same problem. I'm struggling to see what the problem is here, if anyone could point me in the right direction that would be great.

Also, what is the linux command for a traceroute?

Radam
 
Old 07-20-2004, 08:04 AM   #8
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 16
Talking



It seems to be working now. Im guessing commenting that line helped. I checked on my other linux box and that line was not present. (Also, I must admit that I had not started sshd, which made connecting to it a little difficult!)

I dont know why that line was added to my hosts.deny file, its still a mystery. Actually, i still don't really know what the line means, if someone could tell me that would be great.

Thanks again


Radam

PS. I still cannot ping the loopback address, but I can make other connections on it. Considering that there is no firewall, isnt this a bit odd? Or could this be because the security level is set to "Higher"?
 
  


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
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
Serial loopback max76 Programming 2 10-14-2004 10:24 AM
PostScript failure result in printing failure cawwt Linux - General 2 10-01-2004 01:06 PM
loopback device praveenv Linux - Newbie 2 08-23-2004 07:27 AM
Loopback won't come up Paul_assheton Linux - Networking 8 05-20-2003 08:31 AM

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

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