Skip to content


Changing Mac OS X Server’s IP Address

Before running changeip, be sure you have updated the server’s hostname in DNS to match the hostname provided to changeip; otherwise errors will be logged in system.log, and services may not function properly.

How to Check Host Name using the -checkhostname command

Open a Terminal window and type:

sudo changeip -checkhostname

Enter your computer password and press return

The “Current” hostname and “DNS hostname” should “Match” If the “Current” hostname and “DNS hostname” Do Not match proceed with “changeip”

Mac OS X Server 10.4.6 and later include changes to the command line utility “changeip” such that you must now use a fully qualified domain name (FQDN) with the command.

Run the changeip tool:
$ sudo changeip [(directory|-)] old-ip new-ip [old-hostname new-hostname]

Parameters:

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.

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.

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.domain.com newhost.domain.com

Note: 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.domain.com newhost.domain.com

exit & restart

VN:F [1.9.3_1094]
Rate it
Rating: 3.0/5 (1 vote cast)
Changing Mac OS X Server's IP Address, 3.0 out of 5 based on 1 rating
Share it
  • Twitter
  • del.icio.us
  • Digg
  • Facebook
  • LinkedIn
  • DZone
  • Reddit
  • MySpace
  • Google Bookmarks
  • blogmarks
  • Sphinn
  • Mixx
  • HackerNews
  • Live
  • MSN Reporter
  • MyShare
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • PDF
  • email
  • Print

Posted in Networking.

Tagged with .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.



© 2009-2010 MISSION I.T. Corporation All Rights Reserved