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
192.168.5.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.5.1 0.0.0.0 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 (192.168.5.1).
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 192.168.5.2, 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
192.168.5.1 gw gw.bogus.net