Changing network configuration without having to reboot

  • Follow


Hi,

I have a running Solaris 2.6 server and I'm changing my internet provider, 
so I need to change all network settings: IP address, netmask, default 
router, DNS servers and domain (the host name will be the same but the 
domain changes). I think I know how to change all this, but my question is: 
is it possible to do it "on the fly", whitout having to reboot the server? 
If so, what would be the correct order of all the changes to avoid troubles?

Thanks a lot,

Toni



0
Reply Toni 9/26/2007 7:45:46 PM

Toni <me@inter.net> wrote:
> Hi,
> 
> I have a running Solaris 2.6 server and I'm changing my internet provider, 
> so I need to change all network settings: IP address, netmask, default 
> router, DNS servers and domain (the host name will be the same but the 
> domain changes). I think I know how to change all this, but my question is: 
> is it possible to do it "on the fly", whitout having to reboot the server? 
> If so, what would be the correct order of all the changes to avoid troubles?

Yes, it is. However, if you're looking for advice on the subject, my
advice would be to take the outage and do a sys-unconfig. Ten minutes of
downtime can be scheduled, and won't run the risk of missing things, or
_un_scheduled downtime.

Colin
0
Reply Colin 9/26/2007 9:34:33 PM


every now and then sys-unconfig runs amuck and sometimes it gets
lost.  I don't trust it.  The only time I use sys-unconfig is if I'm
setting up a machine that is moving from time zone to time zone or if
I've gotten a machine from another company and I don't want to do a
reinstall.

To make the changes you are talking about, I would save the old copies
of these files and then edit:

/etc/inet/hosts netmasks networks ntp.conf
/etc/resolv.conf
/etc/defaultrouter
/etc/defaultdomain (if needed)
/var/yp/binding/*/ypservers (if needed)
/etc/mail/sendmail.cf (if your email setup is changing)

I would halt the machine and then boot it to make sure everything
comes up cleanly at boot time.   If the machine has been up for a very
long time, there's a small chance that you are going to loose a
disk.   But if a disk is going to fail soon anyway, I'd rather find
that out during a scheduled downtime.


0
Reply Aldo 9/27/2007 1:24:20 PM

Aldo of Pignotti <aldopignotti@yahoo.com> writes:
> /etc/inet/hosts netmasks networks ntp.conf

Don't forget /etc/inet/ipnodes.  You'll be unpleasantly surprised.

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
0
Reply James 9/27/2007 3:06:15 PM

James Carlson <james.d.carlson@sun.com> wrote:
> Aldo of Pignotti <aldopignotti@yahoo.com> writes:
>> /etc/inet/hosts netmasks networks ntp.conf
> 
> Don't forget /etc/inet/ipnodes.  You'll be unpleasantly surprised.

I'm not sure Solaris 2.6 has much IPv6 support, does it?  Even if it
does, ipnodes isn't likely to be populated with anything that needs
modification.  That didn't really start until the first releases of S10.

-- 
Darren Dunham                                           ddunham@taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >
0
Reply ddunham 9/27/2007 4:28:48 PM

Aldo of Pignotti <aldopignotti@yahoo.com> wrote:
> To make the changes you are talking about, I would save the old copies
> of these files and then edit:
[...]

For Solaris releases earlier than Solaris 10 don't forget:

/etc/net/*/hosts

-- 
Daniel
0
Reply Daniel 9/27/2007 6:16:36 PM

ddunham@taos.com (Darren Dunham) writes:
> James Carlson <james.d.carlson@sun.com> wrote:
> > Aldo of Pignotti <aldopignotti@yahoo.com> writes:
> >> /etc/inet/hosts netmasks networks ntp.conf
> > 
> > Don't forget /etc/inet/ipnodes.  You'll be unpleasantly surprised.
> 
> I'm not sure Solaris 2.6 has much IPv6 support, does it?  Even if it
> does, ipnodes isn't likely to be populated with anything that needs
> modification.  That didn't really start until the first releases of S10.

Doh.  Right; that's S8 and up.  Easy to forget that the OP was using a
museum piece.  ;-}

-- 
James Carlson, Solaris Networking              <james.d.carlson@sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
0
Reply James 9/28/2007 5:12:54 PM

6 Replies
463 Views

(page loaded in 0.067 seconds)

Similiar Articles:













7/23/2012 4:09:17 PM


Reply: