Technical article 103333

How do I change the system's name or IP address?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I want to change the system name or IP.  What are the different files
that need to be edited to effect this change?  What files need
to be changed if SCO TCP/IP is installed?

Solution

To change the system name:
(1)  Log in as root.
(2)  Modify the system name using the command:
uname -S newname

where "newname" is the new system name.

(3a) This step applies ONLY to SCO Open Server Release 5.0; if you have a version previous to 5.0, skip to (3b), below:

If you are running the "MMDF" Mail System then you can either:

1. Backup the existing configuration using:
# cd /usr/mmdf
# find mmdftailor table -print | cpio -ovc -O mmdf.orig.cpio

2. Make the changes to the MMDF files manually by:

# su - mmdf

Change using your favorite editor the configuration files there to the new name in /usr/mmdf/mmdftailor and the configuration files in /usr/mmdf/table.

3. Then re-build the MMDF database using:

# ./dbmbuild -nv

Alternatively, backup your MMDF database as step one above and run the command "mkdev mmdf" and change the host name at the top of the window.

(3b) For Release 3.0 and earlier:

Modify the node name in the kernel as follows:

a.  cd /etc/conf/cf.d
b.  ./configure
c.  Choose "10. System Name"
d.  Change the current value of NODE to "newname"
e.  Relink the kernel using ./link_unix

This will keep the nodename and the system name consistent.

IF you have MMDF configured, you will need to modify the files
in /usr/mmdf and /usr/mmdf/table to effect the change in system
name.  This procedure is outlined in another script in this
database TA106343 entitled, "Inconsistency in MMDF system name, and
how to change the system name".

For all releases, IF you have SCO TCP/IP or the ODT-NET Service installed and configured, continue by making the following changes:

(4)  Edit the file /etc/hosts and change the line corresponding
     to the old system name to read:
XXX.XXX.XXX.XXX         newname.company.COM newname

where "XXX.XXX.XXX.XXX" represents the IP address of this system newname in the new system name.

(5)  Edit the file /etc/default/nbconf and change the value of
     NB_HOST to read:
NB_HOST=newname
(6)  Edit the file /etc/default/tcp and change the value of
     DOMAIN to read:
DOMAIN=company.COM
(7)  Reboot the system.
To change the IP Address:
(1)  Either run "netconfig" and change the IP address information
     in the Protocol section and this will recommend a kernel relink.
or:

Change /etc/tcp and /etc/hosts with the new IP address

(2)  Change the IP address information in:
/etc/default/nbconf
/etc/default/tcp

For versions earlier to 5.0.6, there was no GATEWAY line, so it's likely a gateway route is set in /etc/rc2.d/S99gateway or /etc/idrc.d/gateway and should be changed if the gateway has changed.

(3)  Change any layered software, such as MMDF (above), DHCP config,
     Address Allocation ranges, DNS or any restrictions in software
     such as Netscape, Samba, AFPS or VisionFS that refer to IP
     address ranges.
(4)  Then reboot.

See also

uname(ADM)

From the Xinuos technical article database, record 103333. Reproduced with permission. The original is at www.sco.com/ta/103333, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.