On FreeBSD/Linux, it is possible to restart network services by restarting a daemon.
Is there something similar in macOS Sierra?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
You can tear down and start up the network interface using:
sudo ifconfig en0 down sudo ifconfig en0 up
The restarts Wi-Fi without
sudo. Does anyone know how to do this with a single command?
networksetup -setairportpower en0 off networksetup -setairportpower en0 on