How to change a hostname and IP address?

How to change a hostname and IP address?

Post by Peter Barnevel » Sun, 23 Apr 1995 04:00:00



We are running SunOS 5.4 (without NIS(+)) on a SparcStation and I want to
change the hostname and IP address. I have the following /etc/hosts file

#
# Internet host table
#
127.0.0.1       localhost
137.224.129.3   vespers loghost # The current name
137.224.129.5   noon            # The new name

When I change the content of /etc/hostname.le0 and /etc/nodename to
reflect the new name and reboot, the system comes up as 'noon'. A grep
shows that the files /etc/net/../hosts still contain the old name. Do
these files need to be updated? Are there any more arrangements to be
made in order to make the name transition complete? (note that we don't
run NIS or NIS+)

Thanks in advance,
Peter


Wageningen Agricultural University      Fax: (-)(31)8370-83777
Dpt. of Physical and Colloid Chemistry  Voice: (-)(31)8370-84962
Dreijenplein 6                          Zip code: 6703 HB
Wageningen, The Netherlands

 
 
 

How to change a hostname and IP address?

Post by Casper H.S. D » Sun, 23 Apr 1995 04:00:00



>We are running SunOS 5.4 (without NIS(+)) on a SparcStation and I want to
>change the hostname and IP address. I have the following /etc/hosts file

The supported way to change the hostname is to do a
"sys-unconfig" folloed by a reboot.

Casper
--
Casper Dik - Network Security Engineer - Sun Microsystems
This article is posted from my guest account at the University