DHCP release
9 juli 2010 - 13:45   
geplaatst door: fred44nl
een DHCP-server geeft voor een bepaalde tijd een IP-adres uit.
m'n Macbook denkt echter dat de tijd, dat het adres geldig is, langer is dan de DHCP-server.
hierdoor wordt "mijn" ip-adres te vroeg uitgegeven aan een andere client.
het gevolg is een ip-adres-conflict.
soms kan ik dit hier oplossen door handmatig een h ip-adres in te geven.
maar beter zou het zijn, als ik het ip-adres op m'n MB los kan laten.
dus DHCP-release.
daarna opnieuw verbinden, zou een ander ip-adres moeten opleveren.
alleen, hoe doe ik dat ??
 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
9 juli 2010 - 14:12    reactie #1
geplaatst door: Buibkier
In de netwerkinstellingen kun je de DHCP lease vernieuwen.

Systeemvoorkeuren >> Netwerk >> Geavanceerd >> Tabje TCP/IP.

Maarre... Lijkt het je niet verstandiger om er voor te zorgen dat je DHCP server goed ingesteld wordt?

"Life is what happens to you while you're busy making other plans" - John Lennon  (iMagine)
DHCP release
9 juli 2010 - 14:18    reactie #2
geplaatst door: fred44nl
tja, het is niet mijn dhcp-server, maar van de camping, waar we nu vertoeven :)
als ik de lease vernieuw, dan krijg ik de melding, dat het ip-adres door een ander in gebruik is.
dus wil ik mijn MB vertellen, dat hij het laatst gebruikte ip-adres moet vergeten en om een nieuwe moet vragen.
 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
9 juli 2010 - 15:40    reactie #3
geplaatst door: michelvdb
DHCP lease is een oud zeer in Mac OS X.

Citaat
The Mac OS X DHCP client sometimes send a DHCPDISCOVER message while in the DHCP BOUND state; it should do so only while in the DHCP INIT state. This behavior is not in compliance with RFC 2231 ("Dynamic Host Configuration Protocol").
Receipt of a DHCPDISCOVER from a client results in our DHCP server terminating the client's old DHCP lease, as a client may only send a DHCPDISCOVER when it is in the DHCP INIT state. However, the Mac OS X DHCP client sometimes ignores the new DHCPOFFER messages sent to it, and instead continues to use the IP address it has just abandoned by sending the DHCPDISCOVER. That is, it remains in (or returns to) the BOUND state for the old (abandoned) lease.

(If when the client sends the DHCPDISCOVER it really trying to perform "Detection of Network Attachment in IPv4 (DNAv4)", then what the clientis doing is also not in compliance with RFC 4436. As per that RFC, a device with an "operable address" should start in the DHCP INIT-REBOOT state and send a DHCPREQUEST.)

In this situation, when the Mac OS X DHCP client decides that the lease it imagines still belongs to it is due for DHCP RENEWAL, sometimes the DHCPREQUEST messages it sends are also malformed. Specifically, the DHCP 'Server IP Address Option' is 0, the DHCP 'Requested IP Address Option' is 0, and the 'ciaddr' field is 0. (There is no case where a DHCP client should send a DHCPREQUEST packet with that set of characteristics.) This is not in compliance with RFC 2231.

