Changing hostname & IP-adress under Solaris 7

2007-12-25 11:37:00

Thanks for your immediate answer to:

David G Wiseman <magi@csd.uwo.ca>

Dirk Jansen <dirk@abcomp.be>

rsr@macromedia.com

Larry Garrett <Larry_Garrett@csx.com>

"Satinder S Mangat" <mangat_satinder@jpmorgan.com

Casper Dik <casper@holland.sun.com>

"Schultz, Juergen" <Juergen.Schultz@m.dasa.de>

Carlo Musante <carlo@ucomm.wayne.edu>

"Reichert, Alan" <aareichert@tasc.com>

Colin_Melville@mastercard.com

Dirk Boenning <Dirk.Boenning@capcom.de>

Kyung Suk <ksuk@osage.com>

Allan West <awest@stat.ufl.edu>

Ronald Loftin <reloftin@syr.edu>

John Hackett <hackett.john@gene.com>

and all others that may mail an answer regarding my problem after this

SUMMARY!

Solution:

-------

I forgot to change entries in:

/etc/nodename

/etc/net/ticlts/hosts

/etc/net/ticots/hosts

/etc/net/ticotsord/hosts/

After setting entries in those files to "newhost", everything works.

rsr@macromedia.com suggested to use the command:

setuname -n <newhostname>

- I haven't tried this command,, but I took a short look at the manpage,

and I think this could also be a solution.

>From sun, it is recommended to use command:

/usr/sbin/sys-unconfig

Thanks!!!!!!!!

Best regards,

monika.

Original question:

> Hi sun-managers,

>

> I want to change IP-adress and hostname of a SPARCstation-10 running

> Solaris 7 (NIS-environment).

>

> I changed entries in these files:

> /etc/hostname.le0

> /etc/inet/hosts

>

> on the NIS server:

> /etc/domain/ethers

> (new hostname is already in /etc/domainname/hosts)

>

> When I boot the workstation, it seems to be "newhost" for all other

> machines, but on the SS-10 itself the old hostname still appears (boot

> message after le0-configuration: "Hostname: oldhost"; as prompt on

> dtlogin screen ("Welcome to oldhost"); and when I do a uname -n)

>

> Any help would be appreciated!

Comments

Got something to say?

You must be logged in to post a comment.