Jan. 26, 2010, 1:54 a.m.
posted by whitehat
NIS Slave ServersNIS relies a lot on broadcast traffic to operate, which prevents you from having an NIS server on a different network from the clients. You can avoid this problem on your local subnet by using slave servers that are configured to automatically synchronize their NIS data with that of the single master server. You can also consider placing multiple NIS servers on a single subnet for the sake of redundancy. To do this, configure the NIS clients to have multiple NIS servers for the domain in the /etc/yp.conf file. Configuring NIS Slave ServersIn this scenario, you need to add an NIS slave server named Nisslave (IP address 192.168.1.254) to the NIS-SCHOOL-NETWORK NIS domain. You also must configure the NIS master server, Bigboy, to push its database map information to the slave whenever there is an update. Here are the steps you need:
That's a lot of work but it's still not over. There is one final configuration step that needs to be done on the NIS clients before you're finished. Configuring NIS Clients with SlavesEdit the /etc/yp.conf file on all the clients to include Nisslave, and restart ypbind.
#
# File: /etc/yp.conf (Smallfry)
#
domain NIS-SCHOOL-NETWORK server 192.168.1.100
domain NIS-SCHOOL-NETWORK server 192.168.1.254
[root@smallfry tmp]# service ypbind restart
Shutting down NIS services: [ OK ]
Binding to the NIS domain: [ OK ]
Listening for an NIS domain server..
[root@smallfry tmp]#
|
- Comment