[SPARCbook] changing domains/IP-addresses on the fly

Jonathan Eisch jeisch at boku.net
Sun Feb 20 11:47:41 CST 2000


Is anyone else thinking 'locations'?

-Jonathan

--
jon eisch
jeisch at boku.net

On Sun, 20 Feb 2000, Mark G. Thomas wrote:

> 
> 
> Hi,
> 
> > I'd like to change the IP-address and the domainname of my sparcbook 
> > without rebooting. I know the "suported" method is using sys-unconfig +
> > reboot, but there sure must be an easier method. I tried copying  
> > /etc/hosts /etc/nodename /etc/defaultdomain /etc/defaultrouter /etc/resolv.conf
> > /etc/hostname.le0 /etc/inet/hosts /etc/etc/tic*/*,
> > but there seems to be a daemon left that's rewriting /etc/hostname.le0 and
> > /etc/hosts (the loghost entry) to the old values. I'm already having my script
> > restart sendmail, what else do I need to restart?
> > 
> > Anyone with a ready-made script to change domain/IP on-the-fly?
> 
> If you want the changed hostname and IP address to work immediately,
> you will need to not only change the files but also use `ifconfig` to change
> the interface IP and netmask, use `route` to add and/or remove routes for
> your new default route, and use `hostname` to change the hostame of the
> machine.
> 
> You will still run into problems with services like NFS and printing with 
> daemons that are still running from boot-up, but could probably
> just use the existing rc scripts in /etc/rc2.d and /etc/rc3.d to stop
> and start certain services, after changing the hostname.
> 
> I frequently plug my SPARCBook into various client networks, and just
> ifconfig a new address, and add or remove routes as needed, but I'm not
> using NFS, printing, or other services that would have broken with these
> kinds of changes.  I also don't typically bother changing the files, since
> I'm only wanting to use the new address and routes for the visit.
> 
> > Rainer
> > 
> > PS: about java 1.2 on tadpole's solaris 2.5.1 - tadpole knows it's not 
> > working, and they don't have a solution ;-(
> 
> I'm very happy with 2.6 on the SPARCBook, just had to get used to not having
> the NCE gui, though frankly I was never that thrilled with NCE anyway.
> 
> Mark
> 
> 
> 
> -- 
> Mark G. Thomas (Mark at Misty.com -- http://www.misty.com/)
> 
> _______________________________________________
> Sparcbook mailing list  -  Sparcbook at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sparcbook
> 







More information about the SPARCBook mailing list