Technical article 105779

How to change your server's IP address, netmask, or broadcast?

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

Written · Last revised

Problem

I need to change the IP address, netmask, or broadcast of my SCO OpenServer 5.0.x server. How do I do this and what caveats should I be aware of?

Solution

Modify "netconfig"
------------------
To update your 5.0.x server's IP address, netmask, or broadcast, use
the Network Configuration Manager.  From the desktop, open the System
Administration folder, click on the Networks folder, then the Network
Configuration Manager icon.  Or, from the command line, type
netconfig(ADM).  Under the Network Interface Card you want to change,
highlight SCO TCP/IP, then from the Protocol menu on the top menu
bar, choose "Modify Protocol Configuration".
The current configuration information will be displayed.  Update the
IP address field (and any other fields that need updating), then
click the OK button at the bottom of the window.  You will see a
message box saying the configuration was successfully updated.  Click
OK on this box, and exit the Network Configuration Manager.
You will be prompted to relink the kernel.  Choose yes to relinking
the kernel, booting on the new kernel by default, and rebuilding the
kernel environment.

It is, however, not necessary to actually relink the kernel as the IP address is not stored in the kernel.

Visit /etc/hosts:
----------------
Next, use your favorite text editor to modify the /etc/hosts file to
reflect your system's new IP address.

Ensure you enter the entry in the format of:

<new_ip_address> <server></server>.fqdn <server></server>

Where "fqdn" is the fully qualified domain name.

Otherwise, you may receive portmapper errors as defined in:

Technical Article #102428, "Receiving "WARNING: portmapper on server [IP] is not responding" or "WARNING: NLM: RPC call failed: RPC_PMAPFAILURE".

File&Print Sharing:
------------------
If you are using a File&Print sharing application on your server such
as AFPS, Samba or VisionFS, check the appropriate configuration files
to ensure that the new IP address change is relevant.  For example:
/etc/lmhosts, "smb.conf" and /etc/default/nbconf.
Reboot:
------
To reboot the system, type:
# shutdown -g0 -y
DNS:
---
You will need to make changes to the primary nameserver that handles
name resolution for your domain.  If your server is the primary
nameserver, you will need to update the named configuration files to
reflect the new IP address of your machine (see chapter 6 of the SCO
OpenServer Networking Guide).
Other Servers:
-------------
Because other machines on the Network may have your old IP address
stored in their files (for example, /etc/hosts, /etc/resolv.conf,
etc/networks and so on) you will want to alias the old IP address
to the new one while you notify and update other machines to
reflect your machine's new IP address.  To do this, log in as root
and determine your network interface name (usually net0) with the
ifconfig(ADMN) command:
# ifconfig -a
You will see output like:
net0:flags=4043<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
     inet 206.123.34.25 netmask ffffff00 broadcast 206.123.34.255
     perf.params: recv size:24576;send size:24576;full-size frames:1
     ether 00:00:c0:6a:74
lo0:flags=4049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
    inet 127.0.0.1 netmask 7f000000
    perf.params: recv size:57344;send size:57344;full-size frames:1
The network interface name is in the left-most column.  You will see
your system's IP address in the "inet" field. Use the network
interface name (net0 in this example) to alias the old IP address to
the network interface with this command:
# ifconfig net0 alias <old IP addr> netmask <old netmask> broadcast
<old broadcast>
Be prompt and thorough in notifying other system administrators
about your change of IP address.  Once the changes have been made
on other systems, you can remove the alias interface with this
command:
# ifconfig net0 -alias <old IP addr>
NOTES:    The alias interface configuration will be lost when the system is
          rebooted.  You may want to add the creation of the alias interface
          to your start up script until all systems are updated with your new
          IP address.
Use the following "find" command to check all system files for the
old hostname and the old IP address.  Edit the files accordingly:
# find / -type f -exec fgrep -l '<old hostname>' {} \; >/tmp/namelist
# find / -type f -exec fgrep -l '<old ip-addr>' {} \; >/tmp/iplist

See also

manual pages: ifconfig(ADMN), netconfig(ADM)

ta102428, "Receiving "WARNING: portmapper on server [IP] is not responding" or "WARNING: NLM: RPC call failed: RPC_PMAPFAILURE".

From the Xinuos technical article database, record 105779. Reproduced with permission. The original is at www.sco.com/ta/105779, 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.