I have been scouring the net for over an hour and can't find an anwser as to how to create an Airport network service using the command line. If I use

networksetup listallnetworkservices
Bluetooth DUN
Ethernet
local

the airport service is obviously not there. If I use ARD and manually create the Airport service I see

networksetup listallnetworkservices
Bluetooth DUN
Ethernet
local
Airport

So the question is how to create it from the command line?

link|improve this question
feedback

migrated from serverfault.com May 14 '11 at 13:34

This question came from our site for system administrators and desktop support professionals.

1 Answer

up vote 2 down vote accepted

Use networksetup -createnetworkservice Foobar en1

Usage: networksetup -createnetworkservice <newnetworkservicename> <hardwareport>
Create a service named on port . The new service will be enabled by default.

(you might want to replace Foobar with AirPort though)

Result:

enter image description here

link|improve this answer
Some Macs don't use en1 for the wifi device. Check Apple documentation for your device. – Daniel Beck May 14 '11 at 14:02
Actually this worked quite well: networksetup -createnetworkservice Airport Airport – tgunr May 14 '11 at 18:38
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.