We have seen these problems in all versions of Mac OS X versions 10.4.2 through 10.5.0. (It's possible it was introduced earlier than 10.4.2, in version 10.4 or 10.4.1, and we only became aware of it starting in 10.4.2.) We have also seen it in 10.5.2 - 10.5.6 (although the DHCPREQUESTS are no longer malformed).

The result of the client's behavior is that sometimes Macs "steal" IP addresses no longer assigned for their use, interfering with service to other customers.

We refer to this as the "Mac OS X DHCP client sometimes remains BOUND after sending DHCPDISCOVER" bug.

We reported the problem to Apple; Apple looked into the matter, and responded that they believe that the Mac OX X DHCP client behaves correctly.

We sought opinions regarding this matter via the IETF DHCP Working Group mailing list. While there was some disagreement, the outcome of the discussion was that the DHCP client was not behaving in compliance with RFC 2231 and (if it is implementing DNAv4) RFC 4436.

We advised Apple of the outcome of that discussion. Apple indicated that they would again looking into the matter. Apple advised us that they believe the problem was corrected in version 10.5.1.

We have confirmed that versions 10.5.1 and later no longer send the malformed DHCPREQUEST packets described above. However, they continued to exhibit the rest of the problem.

We suspect that they are actually exhibiting a degenerate case of the "Mac OS X 10.5.x/iPhone OS 2.x running multiple simultaneous DHCP clients on a single network interface" described below.

It appears Apple addressed that issue starting in iPhone OS 3.0 and Mac OS X 10.6. And Apple has advised us that they believe the problem was addressed by the time Mac OS X version 10.6.3 was released.

The problem remains in Mac OS X 10.5.x.


The Mac OS X 10.5.x DHCP client sometimes behaves as if it is running multiple simultaneous DHCPv4 client instances on a single network interface. (That is, all the apparent instances are using the same DHCP Client Identifier.)
More details about this issue appears in Running Multiple Simultaneous DHCP Clients on a Single Network Interface Can Interfere With Service.

While not relevant to this document (which focuses on Mac OS X 10.5.x), we have also seen iPhones and iPods exhibit the same problem.

We refer to this as the "Mac OS X 10.5.x/iPhone OS 2.x running multiple simultaneous DHCP clients on a single network interface" bug.

We reported the issue to Apple in March 2009. We are not able to publish information about Apple's response to our report as Apple's response is protected by a "non-disclosure" clause.

However, without violating that non-disclosure clause, we can say that if one compares the source code Apple has published for the Mac OS X 10.5.8 and Mac OS X 10.6 clients, one of the changes is that in the newer code, the OS attempts to retain only a single IP address IP network at a time. (More accurately, if two leases have the same router IP and hardware address, Mac OS X 10.6 OS only retains one of the leases.) That change suggests that the problem may be resolved starting in Mac OS X 10.6. That would also imply it may be addressed starting in iPhone OS 3.0.

Beginning in May 2009, we started seeing a small number of cases where a Mac OS X 10.5.6 client resumes using an IP address that it had acquired via DHCP, well after that DHCP lease has expired.
The client continues to use DHCP to obtain lease(s) on other addresses which it uses, but it simultaneously uses the IP address from the expired lease as well. The Mac is not hung, and the problem continues across disconnects and reconnects, sleeps and wakes, at least until the device is rebooted.

We refer to this as the "Mac OS X 10.5.6 resumes using an IP address from an expired DHCP lease" bug.

For two instances where we were fortunate to have detailed logs available from the client, the client's logs mentions that the client's configd process was experiencing a "too many open files" issue.

We reported the issue to Apple in May 2009.

The Mac OS X 10.5 firewall feature has an optional setting called "Stealth Mode". By default, the "Stealth Mode" feature is disabled. Enabling "Stealth Mode" causes the Mac to stop responding to ICMP requests. This means, for example, that the Mac will no longer respond to PING requests.
You should leave the firewall's "Stealth Mode" feature disabled.

If your Mac were to not respond to PING requests, it would sometimes be harder to perform some troubleshooting when your Mac experiences a network problem.

Additionally if your device ever uses a dynamically-assigned IP address (for example, an OIT Mobile IP Address) that is not assigned for its use at the time, and your Mac were not responding to PING requests, it would increase the likelihook that the IP address your Mac is "stealing" will be assigned (by OIT DHCP Service) to another device at the same time, resulting an a number of problems.

For these reasons, you should leave the firewall's "Stealth Mode" feature disabled.

We see a small number (several each month) in which a Mac OS X 10.5.8 client continues using an IP address that it had acquired via DHCP, after the client has sent an explicit DHCPRELEASE.
The client continues to use DHCP to obtain lease(s) on other addresses (which it uses), but it simultaneously uses the IP address from the released lease at the same time. This continues regardless of whether the original expiration time of the released lease has passed.

The Mac is not hung, and the problem continues across disconnects and reconnects, sleeps and wakes, at least until the device is reconfigured to clear the network preferences.

Over time (e.g. days), the problem worsens. That is, eventually the Mac decides to explicitly release its (new) legitimate DHCP lease. From that point on, it continues to use two IP addresses from released leases, plus whatever new IP address it obtains via DHCP in the future. This continues to worsen (the number of stolen IP addresses grows) until positive action is taken to fix the device.

We refer to this as the "Mac OS X 10.5.x continues to use an IP address after sending a DHCPRELEASE" bug.

We are unsure as to whether this is related to the "Mac OS X 10.5.6 resumes using an IP address from an expired DHCP lease" bug described above.

We reported the issue to Apple in April 2010.


We leren hieruit dat Apple enkele RFC's vierkant aan zijn laars lapt. (En dan nog het lef hebben om Microsoft te beschuldigen geen standaarden te respecteren… Hoe is die spreuk over 'balk, splinter en oog' ook weer?)

(Bewerkt door michelvdb om 15:43, 9-07-2010)

DHCP release
9 juli 2010 - 16:04    reactie #4
geplaatst door: fred44nl
een interessantverhaal, maar is er dan geen commando, waarmee ik de verkregen leases kan loslaten ??
ik heb al zitten zoeken in de man van ifconfig, maar daarmee krijg ik het niet voor elkaar.
 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
9 juli 2010 - 16:05    reactie #5
geplaatst door: Esquare
We leren hier vooral uit dat het botweg knippen en plakken van een volkomen onleesbare brei informatie, die zo te zien alleen systemen vóór 10.6 betreft, totaal zinloos is en bij deze temperaturen vooral ergernis wekt.
Probleem? Check eerst de opstartschijf met Schijfhulpprogramma én SMART Utility.
En kijk ook eens op: discussions.apple.com,•• The X LabOSX Daily of Tuts+ •en vermijd 'handige tooltjes' als CleanMyMac, Onyx, MacKeeper of Monolingual.
DHCP release
9 juli 2010 - 16:06    reactie #6
geplaatst door: jack brent
@michelvdb, Begrijp ik het goed dat dit geen issue meer is in 10.6?
DHCP release
9 juli 2010 - 16:07    reactie #7
geplaatst door: jack brent
Och, ergernis is weer wat overdreven. Ik denk alleen dat TS er weinig aan heeft daar hij 10.6.4 draait.
DHCP release
9 juli 2010 - 16:09    reactie #8
geplaatst door: jack brent
DHCP release
9 juli 2010 - 16:10    reactie #9
geplaatst door: fred44nl

Citaat
Esquare om 16:05, 9-07-2010
We leren hier vooral uit dat het botweg knippen en plakken van een volkomen onleesbare brei informatie, die zo te zien alleen systemen vóór 10.6 betreft, totaal zinloos is en bij deze temperaturen vooral ergernis wekt.

hoe warm het ook moge zijn, ik maak me er niet druk om, hoor
't is maar goed dat ik ooit een cursus tcp/ip heb gevolgd.
dus kan ik goed zelf een handmatig ip-adresje instellen.

overigens draai ik os x 10.6.4

 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
9 juli 2010 - 16:12    reactie #10
geplaatst door: fred44nl

Citaat
jack brent om 16:09, 9-07-2010
@fred: Is dit wat voor je?

http://support.apple.com/kb/TS1920?viewlocale=en_US

die had ik al gezien en zorgt er voor, dat het huidige ip-adres wordt vernieuwd.
vroeger deed ik zo'n geval ipconfig /release
maar ja, dat was vroeger :)

 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
