2010年3月15日 / 1,772次阅读
TCPIP
如下是麦新杰做的两个ping广播地址的实验测试,现在想想是有些无聊。
Scenario#1:
ping一个直连网段的广播地址;Probe all the hosts in the network.
如下是在Cisco路由器上测试;
在windows xp上测试不通过,收不到任何回应,估计是tcp/ip实现不一样。
X1@DA#ping 192.168.1.255
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.255, timeout is 2 seconds:
Reply to request 0 from 192.168.1.2, 93 ms
Reply to request 0 from 192.168.1.3, 109 ms
Reply to request 1 from 192.168.1.3, 46 ms
Reply to request 1 from 192.168.1.2, 62 ms
Reply to request 2 from 192.168.1.3, 47 ms
Reply to request 2 from 192.168.1.2, 62 ms
Reply to request 3 from 192.168.1.3, 47 ms
Reply to request 3 from 192.168.1.2, 62 ms
Reply to request 4 from 192.168.1.3, 33 ms
Reply to request 4 from 192.168.1.2, 47 ms
X1@DA#show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.1 - 0001.96E4.E701 ARPA FastEthernet0/0
Internet 192.168.1.2 1 0001.4210.D2BA ARPA FastEthernet0/0
Internet 192.168.1.3 1 0001.C75E.85D6 ARPA FastEthernet0/0
Scenario#2:
ping一个非直连网段的广播地址;
ping一个非直连网段的广播地址,测试组网
从X2上ping X1上的那个网段的广播地址192.168.1.255;
X1@DA#
ICMP: echo reply sent, src 0.0.0.0, dst 192.168.2.1
ICMP: echo reply sent, src 0.0.0.0, dst 192.168.2.1
ICMP: echo reply sent, src 0.0.0.0, dst 192.168.2.1
ICMP: echo reply sent, src 0.0.0.0, dst 192.168.2.1
ICMP: echo reply sent, src 0.0.0.0, dst 192.168.2.1
Cisco路由判断出目的地址是一个广播地址,直接回应echo,但是源ip是0.0.0.0;
路由器终止广播报文,没有向外转发。
本文链接:https://www.maixj.net/ict/ping-guangbodizhi-5715
©Copyright 麦新杰 Since 2014 云上小悟独立博客版权所有 备案号:苏ICP备14045477号-1。云上小悟网站部分内容来源于网络,转载目的是为了整合信息,收藏学习,服务大家,有些转载内容也难以判断是否有侵权问题,如果侵犯了您的权益,请及时联系站长,我会立即删除。