[Sunhelp] RE: NIS, Changed IP

Lund, Dennis Dennis.Lund at Nextel.com
Mon Jan 24 13:19:59 CST 2000


Hi Melinda

I don't think SunOS 4.1.3 has/uses sys-unconfig.  You will have to edit the
files
manually as follows:

	stop +a
	Try to:
   ok boot -s  # if it still hangs boot cdrom
   ok boot cdrom 
   
	mount the root partition to /a  # if /a does not exist create it
		i.e.  mount /dev/sd0a /a

	Edit the following files:
		/etc/hosts/			enter new IP
		/etc/resolv.conf		If the IP changed your DNS
prob did to
		/etc/defaultrouter	If the IP changed your defaultroute
did too
		/etc/defaultdomain	SAME here
	
	If the hostname and domainname did not change then add the default
route
	as follows:
		route add default 0.0.0.0 1

	Then reboot.

	If the hostname also changed, check these files for the correct
hostname:
		/etc/hostname.le0

	Run this command to find any other files with the old hostname and
change
	them:
		find /etc -type f | xargs grep <oldhostname>

	I'm not sure but I think you may also have to move the old "yp" dir
out of
	the way:
		i.e. cd /var/yp
		     mv <domainname> <domainname.orig>

	This will allow the system to get the updated yp maps from the NIS
server.

	Then reboot.
	I hope I didn't leave anything out.

Dennis L. Lund
NEXTEL Systems Administrator
(678)291-3519
dllund at hermes.nextel.com	

|Hi,
|
|I have a machine running NIS (so I just found out!!)
|and I changed its IP address over to our  new range of IP's.
|I did this for a variety of machine running Solaris 2.6
|and then went on to do the final machine, this one running
|SunOS 4.1.3. I hadn't realized it was running NIS as
|it is not my machine (and there is no need for NIS here anyway).
|When I rebooted after changing the IP the machine hung at:
|
|Services: ypbind
|RPC keyserver
|NIS: server not responding for domain "phys.unsw.edu.au"; Still trying
|NIS: server not responding for domain "phys.unsw.edu.au"; Still trying
|NIS: server not responding for domain "phys.unsw.edu.au"; Still trying
|
|etc
|
|How can I get the mchine to boot so I can try and debug what is wrong?
|(by looking at files)
|
|Many thanks,
|
|Melinda







More information about the SunHELP mailing list