To turn off: networksetup -setairportpower en1 off and to turn back on: networksetup -setairportpower en1 on