Renew DHCP address in your macOS from command line

From wikieduonline
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: