Renew DHCP address in your macOS from command line

From wikieduonline
Revision as of 07:34, 11 February 2020 by Welcome (talk | contribs)
Jump to navigation Jump to search

Renew DHCP address in your macOS from command line


Change en0 by the name of your interface and execute:

  • interface=en0 && sudo ipconfig set $interface BOOTP && sudo ipconfig set $interface DHCP && sleep 5 && sudo ipconfig getifaddr $interface


Related commands


See also

Advertising: