This document contains the procedure to configure a Network Information Server (NIS) master server. In addition, this document explains how to configure NIS clients. This document applies to AIX Versions 4.x.
Once you have planned your implementation of NIS, the first step is to configure the NIS master server. This server will serve out the information for your NIS domain, so it is important to ensure that its /etc/hosts, /etc/group, /etc/passwd, and other information you would like to share is valid before building your NIS master server and creating the NIS maps. Once you have configured your NIS master server, you may configure NIS clients that will bind to the master.
NOTE: You may have only one NIS master server per NIS domain.
The product documentation library can be accessed at the following URL:
http://www.rs6000.ibm.com/resource/aix_resource/Pubs/index.html
Additional information can be found in:
Managing NFS and NIS, published by O'Reilly
Configuration on the master:
To bind the master or slave server to itself, and for subsequent reboots, complete the following steps:
           sleep 10
           ypset 127.0.0.1
At this point, your client should be bound to your master, and you should be able to read the NIS maps with the ypcat command.
             #ypcat hosts
             #ypcat group
NOTE: You will need to build an NIS slave for your different subnets so that the clients on your subnets will be able to ypbind. This is because routers do not pass broadcast requests. You will need to have the master NIS server IP address for reference, because you will have to first manually ypbind the machine to the NIS master if going across a router.
Be sure that the machine is configured as an NIS client before converting to a slave. Then complete the following procedure.
Following are the steps to bind the slave to itself, and for subsequent reboots. By this point, you will have already executed the chssys command for ypbind. Fewer steps are required than to bind an NIS master to itself.
              sleep 10
              ypset 127.0.0.1
[ Doc Ref: 95375068821198 Publish Date: Oct. 02, 2000 4FAX Ref: 8600 ]