Chinaunix

标题: 44p170 ping 不通内网,网卡灯也不亮 请教各位是怎么回事啊? [打印本页]

作者: xinshouzhe    时间: 2009-12-01 18:00
标题: 44p170 ping 不通内网,网卡灯也不亮 请教各位是怎么回事啊?
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2006.
Console login: root
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
Last login: Tue Dec  1 17:08:13 CST 2009 on /dev/tty0

# ping www.google.com
PING www.l.google.com: (74.125.153.147): 56 data bytes
64 bytes from 74.125.153.147: icmp_seq=0 ttl=49 time=159 ms
64 bytes from 74.125.153.147: icmp_seq=1 ttl=49 time=141 ms
64 bytes from 74.125.153.147: icmp_seq=2 ttl=49 time=176 ms
64 bytes from 74.125.153.147: icmp_seq=3 ttl=49 time=264 ms
64 bytes from 74.125.153.147: icmp_seq=4 ttl=49 time=150 ms
^C
----www.l.google.com PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 141/178/264 ms

# ping 192.168.0.12
PING 192.168.0.12: (192.168.0.12): 56 data bytes
^C
----192.168.0.12 PING Statistics----
6 packets transmitted, 0 packets received, 100% packet loss

# ifconfig -a
en0: flags=4e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPR>
        inet 192.168.0.18 netmask 0xffffff00 broadcast 192.168.0.255
lo0: flags=e08084b<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BI>
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
# netstat -in
Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll
en0   1500  link#2      0.9.6b.de.22.19       1742     0      789     0     0
en0   1500  192.168.0   192.168.0.18          1742     0      789     0     0
lo0   16896 link#1                            1505     0     1613     0     0
lo0   16896 127         127.0.0.1             1505     0     1613     0     0
lo0   16896 ::1                               1505     0     1613     0     0
# netstat -rn
Routing tables
Destination      Gateway           Flags   Refs     Use  If   Exp  Groups

Route Tree for Protocol Family 2 (Internet):
default          192.168.0.1       UGA       0        28 en0      -      -
127/8            127.0.0.1         U         4       631 lo0      -      -
192.168.0.0      192.168.0.18      UHSb      0         0 en0      -      -   =>
192.168.0/24     192.168.0.18      U         2       146 en0      -      -
192.168.0.18     127.0.0.1         UGHS     24       871 lo0      -      -
192.168.0.255    192.168.0.18      UHSb      0         4 en0      -      -

Route Tree for Protocol Family 24 (Internet v6):
::1              ::1               UH        0         0 lo0      -      -
# cat /etc/hosts
# @(#)47        1.1  src/bos/usr/sbin/netstart/hosts, cmdnet, bos530 7/24/91 106
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/usr/sbin/netstart/hosts 1.1
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 1985,1989
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
#
# COMPONENT_NAME: TCPIP hosts
#
# FUNCTIONS: loopback
#
# ORIGINS: 26  27
#
# (C) COPYRIGHT International Business Machines Corp. 1985, 1989
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#  /etc/hosts
#
# This file contains the hostnames and their address for hosts in the
# network.  This file is used to resolve a hostname into an Internet
# address.
#
# At minimum, this file must contain the name and address for each
# device defined for TCP in your /etc/net file.  It may also contain
# entries for well-known (reserved) names such as timeserver
# and printserver as well as any other host name and address.
#
# The format of this file is:
# Internet Address      Hostname        # Comments
# Items are separated by any number of blanks and/or tabs.  A '#'
# indicates the beginning of a comment; characters up to the end of the
# line are not interpreted by routines which search this file.  Blank
# lines are allowed.

# Internet Address      Hostname        # Comments
# 192.9.200.1           net0sample      # ethernet name/address
# 128.100.0.1           token0sample    # token ring name/address
# 10.2.0.2              x25sample       # x.25 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
192.168.0.18    44p170
# cat /etc/resolv.conf
nameserver      202.106.46.151

