Is there a command in Jag to release and renew a DHCP IP?
I would love to know if there is a Terminal command (or an app for that matter) that will let me both release and renew a DHCP address if needed. Windows has used this feature in the wincfg application for a long time. Does BSD/Darwin (or UNIX in gerneral) have a similar feature? I wish it was in the Network System Preference panel...
[ 09-26-2002: Message edited by: dstranathan ]</p>
[ 09-26-2002: Message edited by: dstranathan ]</p>
Comments
System Preferences > Network
From Show, choose Network Port Configurations and uncheck your ethernet card/port ('Built-in Ethernet' or what-have-you).
Click Apply Now.
Re-check your ethernet card/port and again click Apply Now.
What this should do is force a DHCP renewal.
Hope this helps (works).
Screed
[ 09-26-2002: Message edited by: sCreeD ]</p>
(man cron gives:
"cron: a daemon to execute scheduled commands")
currently i always need to toggle two settings, such as manual/apply, then, immediately dhcp/apply. this usually does it.
i am not sure why this actually works however, since the so called lease is for 10 minutes, and i thought that 10 minutes would refer to a period of 10 minutes needed between an expired lease and the ability to get a new one.
anyway, it does work if you toggle it in the way I have advised.
In the lab setting, in OS 9, I've set/scheduled some of the iMacs to shut down after the lab closes at night and restart in the morning before the lab opens, in the process grabbing a new DHCP/IP address.
Changing IP settings (e.g. between manual and DHCP) has worked well for me. But it is admittedly not an elegant solution. It's really a shame that integration with Windows NT networks in Jaguar is still not perfect.
Escher
[code] sudo ifconfig en0 down </pre><hr></blockquote>
then
[code] sudo ifconfig en0 up </pre><hr></blockquote>
<strong>Wouldn't surprise me if this was cron/Applescriptable. However I have no idea how cron or Mac OS X Applescript work .
(man cron gives:
"cron: a daemon to execute scheduled commands")</strong><hr></blockquote>
wtf? cron executes scripts at a given time... dstranthan doesn't even mention wanting to do this on a scheduled basis...