Help: OS X 10.2.6, PB G3, renewing DHCP lease after sleep

Bev A. Kupf wrote on :

I have a problem with a Powerbook/G3 running OS X 10.2.6 (also happened with earlier versions).

I have no trouble getting my IP address and configuration information via DHCP on either en0 (100baseT) or en1 (Airport) interfaces after a fresh reboot.

However, when the laptop is woken up from sleep, an IP address is not obtained via DHCP.

I have tried the following two things:

a) From a terminal window typing: sudo ipconfig set en0 BOOTP (or en1) sudo ipconfig set en0 DHCP This does not result in getting a new IP address

b) From the network preferences panel, disabling the en0 (or en1) interface, applying the changes, and then re-enabling it.

Neither of these work, and I don't have the same problem with either the ethernet or airport interface if I am using OS 9.2.2

I am looking with suggestions on how I can fix this, as I am tired of rebooting each time the computer goes to sleep.

Thank you, Bev

Cathy Stevenson replied on :

In article slrnbejt0q.le5.bevakupf@redacted.invalid, Bev A. Kupf bevakupf@redacted.invalid wrote:

I have a problem with a Powerbook/G3 running OS X 10.2.6 (also happened with earlier versions).

I have no trouble getting my IP address and configuration information via DHCP on either en0 (100baseT) or en1 (Airport) interfaces after a fresh reboot.

However, when the laptop is woken up from sleep, an IP address is not obtained via DHCP.

I have tried the following two things:

a) From a terminal window typing: sudo ipconfig set en0 BOOTP (or en1) sudo ipconfig set en0 DHCP This does not result in getting a new IP address

b) From the network preferences panel, disabling the en0 (or en1) interface, applying the changes, and then re-enabling it.

Neither of these work, and I don't have the same problem with either the ethernet or airport interface if I am using OS 9.2.2

I am looking with suggestions on how I can fix this, as I am tired of rebooting each time the computer goes to sleep. x I had the same problem with earlier versions of OSX - I think it went away for me with 10.2.4. Luckily, I was able to get around the problem using your "solution" b. There was a very long discussion of this problem at the Apple web site, with lots of workaround suggestions. Unfortunately, I have trashed my bookmark for this discussion - but, if it is still on the site, you can probably find it.

Cathy

Bev A. Kupf replied on :

On Fri, 13 Jun 2003 16:59:54 GMT, Cathy Stevenson (cats1921@redacted.invalid) wrote:

In article slrnbejt0q.le5.bevakupf@redacted.invalid, Bev A. Kupf bevakupf@redacted.invalid wrote:

I have no trouble getting my IP address and configuration information via DHCP on either en0 (100baseT) or en1 (Airport) interfaces after a fresh reboot.

However, when the laptop is woken up from sleep, an IP address is not obtained via DHCP.

I had the same problem with earlier versions of OSX - I think it went away for me with 10.2.4. Luckily, I was able to get around the problem using your "solution" b.

Hi Cathy,

Couldn't find the discussion on the Apple Web Site, but while mucking about, I came up with the solution -- to unload and reload the kernel extension for the ethernet or airport interface, and then do a DHCP request on the interface.

For the airport interface, the commands would be: sudo kextunload /System/Library/Extensions/AppleAirPort.kext sudo kextload /System/Library/Extensions/AppleAirPort.kext sudo ipconfig set en1 DHCP

Similar for the ethernet interface: sudo kextunload /System/Library/Extensions/AppleGMACEthernet.kext sudo kextload /System/Library/Extensions/AppleGMACEthernet.kext sudo ipconfig set en0 DHCP

Don't know if doing this decreases the stability of the system, but it works, and sure rebooting after waking from sleep. So far my PB G3 has been fine as well -- no reboots or crashes. One of the advantages of OS X using a modular kernel :-)

Bev