To change a server’s IP address:

1Run the changeip tool:

$ changeip [(directory-)]old-ip new-ip [old-hostname new-hostname]

Parameter

Description

directory

If the server is an Open Directory master or replica, or is connected

 

to a folder system, you must 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 DNS host name of the server.

 

 

new-hostname

(optional) The new DNS host name of the server.

 

 

See the changeip man page for more information and examples.

2Use the networksetup or serversetup tool (or the Network pane of System Preferences) to change the server’s IP address in its network settings.

3Restart the server.

To change the IP address of a computer hosting an LDAP master:

$ changeip /LDAPv3/127.0.0.1 192.0.0.12 192.0.1.10 oldhost newhost

It might still be necessary to change the configuration of computers pointing to this master.

To change the IP address of a standalone server:

$ changeip - 192.0.0.12 192.0.1.10 oldhost newhost

To change the IP address of a server bound to a parent NetInfo directory domain:

$ changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10 oldhost newhost

To change the IP address of a server bound to a parent NetInfo directory domain, where the old and new IP addresses map to the same name:

$ changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10

Viewing or Changing IP Address, Subnet Mask, or Router Address

You can use the serversetup and networksetup tools to change a computer’s TCP/IP settings.

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 66.

Chapter 6 Setting Network Preferences

67

Page 67
Image 67
Apple Mac OS X Server manual To change a server’s IP address, Run the changeip tool