Command Line – How to Reset Network (Airport) Connections on MacBook

command linemacbookosx-snow-leopard

I have this MacBook Pro that has intermittent problems connecting to my WiFi network. Sometimes it helps to disable/re-enable Airport and sometimes I have to restart the computer to get my network running again.

Has anyone else experienced this? Are there any commands I can run that would do the same as I do when I restart the computer (short of actually restarting it, obviously) – or at least a command that restarts the Airport service?

Best Answer

Next time, try this from the command line:

sudo ifconfig en1 down
sudo ifconfig en1 up

This should bring your wireless interface down and then bring it back up.

Related Question