Can I run command sudo ipconfig set en0 DHCP
as a standard user which shouldn't prompt for administrative username and password?
MacOS – Renew DHCP from the command line on a Mac
macosNetwork
macosNetwork
Can I run command sudo ipconfig set en0 DHCP
as a standard user which shouldn't prompt for administrative username and password?
Best Answer
Where
$if
is your network interface. For exampleen0
.To find which interface you want to reset, you can see the output of
ifconfig
.Or if you are lazy, you can just copy/paste this line, which will set
$if
to the interface which is used to access the Internet:So in the right order: