Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

1 Answer 1

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

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

 
discard

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.