Renew DHCP address in your macOS from command line

From wikieduonline
Revision as of 12:58, 17 August 2020 by Welcome (talk | contribs) (→‎Related commands)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[edit]

See also[edit]

Advertising: