How to change TCP/IP address on a SCO box?

How to change TCP/IP address on a SCO box?

Post by Jim He » Wed, 13 Aug 1997 04:00:00



Could someone tell me how to change my IP address on my SCO box.  It's an odd
ball address now and I need to make it a real address for my network.  Any
help would be appreciated but detailed instructions earns you an extra point!
Thanks
Jim

 
 
 

How to change TCP/IP address on a SCO box?

Post by Michael Wick » Thu, 14 Aug 1997 04:00:00


You can either use the netconfig command or use scoadmin if you are
using Openserver 5.0.x .  I like using netconfig personnally.  Once you
change the address, you also need to go into /etc/hosts and delete the
old address line.  Then reboot and you should be all set.


> Could someone tell me how to change my IP address on my SCO box.  It's an odd
> ball address now and I need to make it a real address for my network.  Any
> help would be appreciated but detailed instructions earns you an extra point!
> Thanks
> Jim

--

Michael Wicks


 
 
 

How to change TCP/IP address on a SCO box?

Post by CompMan » Thu, 14 Aug 1997 04:00:00


What version of the OS are you running ??

 
 
 

How to change TCP/IP address on a SCO box?

Post by Jean-Pierre Radle » Thu, 14 Aug 1997 04:00:00


CompMan31 telecommunicated:
| What version of the OS are you running ??

Who would be the antecedent of the pronoun in your question?

--

 
 
 

How to change TCP/IP address on a SCO box?

Post by Jeff Lieberma » Thu, 14 Aug 1997 04:00:00


: Could someone tell me how to change my IP address on my SCO box.  It's an odd
: ball address now and I need to make it a real address for my network.  Any
: help would be appreciated but detailed instructions earns you an extra point!

Right.  All "boxes" are identical.  You wouldn't have
the version handy so we don't need to deal in the vague
generalities required to cover multiple versions?

My *GUESS* is that you will also want to change the
FQDN (fully qualified domain name) as well as the IP
address.  This is non-trivial.  I'll assume SCO Unix
3.2v4.2 with net382e install.

Changing an IP address takes more than just running
netconfig.  There are far too many files that have
system names, IP addresses, or both inside.  I just
finished renaming a server.  It took me 2 hours to get
it straight and test the results.  I only recommend it
for *s and those who want to learn such things
the hard way.

