Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If you have a network and some devices with valid ips configured by either ipv4 local link, apipa, dnssd or zeroconf if you do reboot one of them.

Does the rebooted device get the same ip as before if nothing changes in the network?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Normally it should, according to this IETF draft. However, if for some reason any other device has claimed that address in the meantime, the device must choose a different address.

The automatic address generation needs some randomness, to avoid having all devices choosing the same address (or sequence of addresses). Therefore the mechanism needs a random number generator (RNG). The seed is some device-specific data to initialize the random number generation. A MAC address is a good candidate for this, because it's (supposed to be) unique for every network interface.

share|improve this answer
    
Hi and thx, i don´t get the part with the seed and the rng. So if nothing has changed the same seed is taken and produces the same number on the host? (like said nothing is changed in the network) –  Gobliins Sep 30 '12 at 12:41
    
Basically, yes. Updated my answer with some more explanation. –  Ansgar Wiechers Sep 30 '12 at 12:49
    
Ok thx. I try this out soon and will report. –  Gobliins Sep 30 '12 at 12:50
    
Like I said: normally they should. It's not guaranteed, though. –  Ansgar Wiechers Sep 30 '12 at 12:50
1  
AFAIK both DHCP server and client cache leases, so the client will keep the address, at least as long as it renews the lease before it expires. –  Ansgar Wiechers Sep 30 '12 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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