strange ping on local address

Brian Somers brian at freebsd.org
Sat Jul 30 19:58:40 UTC 2011


On Fri, Jul 22, 2011 at 02:54:11PM +0700, Rashid N. Achilov wrote:
> When I try to ping local interface - ping missed! When I try to ping this 
> interface with -S key (specified the same address) - working. What's a bug? 
> In RELENG_7 worked.
> 
> local interface on box:
> em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 
> 1500        
> options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC>
>         ether 00:xx:xx:xx:xx:xx
>         inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> 
> ping ordinary:
> master:[root] 105>ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1): 56 data bytes
> ^C
> --- 192.168.1.1 ping statistics ---
> 2 packets transmitted, 0 packets received, 100.0% packet loss
> 
> ping with -S key:
> master:[root] 106>ping -S 192.168.1.1 192.168.1.1
> PING 192.168.1.1 (192.168.1.1) from 192.168.1.1: 56 data bytes
> 64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.022 ms
> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.030 ms
> ^C
> --- 192.168.1.1 ping statistics ---
> 2 packets transmitted, 2 packets received, 0.0% packet loss
> round-trip min/avg/max/stddev = 0.022/0.026/0.030/0.004 ms
> 
> master:[root] 103>uname -a
> FreeBSD master.askd.ru 8.2-STABLE FreeBSD 8.2-STABLE #1: Fri Jul 15 18:23:18
> NOVST 2011     root at master-new.askd.gmbh:/usr/obj/usr/src/sys/Master  i386
> 
> What's a terrible? I'm understand, that ping "itself" is rarely situation, but 
> it worked in 7.x! 

What happens if you "route delete 192.168.1.1" and then try the ping
without using -S?

-- 
Brian Somers                                          <brian at Awfulhak.org>
Don't _EVER_ lose your sense of humour !               <brian at FreeBSD.org>


More information about the freebsd-net mailing list