Operating System - HP-UX
1823257 Members
3011 Online
109648 Solutions
New Discussion юеВ

Change the IP in the NIS Server and Slave

 
accent
Frequent Advisor

Change the IP in the NIS Server and Slave

Hi.
I need to change my servers into other network. One of them is the NIS master, other the NIS slave and the rests are NIS clients. All my servers are configured with DNS.

Any knows the necessary steps to change the ip in my NIS-servers?
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Change the IP in the NIS Server and Slave

You should be able to change the ip address in one place, /etc/rc.config.d/netconf

Then I'd boot the server, Master first, then slaves.

What you want to do is scan the systems for hard coded ip addresses in scripts and configurations that will cause problems. This should be done before you make any changes on both machines.

find / -exec grep -l '192.168.0.45' {} \;

make the ip address real and look carefully at anything that comes up.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
accent
Frequent Advisor

Re: Change the IP in the NIS Server and Slave

Thaks
Now I have one client in one network and the sever in other. My client can't connect to the server. I have one firewall between the servers and I don't know the port and the protocol in NIS communication.
Victor Fridyev
Honored Contributor

Re: Change the IP in the NIS Server and Slave

Hi,
It seems to me:
portmap 111/tcp sunrpc # SUN Remote Procedure Call
portmap 111/udp sunrpc #

In addition to firewall settings you have to edit /var/yp/secur* files according to instructions in them.
Please take into account that NIS works with broadcasting, which means that you have either to build in each subnet NIS slave-server or to use direct addressing in NIS clients, pointing onto NIS master.
The first way is preferable.

HTH
Entities are not to be multiplied beyond necessity - RTFM