Chinaunix首页 | 论坛 | 博客
  • 博客访问: 672995
  • 博文数量: 24
  • 博客积分: 8199
  • 博客等级: 中将
  • 技术积分: 1605
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-03 20:56
文章分类

全部博文(24)

文章存档

2014年(1)

2013年(2)

2012年(12)

2011年(4)

2009年(3)

2008年(2)

分类: LINUX

2009-12-16 19:38:50

启动网络出现如下问题:
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 ##### < ---- delete 'nis' here #####
hosts: files dns
#
# Example - obey only what nisplus tells us...
#services: nisplus [NOTFOUND=return] files
#networks: nisplus [NOTFOUND=return] files
#protocols: nisplus [NOTFOUND=return] files
#rpc: nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
#
bootparams: nisplus [NOTFOUND=return] files
#
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
#
netgroup: files nis
#
publickey: nisplus
#
automount: files nis
aliases: files nisplus

阅读(7754) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~