28
16
I am looking to release and renew my IP address in OS X 10.4 (Tiger) 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 address with ifconfig <interface> 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.
2To view a list of the <network service names> you can use
networksetup -listnetworkserviceorder
– David Graham – 2014-08-06T04:17:33.223This was perfect. When doing it via ipconfig it was renewing DHCP and I did have internet connectivity, though the computer thought differently. With using networksetup it seems to have fixed all of that. – molson504x – 2018-02-02T15:43:56.987