I seem to have some kind of problem on my local network, for some reason /sbin/route takes a couple of seconds to run.

The first 2 lines takes approximately 0.1s before they show on the screen, but then the default route waits 2-5s before you can see it.

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     1      0        0 eth0
link-local      *          U     1000   0        0 eth0
default         UG    0      0        0 eth0

I cant really see why this occurs, since it is a small network with one router and two Ubuntu computers and a separate wlan access point (for my laptop).

The router is a Dlink DIR-100 and he takes care of the internet connection (

The computers are both running ubuntu (and gets ip-numbers from the dlink).

The wlan-router is a linksys WR54GL running tomato firmware and uses ip-number, and shares ip-number-series 192.168.6.x on the wireless side.

I can't really focus in on the problem, on what is wrong. I have looked on how the DIR-100 is configured and compared it with a friend that has a similar network setup at his house (but all looks the same).

Can somebody point me in the right direction? Why do I have that strange delay when running /sbin/route?

Thanks Albin

update: Thanks for pointing out that he tried to resolve the gateways ip number, I added that to /etc/hosts as a quick fix and it solved my problem.

This is what I added to /etc/hosts     gw      gw.bogus.net

Might be name resolv?

/sbin/route -n

will not try to lookup your ip's.

If this makes a difference, there might be a problem with how dns is setup, in your example it will try resolv into a name using the dns server that is configured. If this dns server is your ISP's dns server it will ofc fail to find name for a computer on the local network.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.