66

To change the order of the port configurations:

$ sudo networksetup -ordernetworkservices config1 config2 [config3] [...]

Managing TCP/IP Settings

TCP/IP is a set of layered protocols that allow shared applications between computers on a high-speed network. You can use the following commands to change the TCP/IP settings of a server.

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

changeip is a python script that runs tools out of the /usr/libexec/changeip folder. There are currently three tools available: changeip_ds, changeip_jabber, and

changeip_mail.

The changeip_ds tool updates the following local configuration files:

Â/Library/Preferences/DirectoryService/DSLDAPv3PlugInConfig.plist

Â/etc/openldap/slapd_macosxserver.conf

Â/etc/hostconfig (if there is a static hostname)

Â/etc/smb.conf

The changeip_ds tool also updates the following records in the local NetInfo directory domain, as well as a parent directory domain, if specified:

ÂAuthAuthority and HomeDirectory in user records

ÂAddresses and hostname in machine records

ÂAddresses and hostname in computer records

ÂMount paths and addresses in mount records

ÂAddresses in LDAP and Password Server config records

The changeip_jabber tool updates the jabber configuration using serveradmin.

The changeip_mail tool updates the mailman, postfix and imap configurations using

serveradmin.

Chapter 6 Setting Network Preferences

Page 66
Image 66
Apple Mac OS X Server manual Managing TCP/IP Settings, Changing a Server’s IP Address