How do I change my ip address?

How do I change my ip address?

Post by Eliza Strickl » Sat, 21 Aug 1993 03:36:26



I am running Solaris 2.2 and I want to change my IP address.
How do I do this?

Elizabeth
--

\|/--_   -_-      ----           ###         _- ----------------------
-0    -_-   --       -__ %~- ____#0        _-   Elizabeth Strickler
|\     ^                 0\~     /\   /\  -           1-2245

 
 
 

How do I change my ip address?

Post by Joel Tornato » Sat, 21 Aug 1993 05:22:57



Quote:>I am running Solaris 2.2 and I want to change my IP address.
>How do I do this?

usr /usr/sbin/sys-unconfig

Read the manpage first.

joel

 
 
 

How do I change my ip address?

Post by Jeff R. Giacob » Fri, 27 Aug 1993 23:04:31




>>I am running Solaris 2.2 and I want to change my IP address.
>>How do I do this?
>usr /usr/sbin/sys-unconfig
>Read the manpage first.

Can't she just edit /etc/hosts (a link to /etc/inet/hosts) and change the
ip address there??

When I changed my machine's ip address (under Solaris2.2) I just changed the
entry in my /etc/hosts file, then made the same change to my NIS master
machine's /etc/hosts file.

Using sys-unconfig seems like over-kill, since it clears out ALL of the
following:

(from sys-unconfig man page)

     sys-unconfig does the following:

     o     Restores the default /etc/inet/hosts file.

     o     Removes the default hostname in  /etc/hostname.??[0-9]
          and /etc/nodename.

     o     Removes the default domainname in /etc/defaultdomain.

     o     Restores the timezone to PST8PDT in /etc/TIMEZONE.

     o     Disables the Network  Information  Service  (NIS)  and
          Network  Information  Service Plus (NIS+) if either NIS
          or NIS+ was configured.

     o     Removes the entries for this host in /etc/net/*/hosts.

     o     Removes the file /etc/inet/netmasks.

     o     Removes the password set for root in /etc/shadow.

     When sys-unconfig is finished, it performs  a  system  shut-
     down.

Guru question: Is sys-unconfig the prefered method for changing a machine's
IP address in Solaris 2.x, or is a simple edit of /etc/hosts enough???

Jeff

--
--------------------------------------------------------------------
        "There's such a fine line between clever and stupid"
                                                -David St. Hubbins
--------------------------------------------------------------------

 
 
 

How do I change my ip address?

Post by Pete Clin » Mon, 30 Aug 1993 19:39:04


Just edit /etc/hosts and reboot.  I have a SPARC 1 clone that occaisionally
needs connecting to another network sealed from the outside world, so we
have to change address whenever that's done.  It's running 4.1.1 rather than
5.2, but I think with 5.2 it shouldn't be any different.  If you're
networked you'll have to fiddle, as suggested, with NIS/NIS+ data if you use
that, or otherwise change every machine's /etc/hosts to account for the new
number.

As a word of warning about sys-unconfig, when I got my SPARC 10 the dealer
had loaded on Sol 2.1 for me (it had been supplied to them with 4.1.3), but
when they set it up at their base had said it was not networked.  I wanted
to change that, so under the direction of tech. support I deconfigured the
system and it trashed things pretty badly.  After a day on the 'phone to
support trying to salvage things I said "Would it be easier if I just
totally reload UNIX from scratch?", and the guy at the other end agreed.
It may be better in 2.2, I may have fouled up somewhere, but tread carefully
when using sys-unconfig...

Pete/
--
Peter Clinch                                    University of Dundee
phone 44 382 (voice) 60111 x 2050 (fax) 632970  Department of Medical Physics

                                                Dundee, DD1 9SY, Scotland, UK

 
 
 

How do I change my ip address?

Post by Phil Broo » Fri, 10 Sep 1993 02:11:37


See the thread on growing wtmp files concerning just changing the
ip address in the hosts file.  

I use sys-unconfig pretty routinely and haven't had problems with it.
I have had problems with doing things manually.  

sys-unconfig doesn't cause problems if you can easily reproduce the
local customizations you make to a node.

--

Regular Mail:
   Mentor Graphics Corporation, 8005 SW Boeckman Road, Wilsonville, OR 97070
Receiving address (Fed Ex, UPS, etc):
   Mentor Graphics Corporation, 27788 SW Parkway Avenue, Wilsonville, OR 97070
(503)685-1324, FAX (503)685-1461