Written by lotif the 20 Aug 10 at 19:51.
Related project: Network Manager.
Status: Already implemented
Rationale
Right now, if you manually set an IP in Ubuntu and if this IP is already registered in your network, or if somebody try to pick your IP by mistake or something, Ubuntu simply does nothing and let you without internet and without knowing what's going on. That's not right.
Darwin Survivor(Brainstorm moderator)
wrote on the 22 Aug 10 at 12:04
The problem with trying to detect another machine with the same IP (with say a ping) is that your machine would first need an IP for the other one to respond to. Unless there's something I'm missing here it sounds like a pretty big catch22.
If however there is a way to detect it, I *definitely* agree that a warning/error is called for.
The error message should also suggest ways the problem can be solved. For example by including a link that skips the static IP and tries to aquiere a IP via DHCP instead.
Darwin Survivor(Brainstorm moderator)
wrote on the 23 Aug 10 at 12:18
#lotif I think you may be thinking of detecting duplicate "names". Conflicting IP's are much harder to deal with since 2 machines can talk perfectly fine with each other at the IP layer as long as they don't rely on names to determine the other machine's IP address.
Well, I don't think so... If a package is addressed to an IP and this IP exists in two machines, to which one the router will deliver the package? At least in my empirical tests, when 2 machines have the same IP in the same subnet, one of them ends without an internet connection...
Anyway, tntricker showed us a pretty nice app that apparently does the job. I'll test it later and if it succeeds, i'll post as new solution to this idea...
When there's an IP conflict the router will throw an error, from then on it's behavior is undefined and is dependant on the router. Some routers will forward packets to both devices but it usually depends on which device sends an ARP response the fastest, or the one last stored in the routers ARP cache.
Do you think a lot of unexperienced people do know what that message means and what to do?
The problem will only happen when people have a problem with their router. Experienced users who setup manual ip-address might not find this a real problem, but this pop-up may help them. Although it does look good and clean but windows also pops up allot of messages...
I know unexperienced user will not know what this means. What I think is a wrong behavior is ubuntu tells nothing when something wrong is going wrong. If something is wrong somewhere, the OS should warn the user.
I suggest the following solution, which is the middle of SOLUTION#1 and SOLUTION#3:
By pressing FIX button:
1) If IP address has been assigned by DHCP server, than the IP address should be REASSIGNED by DHCP.
2) If a static IP has been assigned to the host, the OS should warn ALL THE TIME, that there is an IP conflict.
(just right now an idea has been rised: it will be cool, if under the STATIC IP configuration fields, have a network administrator contact information bar, and this information will rise with the IP CONFLICT message. It because network admin sets the static IP configuration in the host OS, and will also fill the CONTACT field, for such kind of situation).
In both situation I suggest, that the FIX button also disable and enable again network adapter.
Solution #7: what about DHCP exhaustion or countermeasures? is a comment not a solution.
cheesehead(Brainstorm admin)
wrote on the 15 Nov 10 at 13:06
The original Rationale (and Solution #1) is already implemented by the ipwatchd and ipwarchd-gnotify packages. Thanks to tntricker for pointing this out.
If it is already implemented by a third party app but ubuntu does not have this app by default, I don't think this should be marked as implemented in ubuntu.
cheesehead(Brainstorm admin)
wrote on the 10 Dec 10 at 13:25
The Rationale says nothing about including this feature by default. It only says the feature is lacking, and should be implemented.
I recommend a separate Idea for including those packages by default, since that's a different criteria. Be sure to do a bit of reasearch - the install CDs are already full and the Ubuntu Technical Board is constantly debating what can be removed or shrunk, so new packages should be small and provide a clear benefit to a large number of users.
There are several approaches to encourage after-initial-install use. For example, you can encourage use through a website with apt-url links.