免费注册 查看新帖 |

Chinaunix

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

主机ping不通127.0.0.1 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-29 18:48 |只看该作者 |倒序浏览
主机为RP4440,系统为11vi。
现在主机ping不通127.0.0.1.但却可以ping通lan0 ,也可以ping通其他机器和网关。
查看/etc/hosts文件和/etc/rc.config.d/netconf文件,均正常。
但是netstat -rn 缺显示缺少了,一条到127.0.0.1的路由,但是还回口的路由也不允许我去添加。
请问各位有何良策?
以下是hosts文件,和netstat的结果。
host1:/#more /etc/hosts
## Configured using SAM by root on Wed Mar 29 17:36:57 2000
# @(#)B.11.11_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
# <internet address>    <official hostname> <aliases>
#
# For example:
# 192.1.2.34    hpfcrm  loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
#       The format described in this file is the correct format.
#       The original Berkeley manual page contains an error in
#       the format description.
#
192.168.1.79    host1
127.0.0.1       localhost       loopback
192.168.1.201   dhrac1.datahouse.cn     dhrac1


host1:/#netstat -rn
Routing tables
Destination           Gateway            Flags   Refs Interface  Pmtu
192.168.1.79          192.168.1.79       UH        0  lan0       4136
192.168.1.0           192.168.1.79       U         2  lan0       1500
127.0.0.0             127.0.0.1          U         0  lo0           0
default               192.168.1.1        UG        0  lan0          0

host1:/#route add host 127.0.0.1 127.0.0.1
add host 127.0.0.1: gateway 127.0.0.1: cannot update loopback route

论坛徽章:
0
2 [报告]
发表于 2008-12-30 00:24 |只看该作者
我也遇到了这样的问题,期待答案中。。。

论坛徽章:
0
3 [报告]
发表于 2008-12-30 16:38 |只看该作者
遇到这种情况有可能是主机在初始化的时候由于某种原因而造成的,
解决办法 :
       1:删除网络配置文件,然后再新建一个一模一样的文件
        2:然后 重新启动一下,让系统重新认到网卡!
经过这样应该就没有问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP