Specifications

Chapter 6 Setting Network Preferences 69
To change a servers IP address:
1 Run the changeip tool:
$ sudo changeip [(
directory
|-)]
old-ip
new-ip
[
old-hostname
new-hostname
]
For more information, see the changeip man page.
Important: If you change your IP address and computer name using changeip while
you are connected to a directory server, you must disconnect and reconnect to the
directory server to update the directory with the new computer name and IP address.
If you do not disconnect and reconnect to the directory server, the directory is not
updated and continues to use the old computer name and IP address.
2 To change the servers IP address, use the networksetup or serversetup tool (or the
Network pane of System Preferences).
3 Restart the server.
To change the IP address of a computer hosting an LDAP master:
$ sudo changeip /LDAPv3/127.0.0.1 192.0.0.12 192.0.1.10 oldhost.example.com
newhost.example.com
It might be necessary to change the configuration of computers pointing to this
master.
To change the IP address of a standalone server:
$ sudo changeip - 192.0.0.12 192.0.1.10 oldhost.example.com
newhost.example.com
Viewing or Changing the IP Address, Subnet Mask, or Router Address
To change a computer’s TCP/IP settings, use the serversetup and networksetup tools.
Important: Changing a computer’s IP address isn’t as simple as changing the TCP/IP
settings. You must first run the changeip tool to make sure necessary changes are
made throughout the system. See “Changing a Server’s IP Address on page 68.
To list TCP/IP settings for a configuration:
$ sudo networksetup -getinfo "configuration"
Parameter Description
directory
If the server is an Open Directory master or replica, or is connected
to a folder system, include the path to the folder domain (folder
directory domain). For a standalone server, enter “-” instead.
old-ip
The current IP address.
new-ip
The new IP address.
old-hostname
(Optional) The current fully qualified DNS host name of the server.
new-hostname
(Optional) The new fully qualified DNS host name of the server.