Home Forums OS X Server and Client Discussion Open Directory FYI: Changing the IP address of the server

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #361267
    AllanMarcus
    Participant

    Did you know that when you change the IP address of the server you need to run a script called changeip </usr/sbin/changeip>? According to my rep at Apple this can help recolve OD errors before they turn into the dreaded -14002 errors!

    NAME
    changeip – Change IP adress related configuration.

    SYNOPSIS
    changeip [directory-node | -] old-ip new-ip [old-hostname new-hostname]

    DESCRIPTION
    changeip is used to update configuration records when a server’s IP
    address changes. It needs to be run by root on the machine who’s IP
    address is changing. If the machine is hosting a parent directory (Net-
    Info or LDAP) or is connected to a parent directory, then the Open Direc-
    tory path to the node must be used (eg /LDAPv3/192.12.0.43). Otherwise
    use a dash ("-") for the directory node argument. The tool may prompt
    for an admin user name and password for the directory node. After the
    tool has successfully completed, change the network settings in the Net-
    work Control Panel and reboot the server.

    EXAMPLES
    changeip /LDAPv3/127.0.0.1 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    machine hosting an LDAP master. Note that it might
    still be necessary to change the configuration of
    machines pointing to this master.

    changeip – 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    standalone server.

    changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10 oldhost newhost
    This would prepare for changing the address of a
    server bound to a parent NetInfo node.

    changeip /NetInfo/root/netinfonode 192.0.0.12 192.0.1.10
    Same as above, but where the old and new IP
    addresses map to the same name.

    FILES & FOLDERS
    /usr/sbin/changeip

    Mac OS X Server 21 February 2002 Mac OS X Server

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed