A SERVICE OF

logo

Chapter 5 Network Preferences 39
To enable or disable a port configuration:
$ sudo networksetup -setnetworkserviceenabled configuration (on|off)
Changing Configuration Precedence
To list the configuration order:
$ sudo networksetup -listnetworkserviceorder
The configurations are listed in the order that they’re tried when a network connection
is established. An asterisk (*) marks an inactive configuration.
To change the order of the port configurations:
$ sudo networksetup -ordernetworkservices config1 config2 [config3] [...]
TCP/IP Settings
Changing a Server’s IP Address
Changing a server’s IP address isn’t as simple as changing the TCP/IP settings. Address
information is set throughout the system when you set up the server. To make sure
that all the necessary changes are made, use the
changeip command.
To change a server’s IP address:
1 Run the changeip tool:
$ changeip [(directory|-)] old-ip new-ip [old-hostname new-hostname]
For more information or examples, see the man page.
2 Use the networksetup or serversetup command (or the Network pane of System
Preferences) to change the server’s IP address in its network settings.
3 Restart the server.
Parameter Description
directory
If the server is an Open Directory master or replica, or is connected
to a directory system, you must include the path to the directory
domain (directory node). For a standalone server, type “-” instead.
old-ip
The current IP address.
new-ip
The new IP address.
old-hostname
(optional) The current DNS host name of the server.
new-hostname
(optional) The new DNS host name of the server.
LL2354.book Page 39 Monday, October 20, 2003 9:47 AM