The following is a list of files involved in renaming
a server.  I may have missed some as I was not running
DNS on this particular machine.
        /etc/tcp                        (symlinked to 2 other files)
        /etc/hosts
        /etc/networks
        /etc/gateways
        /etc/lmhosts                    (lan man only)
        /etc/systemid
        /etc/ppphosts                   (ppp only)
        /etc/pppauth                    (ppp only)
        /etc/default/tcp
        /etc/default/nbconf
        /etc/hosts.equiv
        /.rhosts
        /etc/conf/cf.d/config.h         (changed by uname -S new_name)
        /etc/conf/cf.d/stune            (not changed by uname -S new_name)
        /usr/lib/uucp/Permissions       (MYNAME=xxxxx)
        /usr/mmdf/mmdftailor
        /usr/mmdf/table/*               (numerous files)

You should also run:
        uname -S new_name
        /usr/mmdf/table/dbmbuild
I wasn't sure if a kernel relink was required so I did it anyway.

To change the IP address, the following files are affected.
        /etc/tcp
        /etc/hosts
        /etc/gateways
        /etc/networks
        /etc/ppphosts
        /etc/ppppool
        /usr/mmdf/table/smtp.chn
        /etc/bootptab

If you are running sendmail instead of MMDF, you have all the
pathalias databases and sendmail.cf to edit.

If you are running INN news, you will need to edit:
        /usr/lib/news/*
to change both the system name and various IP addresses
used for NNTP.

If you are running DNS, you will need to edit:
        /etc/named.boot
and all the underlying databases.

If you have any networked printers, check:
        /etc/bootptab
        /etc/printcap

As you can see, renaming and reconfiguring the IP addresses
of a server is not a trivial task.  The chain of aliases are
long and convoluted.  Be sure to keep backup copies of all
key files and a notepad with all the files that were tweaked.

Good luck.

[x] Email to author  [ ] To mailing list  [x] Posted to newsgroup
--
# Jeff Liebermann  Liebermann Design  150 Felker St #D  Santa Cruz  CA  95060

# 408.699.0483 digital_pager    73557,2074  cis [don't]

 
 
 

How to change TCP/IP address on a SCO box?

Post by Michael Wick » Fri, 15 Aug 1997 04:00:00




> : Could someone tell me how to change my IP address on my SCO box.  It's an odd
> : ball address now and I need to make it a real address for my network.  Any
> : help would be appreciated but detailed instructions earns you an extra point!

> Right.  All "boxes" are identical.  You wouldn't have
> the version handy so we don't need to deal in the vague
> generalities required to cover multiple versions?

> My *GUESS* is that you will also want to change the
> FQDN (fully qualified domain name) as well as the IP
> address.  This is non-trivial.  I'll assume SCO Unix
> 3.2v4.2 with net382e install.

> Changing an IP address takes more than just running
> netconfig.  There are far too many files that have
> system names, IP addresses, or both inside.  I just
> finished renaming a server.  It took me 2 hours to get
> it straight and test the results.  I only recommend it
> for *s and those who want to learn such things
> the hard way.

> The following is a list of files involved in renaming
> a server.  I may have missed some as I was not running
> DNS on this particular machine.
>         /etc/tcp                        (symlinked to 2 other files)
>         /etc/hosts
>         /etc/networks
>         /etc/gateways
>         /etc/lmhosts                    (lan man only)
>         /etc/systemid
>         /etc/ppphosts                   (ppp only)
>         /etc/pppauth                    (ppp only)
>         /etc/default/tcp
>         /etc/default/nbconf
>         /etc/hosts.equiv
>         /.rhosts
>         /etc/conf/cf.d/config.h         (changed by uname -S new_name)
>         /etc/conf/cf.d/stune            (not changed by uname -S new_name)
>         /usr/lib/uucp/Permissions       (MYNAME=xxxxx)
>         /usr/mmdf/mmdftailor
>         /usr/mmdf/table/*               (numerous files)

> You should also run:
>         uname -S new_name
>         /usr/mmdf/table/dbmbuild
> I wasn't sure if a kernel relink was required so I did it anyway.

> To change the IP address, the following files are affected.
>         /etc/tcp
>         /etc/hosts
>         /etc/gateways
>         /etc/networks
>         /etc/ppphosts
>         /etc/ppppool
>         /usr/mmdf/table/smtp.chn
>         /etc/bootptab

> If you are running sendmail instead of MMDF, you have all the
> pathalias databases and sendmail.cf to edit.

> If you are running INN news, you will need to edit:
>         /usr/lib/news/*
> to change both the system name and various IP addresses
> used for NNTP.

> If you are running DNS, you will need to edit:
>         /etc/named.boot
> and all the underlying databases.

> If you have any networked printers, check:
>         /etc/bootptab
>         /etc/printcap

> As you can see, renaming and reconfiguring the IP addresses
> of a server is not a trivial task.  The chain of aliases are
> long and convoluted.  Be sure to keep backup copies of all
> key files and a notepad with all the files that were tweaked.

> Good luck.

> [x] Email to author  [ ] To mailing list  [x] Posted to newsgroup
> --
> # Jeff Liebermann  Liebermann Design  150 Felker St #D  Santa Cruz  CA  95060

> # 408.699.0483 digital_pager    73557,2074  cis [don't]


This of course, assumes that he is running all of the above.  If he is
just sticking his box on his network he and he is not running mail or
ppp or any of the other wonderful products he should be able to just
change the IP address.  This is what I do.
--

Michael Wicks