Operating System - HP-UX
1833789 Members
2547 Online
110063 Solutions
New Discussion

How to update the NIS client IP..

 
SOLVED
Go to solution
Prasanth Thomas
Valued Contributor

How to update the NIS client IP..

Hi All..

Could you please help on the below issue...

I want to updat my client ip..
I want to change the ip 193.128.151.146 to 207.218.29.249
PLease let us know how to do it.


root@uk204:/var/yp> nslookup superdrugftp
Using /etc/hosts on: uk204

looking up FILES
Name: spdftp
Address: 193.128.151.146
Aliases: superdrugftp

root@uk204:/var/yp>

thanks
Prasanth Thomas
4 REPLIES 4
Peter Nikitka
Honored Contributor

Re: How to update the NIS client IP..

Hi,

NIS administers the IPaddress-to-name tables only.
If your client needs a new IP-address, it has to be changed locally: Most server don't use DHCP.

The change of data for NIS-tables is performed only on the NIS-master itself. After the 'yppush' (e.g.) als NIS-servers share the same updated information.

Next: your output shows no usage of NIS.
- maybe your system seems to use just the plain /etc/hosts file. Look/change the line starting with 'hosts:' in the file /etc/nswitch.conf
- perhaps 'files' is found before 'nis' and you did include this host into the local /etc/hosts file? So the old data is found first.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
TTr
Honored Contributor
Solution

Re: How to update the NIS client IP..

You need to do two things
1. Change the IP address in the host itself. You need to use the "/sbin/set_parms ip_address" command (requires reboot). Before rebooting check the /etc/hosts and /etc/rc.config.d/netconf file to ensure that IP got changed.
2. Change the NIS map for this hostname. You need to go on the uk204 server and modify its /etc/hosts file and change the IP address of your NIS client and then push the change by running "ypmake hosts"
TTr
Honored Contributor

Re: How to update the NIS client IP..

Ensure that step 2 above is done on the NIS master. It is not clear if u204 is the NIS master or the server that you ran the nslookup command from.

Finally one last thing. Check http://forums11.itrc.hp.com/service/forums/helptips.do?#28
Prasanth Thomas
Valued Contributor

Re: How to update the NIS client IP..

Hi.....

Many Thanks for the help...
its done....have changed in etc/hosts file in uk204 server(nis master) and run the ypupdae command...

Thanks
Prasanth.................