yum -y install ypserv - server ypdomainname server.aplogics.com vi /var/yp/Makefile all: passwd group hosts rpc services netid protocols mail \ vi /var/yp/securenets 255.0.0.0 127.0.0.0 255.255.255.255 192.168.20.139 /usr/lib/yp/ypinit -m service portmap start service ypserv start service yppasswdd start cd /var/yp make - client yum -y install ypserv hostname client.aplogics.com vi /etc/nsswitch.conf passwd: files nis shadow: files nis group: files nis hosts: files dns nis service portmap start service ypbind on ypcat passwd ypcat hosts