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.

link|improve this question
feedback

1 Answer

sudo ipconfig set en0 BOOTP <return>

sudo ipconfig set en0 DHCP <return>

Should do it.


Source: from macosxhints.com and itnetcentral.com

link|improve this answer
feedback

Your Answer

 
or
required, but never shown