Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Oct 2011 02:30:17 +0400
From:      Andrey Zonov <andrey@zonov.org>
To:        Brian Somers <brian@freebsd.org>
Cc:        "Rashid N. Achilov" <achilov-rn@askd.ru>, freebsd-net@freebsd.org
Subject:   Re: strange ping on local address
Message-ID:  <4E879479.7030406@zonov.org>
In-Reply-To: <20110730194332.GI88174@thong.lan.Awfulhak.org>
References:  <201107221454.11469.achilov-rn@askd.ru> <20110730194332.GI88174@thong.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Yes, that helps. Source IP address is now the same as destination.
Also helps reconfigure main interface, and now source IP address is 
127.0.0.1 (and that's correct behaviour).

-- 
Andrey Zonov


30.07.2011 23:43, Brian Somers пишет:
> 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@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?
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E879479.7030406>