Networksetup, Reverting to previous network settings, Networksetup 602 – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 602

602
Chapter 17
networksetup
Use networksetup to configure network services on a remote Mac OS X Server. A network
service is a complete collection of settings for a specific network hardware port. “Built-in
Ethernet” is an example of a network service.
You may have one or several network services for a given hardware port. With networksetup
you can
m enable or disable network services
m create new network services
m set the order of network services
m configure the TCP/IP options of the network services
m set other networking options for the services, such as proxy server information
To use networksetup, open Terminal on a server or administrator computer and open an SSH
session on the remote server whose preferences you want to set up. Type one of the
following commands to review complete information about networksetup:
m “networksetup -printcommands” displays all the available commands.
m “networksetup -help” displays commands plus explanations of them.
m “man networksetup” displays the most complete information, including examples.
Reverting to Previous Network Settings
When you change your network preference settings with networksetup, your previous
settings are saved to the com.apple.preferences.xml.old file located in
/var/db/SystemConfiguration/com.apple.preferences.xml.old
Note that if you make changes to network settings locally using Network preferences, the
settings in the com.apple.preferences.xml.old file will not match the settings you make using
networksetup.
If you want to revert to your previous settings, rename “com.apple.preferences.xml.old” as
“com.apple.preferences.xml” and then restart the server.
If network settings prevent you from accessing a server using SSH, log in to the server locally
as root and rename the file “com.apple.preferences.xml” (replacing the current file). Restart
the server to apply the settings.
LL0395.Book Page 602 Wednesday, November 20, 2002 11:44 AM