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 01-03-2005, 08:23 AM   #1
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
routing problem with dhcp and localhost


Hello everyone,
please help me set my network up correctly.

I recently changed my network setup to use dhcp (by acquiring a new router to take the place of the old hub and replacing the adsl-pppoe-setup with a dhcp-based one).

Ever since, I have had problems with slow application startup. It obviously has something to do with the new network since it coincided. I suspect there is a problem with the lookup of localhost as blocking the route to 127.0.0.1 (route add -net 127.0.0.1 netmask 255.255.255.255 reject) makes the symptoms go away. (Thanks to jdlcomputers, who gave me a hint to check my routing table). While I can at the moment work normally, I am quite certain that this is not the appropriate solution.

What could be wrong with my setup?
Would adding an appropriate loopback device to the routing table help?
Somehow I cannot associate an IP with the loopback device (I tried route add -net 127.0.0.1 netmask 255.255.255.255 dev lo, but it resulted in a SIOCADDRT: No such device).

What can I do to stop connections from trying to look up localhost? Or do it correctly?

Thanks for any suggestion,
- drowstar


A few file contents and outputs that might be interesting:
content of /etc/hosts:
127.0.0.1 localhost localhost.localdomain drow.localdomain drow
# IPV6 versions of localhost and co follow (omitted as it doesn't seem related)

content of /etc/resolv.conf:
nameserver 192.168.1.1 #the router, commented out or not doesnt make a difference
# two more nameservers supplied by my ISP

output of 'router -n':
Code:
127.0.0.1       -               255.255.255.255 !H    0      -        0 -
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
output of 'hostname -i':
127.0.0.1
I can ping my router and any outside internet address, but there's no way in pinging localhost: Before I blocked 127.0.0.1 it would result in 100% packet loss, now it responds with a connect: Network is unreachable (probably expected, right?).

You can see my previous posts on the same problem here:
- can't ping localhost, Internet works fine"
- using dhcpcd on gentoo slows down application startup in KDE.
Sorry for the repeated posts on this single problem. I found it appropriate to ask again since the problem is quite different from what I originally believed.

Thanks again!

Last edited by drowstar; 01-03-2005 at 08:27 AM.
 
  


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
DHCP and gateway routing problems (simple noob problem) michaelsanford Linux - Networking 4 04-13-2005 02:17 PM
dhcp ipmasq routing problem? ravenst1 Linux - Networking 0 08-27-2004 07:04 AM
interface ok, dhcp ok, routing gw not ok- help sokar Linux - Wireless Networking 4 02-04-2004 10:39 AM
DHCP Routing Question WeNdeL Linux - Networking 3 09-24-2003 12:18 PM
Redhat 9 and DHCP/Routing Morthoseph Linux - Networking 7 04-26-2003 05:41 PM

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

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