running dclient makes gnome and kde slow
(I was wondering if this should go under the wireless networking topic, but I think it's a generic dhclient problem, so I'm posting it here.)
Whenever I run "dhclient" after bootup, suddenly everything under Gnome and KDE becomes lagged to the point of being unusable (I suspect it is waiting for network timeouts on something because it seems to take exactly 2 minutes to unfreeze applications, and 2 minutes is the typical network timeout.) At first I thought this was a problem with the wireless ndiswrapper driver, but it also happens when the wireless network is off (and ndiswrapper is even "rmmod"-ed) and I'm using the ethernet RJ45 jack ("eth0") as my network connection.
Basicaly, these are the steps that will recreate the problem for me:
1 - I have no network connection when I first power the computer on (cable unplugged, and no wireless transmitter in the vacinity)
2 - After the computer is up, I plug in the network cable, or activate the wireless card (either one has the same problem).
3 - I run dhclient, it appears to work nicely and doesn't complain. It establishes an IP address for me. Checking ''netstat -rn' shows that I do have a route out to the outside world that should in theory work. Pinging someone else's IP address also works. I *do* notice, however, that my hostname is still set to "localhost" instead of the DHCP-assigned floating hostname (which should be something like dchp12345.ourdomain.com) - could this be the problem?
4 - From now on, any GUI program I try to launch in either Gnome or KDE will take 2 minutes to finally show up on the screen. Furthermore, any time I attempt to type a value into a form in mozilla, mozilla will now hang for a short while and then KDE will show me a message that says the application is not responding and do I want to kill it or not...
5 - if I run "/etc/init.d/network stop" to turn off all networking setups, then the delay goes away and programs behave correctly again, but of course I have no network connection.
Does anyone have a clue where I should be looking to solve this problem? I assume my network setup scripts are configured wrongly, but I don't know how.
And, again, I'd like to point out that dhcp DOES work correctly if I have the network connection plugged in when I first boot the computer, and none of these problems appear. It is only when I try to activate it after bootup that these problems appear.
I realize my post doesn't give much information, but that's because I don't know what information is relevant. If you need more data from me, let me know and I'll post it.