Sponsored by HTC
You and You and You. view!
youtube.com - You don’t need to get a phone. You need a phone that gets you.
43 Comments
- wolrah, on 10/12/2007, -1/+7"who runs linux and doesn't understand they need to get a new ip when they change networks? typing "dhcpcd eth0" is so hard...."
regardless, it's a pain in the ass that shouldn't need to happen. it should be just like how Windows and Mac OS do it where DHCP is set up when a cable is detected on a network interface configured for DHCP.
Also, I hope this new client solves the problem where if you're unplugged it'll stall during booting until DHCP times out. I have 4 network interfaces which all come up fast when I'm at my desk and plugged in, but if I'm unplugged I can go make a cup of coffee before DHCP times out. - acidzebra, on 10/12/2007, -0/+4"windows already does this automagically "
I couldn't begin to count the amount of times where I have seen windows 2000/XP clients fudge this.
And to the guy who said:
"I hope this new client solves the problem where if you're unplugged it'll stall during booting until DHCP times out"
If you run a desktop linux only I suggest you change the network conf to background the net config so the machine goes on starting the rest of the services. Mind that if you actually run some servers they will become mighty confused. - qypea, on 10/12/2007, -0/+1Wasn't that the purpose of ifplugd? That's always been what I've used it for.
- blhack, on 10/12/2007, -0/+1i'll give you a hint...ready?
ready?
.
.
.
.
ready?
..
.
rc-update add ifplugd default
if you unplug your ethernet, the iface goes down, and the DHCP lease goes away, plug it back in, and guess what? It dhcps, and the interface comes back up. - PacoBell, on 10/12/2007, -0/+1You lose for spelling "ridiculous" like that =P
- GrendelT, on 10/12/2007, -0/+1How much network overhead does it create? I'm guessing it beacons DHCP requests...
- mattclare, on 10/12/2007, -0/+1"who runs linux and doesn't understand they need to get a new ip when they change networks? typing "dhcpcd eth0" is so hard...."
Good point, because the goal of the Linux community is to have less people using it and ensure that it's not useful in most situations. - swilly, on 10/12/2007, -0/+1I run a program called ifplugd....
If I manually unplug my ethernet cord it automatically releases my ip, and if I plug it in somewhere else it will renew it.
The cool thing about the program is that it acts much as wireless management tools for windows in the sense that you can set it to automatically grab an ip for any wireless networks in range, which saves you from all the "iwconfig essid myap" stuff.
Nothing new to see here people... move along. - PacoBell, on 10/12/2007, -0/+1Obviously not you, so FO.
- sporty, on 10/12/2007, -0/+0I'm not sure if windows really does it. My only anecdotal evidence is, I plug in my laptop, turn on my wifi too, and it takes quite a while for it to pickup the two new addresses to both interfaces. I'll have to sniff to see if dhcp requests are going out as soon as the interfaces are enabled/plugged in or if it's just hte heartbeat DHCP thing.
- BitwiseMcgee, on 10/12/2007, -0/+0wolrah: you do know that the timeout for that is configurable right? you should be able to set it to a rather low number that will be able to satisfy both needs.
Or, just use static ips if you can - bluehouse, on 10/12/2007, -0/+0I'm with CrazyZ... It boggles the mind that Linux users have to go through this.
- Plugh, on 10/12/2007, -0/+0On OS X I found I could define a whole bunch of network locations for different environments where I might use my laptop.
Soon after that, I discovered I didn't need to.
I deleted them all and have left the network configuration on "Automatic" for two and a half years on three continents. I only reboot once every couple of months, and the dhcp client always keeps up with me. - adml_shake, on 10/12/2007, -0/+0"Also, I hope this new client solves the problem where if you're unplugged it'll stall during booting until DHCP times out. I have 4 network interfaces which all come up fast when I'm at my desk and plugged in, but if I'm unplugged I can go make a cup of coffee before DHCP times out."
Dear god yes, this buggs me to no end.
""windows already does this automagically "
I couldn't begin to count the amount of times where I have seen windows 2000/XP clients fudge this.""
Yeah but I'll bet money you've seen it work RIGHT far more times than you have seen it screw up. - Tekmazter, on 10/12/2007, -0/+0personally I think the title is wrong --there is no connection to a DHCP server other than when aquiring an address and or renewing etc...
The only thing the DHCP server does is provide the address and the dhcp client only attempts to even look (broadcast) the packets if it drops its network connection or when it's current lease is expiring ...
In this case the DHCP client doesn't detect when it's lost its connection to the DHCP server ... that's rediculous and shows how much the person who posted this knows about DHCP. - tophfisher, on 10/12/2007, -0/+0wolrah:
Hit Control+C and you can kill boot scripts, it will skip it and move on - KAMI_no_kodomo, on 10/12/2007, -0/+0I use linux all days on my laptop. I yust hibernate him. Wake him up in a new network and that yust work fine. whitout my interaction.
So i don't see the point... - TA_Superman, on 10/12/2007, -0/+0Heh SuSE 10.0 already has a feature like this using Gnome NetworkManager, it will look for any available connection on startup and on a disconnect. Probably the single reason why I use SuSE over ubuntu, also it has WPA functionality built in
- bigsteve, on 10/12/2007, -0/+0In the case of wireless, auto DHCP can be a security issue. If someone is hosting a nosey AP that is named the same as all the other AP's around it [ex. at a university] and passes traffic you generate onto the internet, but holds onto packets and listens for unsecured passwords and the like. Most users would be oblivious.
- badler161, on 10/12/2007, -0/+0I've had this problem before. At the time, it was hard for me to think that this feature wasn't already built into the kernel.. or a least a way to turn the feature on/off. This feature will definitely help the users who moving from a OS X or the Windows OS.
- stubby, on 10/12/2007, -0/+0heh, the gentoo /etc/conf.d/net already handles this for you. I haven't actually looked into it on ubuntu but i will the next time i reinstall something on my laptop
- devnullius, on 10/12/2007, -0/+0dhcp normally would renegotiate settings - by itself by asking (offline) host OR by online (coming) host asking to server "am I ok?".
This behaviour is OS independent, it's DHCP dependent. - mentor, on 10/12/2007, -0/+0ifplugd, waproamd, etc. Am I missing something?
- fsanders, on 10/12/2007, -0/+0"Hmm. I never had a problem with this using Debian. With Gentoo (which I've used for about three years now), the situation just hasn't come up. Either that or I didn't have this problem. Weird."
My laptop running Ubuntu which is set to use DHCP doesn't have any problem automatically reconnecting either. I disconnect and reconnect it all the time. - dipswitch, on 10/12/2007, -0/+0"who runs linux and doesn't understand they need to get a new ip when they change networks? typing "dhcpcd eth0" is so hard...."
That's overly harsh on anyone running GNU/Linux but not actually *interested* in it. Gnome has a nice applet that makes this much easier.
"Heh SuSE 10.0 already has a feature like this using Gnome NetworkManager, it will look for any available connection on startup and on a disconnect. Probably the single reason why I use SuSE over ubuntu, also it has WPA functionality built in"
Ubuntu DOES support WPA, and it DOES have the network manager. Dapper also has nm-applet. It'll hit a torrent and ftp server near you 20th of April IIRC. - kalisphoenix, on 10/12/2007, -0/+0Hmm. I never had a problem with this using Debian. With Gentoo (which I've used for about three years now), the situation just hasn't come up. Either that or I didn't have this problem. Weird.
- counsel, on 10/12/2007, -0/+0So...
a resident program (overhead?) that monitors your connection and 'dhcpcd eth0's on its own (so you don't have to) in case your distrubution has 'this problem.' Yes, programming genius... - mcgrew, on 10/12/2007, -0/+0Personally I hate the way windows randomly changes access points sometimes. I like the fact that linux doesn't give up on an access point when the signal is weak.
- Tripmoneyuk, on 10/12/2007, -0/+0I can honestly say that i've had tons more trouble connecting to networks through Windows than Linux, especially with Windows not aquiring a DHCP network address.
WiFi is just starting to get support & pick up speed on Linux & swapping WiFi networks would be far easier with this though.
Good stuff! - DrDabbles, on 10/12/2007, -0/+0Okay, before everyone says "My OS does this already" here are some facts...
Windows starts networking in PARALLEL with other services. If you have an IP or not, your network services start. This means some services will pause while the interface is waiting for an IP. Because the GUI is already running, the user has no idea.
Linux (*NIX), however, is a different story. It's not better, maybe it's worse. I don't know. The point is, it's different. *NIX OSs have always had a network-centric lifestyle- they have always consumed or provided network services. Therefore, you want your network to be up before you try to consume or provide. On top of that, *NIX's typically evolve painfully slowly. This is good in some areas- stability, longevity, etc. However, in the arena of system start-up, we all know how bad it can be. That is changing, though, with several parallel init systems- the starting of the GUI as soon as possible, and other optimizations.
As to DHCP delaying start-up, you can change that. Background the DHCP client daemon and you're off to the races. Hackish? Yes. More than that, if you do not get an IP later services will fail. Think of your system syncing its clock with pool.ntp.org without DNS or and IP. Obvious problem. - rinnan, on 10/12/2007, -0/+0Well, this seems to work fine for me. I'm running on Kororaa Linux, which is a (pre-compiled) variation of Gentoo. When I unplug my ethernet cable, or shut off my cable-modem and restart everything, it all just works. I suppose this might be handled somewhere else in the distribution rather than depending directly on dhcpd. One way or another, though, it works exactly as it should (connection is reestablished, everything works). I've never seen (in recent memory) Linux fail at this, either Ubuntu or Kororaa. My wife's XP machine also usually doesn't fail, but will sometimes if she unplugs her wireless and plugs it back in (maybe one of out five times).
- evil-doer, on 10/12/2007, -0/+0since a lot of people are talking about windows here too, let me ask.
on my laptop ive gotta manually turn the wireless off if i want to use a wired connection. theres a adapters and bindings list thats SUPPOSED to choose the order of preference, but it doesnt seem to work. windows always uses the wireless if its there. if there ANY way to have windows choose wired over wireless if both are present?? - hordak, on 10/12/2007, -0/+0say bye to #rcnetwork restart
:) :) - stubby, on 10/12/2007, -0/+0fsanders: good to hear, I've only ran ubuntu as a desktop so far and I like it a lot. I was expecting to dislike it compared to gentoo's portage system that I've come to really enjoy. I'll have to give it a shot on a laptop one of these days.
- saruman7, on 10/12/2007, -1/+0Yeah - windows already does this automagically when you plug into a new network. If Linux doesn't do this already, by default, then it is way behind the game.
- v3xt0r, on 10/12/2007, -1/+0FUD
- zubov, on 10/12/2007, -2/+0who runs linux and doesn't understand they need to get a new ip when they change networks? typing "dhcpcd eth0" is so hard....
- drunkJerkface, on 10/12/2007, -2/+0so what?
- inactive, on 10/12/2007, -2/+0Having an intelligent dhcp client is so hard? I can't believe linux dhcp client couldn't do this.
- funkytaco, on 10/12/2007, -3/+0Oh lord.
- dirtyfratboy, on 10/12/2007, -3/+0nice... 17 diggs to front page
- inkhead, on 10/12/2007, -4/+0WOW SO REVOLUTIONARY. ..... OH WAIT... OS X has used this for the last 7 years. Not only that OS 9 (10ish years ago and farther had this feature).
- diggnationdevon, on 10/12/2007, -5/+0who cares


What is Digg?