Release/Renew IP Address via Terminal in OS X

Posted by Rupert on Super User See other posts from Super User or by Rupert
Published on 2009-12-23T16:37:17Z Indexed on 2012/09/21 15:42 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

I am looking to release and renew my IP address in OS X 10.4 using Terminal. Essentially, I need the OS X equivalent of Windows:

C:\> ipconfig /release
C:\> ipconfig /renew

However, I need the interface to remain active during this process, so using ifconfig down/up will not work. I believe I can clear the IP with ifconfig delete but I'm not sure how to get the dhcp client to reassign the address. An article from 2002 suggests using set dhcp but Apple's ifconfig man page does not include this information.

© Super User or respective owner

Related posts about osx

Related posts about command-line