[ 本帖最后由 xinshouzhe 于 2009-12-2 11:37 编辑 ]
作者: windj_cu    时间: 2009-12-01 22:54
标题: 回复 #1 xinshouzhe 的帖子
192.168.0.12
是个什么东西
作者: meilixueshan    时间: 2009-12-01 23:11
能ping google,网卡灯却不亮 不可能吧
至于内网不通,那就看网络配置了,比如说交换机、防火墙之类
作者: xinshouzhe    时间: 2009-12-02 09:19
标题: 回复 #3 meilixueshan 的帖子
防火墙我关闭了之后也ping不通。网卡灯确实不亮。我也觉得很奇怪。
作者: swallowcn    时间: 2009-12-02 10:51
标题: !
如果网卡坏了,你就买个pci网卡加上不就结了,灯都不亮,是不是你网线有问题哟!

灯亮了再说别的事情吧,个人看法,仅供参考!
作者: meilixueshan    时间: 2009-12-02 11:28
难不成灯坏了
算了,找个懂网络的,随便做个trace、或者抓包,
作者: wanda516    时间: 2009-12-02 11:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: xinshouzhe    时间: 2009-12-02 11:35
网线是好的啊,插到PC机上能正常使用的啊,就是在170上也是能ping通外网,ping不通内网。网卡不可能是坏的,要不然外网肯定ping不通啊。
作者: cfed    时间: 2009-12-02 13:07
是不是配置dns了?
作者: xinshouzhe    时间: 2009-12-02 13:53
# cat /etc/resolv.conf
nameserver      202.106.46.151
但是在 #smit mktcpip里没有设置,设置的话一OK就失败,所以没设。
作者: chalylau    时间: 2009-12-02 14:26
你如果可以ping通网关192.168.0.1就可以了。说明网卡没问题。
作者: xinshouzhe    时间: 2009-12-02 15:07
可以ping 通网关的。但是ping 其他台式机的IP ping不通,是怎么回事啊?网卡灯也不亮?
作者: chalylau    时间: 2009-12-02 15:49
原帖由 xinshouzhe 于 2009-12-2 15:07 发表
可以ping 通网关的。但是ping 其他台式机的IP ping不通,是怎么回事啊?网卡灯也不亮?

查查被ping的台式机有没有防火墙。
作者: xinshouzhe    时间: 2009-12-02 16:32
防火墙、杀毒软件都关闭了,还是ping不通的。
作者: chalylau    时间: 2009-12-02 17:21
原帖由 xinshouzhe 于 2009-12-2 16:32 发表
防火墙、杀毒软件都关闭了,还是ping不通的。

至少同网段的192.168.0.12应该能ping通的呀
作者: chalylau    时间: 2009-12-02 17:24
子网掩码一致吗?
作者: AIX深入敌后    时间: 2009-12-02 17:31
检查配置
作者: xinshouzhe    时间: 2009-12-02 18:19
子网掩码是一致的。我能检查的都检查了,就是不知道问题出在哪里,请朋友们帮帮忙看看问题在哪里。
作者: chalylau    时间: 2009-12-02 21:06
原帖由 xinshouzhe 于 2009-12-2 18:19 发表
子网掩码是一致的。我能检查的都检查了,就是不知道问题出在哪里,请朋友们帮帮忙看看问题在哪里。

建议重新配一下en0
作者: AIX深入敌后    时间: 2009-12-03 11:02
如果允许的话 重启主机 或者 重新配置此网卡
作者: chalylau    时间: 2009-12-03 11:57
还有就是查查网关192.168.0.1是否有问题,192.168.0.12配的是不是这个网关
作者: xinshouzhe    时间: 2009-12-03 13:26
在#smit mktcpip里重新配置了,也修改了IP,但是还是不行。ping不通局域网内的其他pc机。但是pc机能ping通170.网关都是192.168.0.1.
作者: chalylau    时间: 2009-12-03 15:13
原帖由 xinshouzhe 于 2009-12-3 13:26 发表
在#smit mktcpip里重新配置了,也修改了IP,但是还是不行。ping不通局域网内的其他pc机。但是pc机能ping通170.网关都是192.168.0.1.

