免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3288 | 回复: 0
打印 上一主题 下一主题

do_ypcall: clnt_call: RPC: Unable to send; errno = [复制链接]

论坛徽章:
2
荣誉会员
日期:2011-11-23 16:44:17拜羊年徽章
日期:2015-03-03 16:15:43
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-16 19:38 |只看该作者 |倒序浏览

启动网络出现如下问题:
service network  restart
Shutting down interface eth0:  [  OK  ]
Shutting down loopback interface:  [  OK  ]
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable
Setting network parameters:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  [  OK  ]

解决问题:
1.do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable(自己解决)
出现这个错误信息是因为:/etc/nsswitch.conf 格式
passwd: nis files
shadow: nis files
group: nis files

如果修改为:
passwd: files nis
shadow: files nis
group: files nis
错误信息消失。
2.do_ypcall: clnt_call: RPC: Timed out(转载)
After tinkering with the firewall, DNS, DHCP and NIS server configurations to no avail, I finally discovered the solution. It was in the /etc/nsswitch.conf file where it the host resolution was looking up the NIS server before the DNS.
Below is the nsswitch.conf file with the change to the host resolution configuration. After making this change, the “do_ypcall: clnt_call: RPC: Timed out” messages disappeared altogether and connectivity was greatly improved.
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the local database (.db) files
# compat Use NIS on compat mode
# hesiod Use Hesiod for user lookups
# [NOTFOUND=return] Stop searching if not found so far
#
# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd: db files nisplus nis
#shadow: db files nisplus nis
#group: db files nisplus nis
#
passwd: files nis
shadow: files nis
group: files nis
#
#hosts: db files nisplus nis dns
#hosts: files nis dns #####


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/76/showart_2123201.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP