The conversation on this page has been archived and is no longer active.

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

Message #1 - Posted 2003/06/13 - Bev A. Kupf

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

Bev A. Kupf
Bev's House of Pancakes

Message #2 - Posted 2003/06/13 - Cathy Stevenson

Previously, Bev A. Kupf 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

"there's a dance or two in the old dame yet." - mehitabel

C.Stevenson, M.D.
cats1921@sonic.net

Message #3 - Posted 2003/06/14 - Bev A. Kupf

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

Previously, Bev A. Kupf 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

Bev A. Kupf
Bev's House of Pancakes

Need Help? Have a Question?

Looking for more help, comments, and answers?

Ask your questions on Ask Different. Ask Different is a community of Apple users ready to help.