SUMMARY: change IP address.

From: Frank Pardo (fpardo@mail.tisny.com)
Date: Thu Aug 22 1996 - 13:53:37 CDT


Thanks very much to all who responded, and to those whose replies are
still en route. Turns out my question was somewhat off the mark: I don't
really need to understand what's going on at boot time if all I want to
do is change the IP address.

THE ORIGINAL QUERY:

I need to change the IP address of a Sparc Ultra running Solaris 2.5.
Somewhere or other in the "rc" scripts, there has to be a command that's
the moral equivalent of "ifconfig hme0 206.71.232.160", but I haven't
been able to find it. The Answerbook and the man pages seem to be silent
on this point. Can anyone advise please? Will summarize if successful.

SUMMARY OF THE RESPONSES:

1. Change /etc/hosts and /etc/hostname.le0 (or .hme0, or whatever)
2. Run /usr/sbin/sys-unconfig (but save /etc/hosts first!)
3. Look at /etc/init.d/rootusr
4. Look for "ifconfig -au netmask + broadcast +" in rc scripts, which
   get input from these files: /etc/hosts /etc/hostname.* /etc/nodename
   /etc/net/*/hosts (3 files) ...and maybe /etc/defaultrouter too
5. Don't bother with the files under /etc, they're too complex; just
   run sys-unconfig and reboot

THE RESPONDERS:

From: sweh@mpn.com (Stephen Harris)
From: ahill@lanser.net (Alan Hill)
From: sweh@mpn.com (Stephen Harris) ... in response to a followup query
From: tkevans@eplrx7.es.dupont.com (Tim Evans)
From: croy@osiris.com (Claude Roy)
From: Dave Zavatson <dhzavatson@ucdavis.edu>
From: ybarrap@hpk400.hcssa.amedd.army.mil (Paul Ybarra)
From: Stuart Kendrick <sbk@fhcrc.org>
From: shane.bouslough@peri.com (Shane Bouslough)
From: Alex Finkel <afinkel@pfn.com>
From: Benjamin Cline <benji@hnt.com>
From: davem@tybrin.com (Dave McFerren)
From: james mularadelis <jamesm@matrix.newpaltz.edu>
From: poffen@k2.San-Jose.ate.slb.com (Russ Poffenberger)
From: gmp@adc.com (Gregory M Polanski)
From: scott-allendorf@uiowa.edu
From: etolido@flight.cnsgroup.com (Erik J. Tolido)
From: Jay Morgan <jay@atlanta.rssi.com>
From: etolido@flight.cnsgroup.com (Erik J. Tolido) ... with a correction
From: catey@wren.geg.mot.com (Don Catey)

--
  Frank Pardo		<fpardo@mail.tisny.com> 
  System Administrator 
  Transaction Information Systems
  New York City



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:08 CDT