Symptom:
You cannot log on from a common user on a Linux machine. It takes a long time to log on and cannot log on,
When you manually mount the/home directory of the NIS server, the following error occurs:
Do_ypcall: clnt_call: RPC: unable to send;Errno = network is unreachable do_ypcall
Check and find that this machine is an NIS client machine.
Solution:
Start services related to the NIS server.
/Etc/init. d/Portmap start
/Etc/init. d/ypserv start
/Etc/init. d/yppasswdd start
Start services related to the NIS client.
/Etc/init. d/ypbind start
Found to start failed!
Check the configuration file/etc/ypserv. conf of the NIS server.
# The following, when uncommented, will give you shadow like passwords.
# Note that it will not work if you have slave NIS servers in your
# Network that do not run the same server as you.
# HOST: domain: Map: Security
#
# *: Passwd. byname: Port
# *: Passwd. byuid: Port
127.0.0.0/255.0.0.0: *: None
10.10.104.0/255.255.255.0: *: None
192.168.0.0/255.255.255.0: *: None
*: Deny
Check the IP address of the customer's machine and find that the IP address is not in the following CIDR blocks:
10.10.104.0/255.255.255.0
192.168.0.0/255.255.255.0
Check and find that the eth1 of the NIC of the customer machine is not started. the IP address of the NIC is in the CIDR block.192.168.0.0/255.255.255.0.
Start eth1, and then start the client's NIS-related services.
[Root @ gd87 ~] #/Etc/init. d/ypbind start
Binding to the NIS domain:
Listening for an NIS domain server.
Then, the customer's machine can log on as a normal user.