9 juli 2010 - 16:29    reactie #11
geplaatst door: michelvdb
ipconfig /renew of ipconfig /release commando's werken niet in OS X.

Dit commando werkt wel:

sudo ipconfig set interface-name DHCP
interface-name vervang je door en0 of en1 naargelang de naam van de actieve netwerkinterface.

Meer weten? IPCONFIG(8) BSD System Manager's Manual

Die als citaat geposte 'onleesbare-hap-kopieer-en-plakwerk' is nog altijd geldig voor elke OS X-versie ouder dan 10.6.x ;)

(Bewerkt door michelvdb om 16:32, 9-07-2010)

DHCP release
9 juli 2010 - 16:40    reactie #12
geplaatst door: fred44nl
oke, hier krijg ik  in ieder geval geen commentaar van terug.
als ik doe "sudo ipconfig set en0 DHCP", dan wordt m'n airport uitgeschakeld.
na inschakeling heb ik hetzelfde ip-adres gekregen.
dat kan heel goed correct zijn :)
dus wacht ik nu af, tot er weer een conflict ontstaat.

 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
10 juli 2010 - 16:59    reactie #13
geplaatst door: fred44nl
sinds het commando "sudo ipconfig set en0 DHCP" krijg ik feilloos steeds een ander nieuw ip-adres.
so far so good :)
 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina
DHCP release
12 juli 2010 - 11:15    reactie #14
geplaatst door: fred44nl
de afgelopen dagen, bij het inloggen, netjes een nieuw ip-adres gekregen.
vanmorgen opnieuw de melding, dat "mijn" ip-adres door een ander wordt gebruikt.
dat gebeurde niet tijdens het inloggen, maar gewoon tijdens internet-gebruik.
òf de dhcp-server hier werkt niet goed
òf er is iemand met een vast ingesteld ip-adres
niet zo erg dat je uitzoekt welke ip-adressen worden gebruikt,
maar kies dan iets bijna aan het einde van de reeks, of zo :)
 MacBook Air (2020) - 13" - i7 - 256 GB SSD -  Catalina