170是什么机器啊,你的IP不是192.168.0.18吗?
作者: xinshouzhe    时间: 2009-12-03 15:47
ibm 7044p170,用PC机去ping 170的IP能通。

[ 本帖最后由 xinshouzhe 于 2009-12-3 15:49 编辑 ]

未命名.jpg (18.49 KB, 下载次数: 34)

未命名.jpg

作者: chalylau    时间: 2009-12-03 16:37
原帖由 xinshouzhe 于 2009-12-3 15:47 发表
ibm 7044p170,用PC机去ping 170的IP能通。

那就没问题了
作者: xinshouzhe    时间: 2009-12-03 17:38
可是用170 ping PC还是ping不通啊,这个是哪里的问题啊?
作者: chalylau    时间: 2009-12-03 18:19
原帖由 xinshouzhe 于 2009-12-3 17:38 发表
可是用170 ping PC还是ping不通啊,这个是哪里的问题啊?

既然网关能ping通,www.google.com也能ping通,说明170的设置没问题。
作者: AIX深入敌后    时间: 2009-12-04 16:03
查[C的事
作者: xinshouzhe    时间: 2009-12-04 18:08
标题: 回复 #28 AIX深入敌后 的帖子
能给指点一下,查pc的什么问题吗?防火墙吗?防火墙我关闭了之后也ping不通的啊。
作者: lzdydc    时间: 2009-12-04 19:07
交换机设置或对方机的问题。
作者: AIX深入敌后    时间: 2009-12-05 03:18
看看 交换机 和PC的dns
作者: chengchunhui    时间: 2009-12-05 21:08
如果要判断网卡是否有问题的话,可以找台电脑用网线与网卡直连,设定IP,看能否PING通.设定IP最好采用smitty chinet(或用ifconfig也行).
如果不行的话(排除网线和电脑的原因),那就准备换网卡吧.
没问题的话,再检查其它.
作者: xinshouzhe    时间: 2009-12-07 17:02
用的是无线路由器,用笔记本ping 170能ping 通,用smitty chinet重新设置了IP了,结果还是一样。
作者: xinshouzhe    时间: 2009-12-07 17:16
现在又出现一个新情况,启动机器之后CDE无法正常启动,提示用失败模式进入。但是之前能够正常启动。我在smitty resolv.conf 里停用NAMESERVER之后,用cat /etc/rc.dt;exit可以启动CDE,却ping不通外网了,默认网关还可以ping通。但是重启之后CDE还是无法正常启动,需要从失败模式进入。

未命名.jpg (50.05 KB, 下载次数: 40)

未命名.jpg

作者: meilixueshan    时间: 2009-12-07 17:41
看看hosts文件里的主机名对不对啊?
作者: xinshouzhe    时间: 2009-12-08 10:04
标题: 回复 #35 meilixueshan 的帖子
#cat /etc/hosts
---------------------------------------------------------------
----------------------------------------------------------------
------------------------------------------------------------------
# Internet Address      Hostname        # Comments
# 192.9.200.1           net0sample      # ethernet name/address
# 128.100.0.1           token0sample    # token ring name/address
# 10.2.0.2              x25sample       # x.25 name/address
127.0.0.1               loopback localhost      # loopback (lo0) name/address
192.168.0.18    44p170


这个主机名没有问题吧。

[ 本帖最后由 xinshouzhe 于 2009-12-8 10:06 编辑 ]
作者: xinshouzhe    时间: 2009-12-10 16:42
怎么就没人回帖了呢?
作者: chalylau    时间: 2009-12-11 11:28
原帖由 xinshouzhe 于 2009-12-10 16:42 发表
怎么就没人回帖了呢?

拿个笔记本跟他直连,就能通的话就说明网卡没问题




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2