Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

networksetup listallnetworkservices
Bluetooth DUN

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

share|improve this question

migrated from May 14 '11 at 13:34

This question came from our site for system and network administrators.

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)


enter image description here

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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