How to Reboot Networking on Mac from CLI
If you need to reboot, or restart the networking interface on your Mac, by using the CLI, then you can issue the following commands:
Using the ifconfig
primary interface
Tear down the networking interface
|
|
Restart the networking interface
|
|
Verify the networking restart
|
|
Alternative without sudo
, using networksetup
If you need to perform the same result, but not able to run sudo
, then look to the networksetup
.
Tear down the networking interface
Restart the networking interface
For more information
For more information on the above commands, take a look at the man pages.