User`s guide
48 Chapter 5
Rename a Network Service
Use this command to rename the specified network service.
-renamenetworkservice <network service> <new network service name>
Example command:
networksetup -renamenetworkservice "Built-in Ethernet" "LocalLAN"
Delete a Network Service
Use this command to delete a network service.
-removenetworkservice <network service>
Example command:
networksetup -removenetworkservice "Built-in Ethernet2"
Note: You cannot use this command to delete the last remaining service for a hardware
port. To do so, you use the
-setnetworkserviceenabled command.
Turn a Network Service On or Off
Use this command to turn the specified network service on or off (enable or disable).
-setnetworkserviceenabled <network service> <on or off>
Example command:
networksetup -setnetworkserviceenabled "Built-in Ethernet" off
To turn AppleTalk on or off:
-setappletalk <network service> <on or off>
Example command:
networksetup -setappletalk "Built-in Ethernet" off
To turn passive FTP on or off:
-setpassiveftp <network service> <on or off>
Example command:
networksetup -setpassiveftp "Built-in Ethernet" on
Set the Order Network Services are Contacted
Use this command to designate the order network services are contacted on the specified
hardware port. Name the network you want contacted first, then the second, and so on.
-ordernetworkservices <service1> <service2> [...]
Example command:
networksetup -ordernetworkservices "Built-in Ethernet" "LocalLAN"
LL2133.book Page 48 Friday, May 24, 2002 11:17 AM