renew ip address in mac terminal code example Example: dhcp release mac os sudo ipconfig set en0 DHCP