免费注册 查看新帖 |

Chinaunix

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

ping 不通网关,求救 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-14 13:10 |只看该作者 |倒序浏览
机器:cp1500(1个440MH    casdZ)
系统:8 2/04
文件配置:
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.49 netmask ffffff00 broadcast 192.168.0.255
        ether 8:0:20:da:20:c0
hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 192.168.0.37 netmask ffffff00 broadcast 192.168.0.255
        ether 8:0:20:da:20:c0


# more /etc/hosts
127.0.0.1       localhost      
192.168.0.49    test    loghost   test.com
192.168.0.205   suntest


# more /etc/defaultrouter
192.168.0.1
# tail /etc/netmasks
# A, B, or C network number.  In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.0.0     255.255.255.0


# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0          192.168.0.49          U        1     24  hme0
192.168.0.0          192.168.0.37          U        1      0  hme1
224.0.0.0            192.168.0.49          U        1      0  hme0
default              192.168.0.1           UG       1      0  
127.0.0.1            127.0.0.1             UH       2      8  lo0


# arp -a

Net to Media Table: IPv4
Device   IP Address               Mask      Flags   Phys Addr
------ -------------------- --------------- ----- ---------------
hme0   224.0.0.1            255.255.255.255       01:00:5e:00:00:01
hme1   192.168.0.37         255.255.255.255 SP    08:00:20:da:20:c0
hme0   test                 255.255.255.255 SP    08:00:20:da:20:c0
hme1   224.0.0.0            240.0.0.0       SM    01:00:5e:00:00:00
hme0   224.0.0.0            240.0.0.0       SM    01:00:5e:00:00:00


# ping 192.168.0.1
no answer from 192.168.0.1
# ping 192.168.0.49
192.168.0.49 is alive
# ping 192.168.0.37
192.168.0.37 is alive
#

论坛徽章:
0
2 [报告]
发表于 2006-06-14 13:12 |只看该作者
是不是 arp的问题 ?

论坛徽章:
0
3 [报告]
发表于 2006-06-14 13:16 |只看该作者
原帖由 Lainhearter 于 2006-6-14 13:12 发表
是不是 arp的问题 ?

为什么不考虑一下网关方面的原因呢?

论坛徽章:
0
4 [报告]
发表于 2006-06-14 13:17 |只看该作者
你确定192.168.0.1这台机器是正常的?

或者是在不同的VLAN里面?

论坛徽章:
0
5 [报告]
发表于 2006-06-14 13:19 |只看该作者
ifconfig hme0 ether  00:50:56:c0:00:01

论坛徽章:
0
6 [报告]
发表于 2006-06-14 13:19 |只看该作者
网关已经配置了,还有其他网关方面的操作吗?交换机是没问题的 ,网线接到别的机器是也通的

论坛徽章:
0
7 [报告]
发表于 2006-06-14 13:20 |只看该作者
交换机没划VLAN,不会是VLAN的原因

论坛徽章:
0
8 [报告]
发表于 2006-06-14 13:22 |只看该作者
原帖由 511i3 于 2006-6-14 13:19 发表
ifconfig hme0 ether  00:50:56:c0:00:01



我的ifconfig -a里已经认到MAC地址了,不用这么作了吧

论坛徽章:
0
9 [报告]
发表于 2006-06-14 13:26 |只看该作者
原帖由 Lainhearter 于 2006-6-14 13:22 发表



我的ifconfig -a里已经认到MAC地址了,不用这么作了吧


你的两个卡的mac地址是一样的。

论坛徽章:
0
10 [报告]
发表于 2006-06-14 13:36 |只看该作者
hme0和hme1在一块板上
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP