From owner-freebsd-net@FreeBSD.ORG Sat Oct 1 22:53:50 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B39CD106564A; Sat, 1 Oct 2011 22:53:50 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1487D8FC08; Sat, 1 Oct 2011 22:53:49 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so4093040bkb.13 for ; Sat, 01 Oct 2011 15:53:48 -0700 (PDT) Received: by 10.204.152.71 with SMTP id f7mr6239462bkw.53.1317508220531; Sat, 01 Oct 2011 15:30:20 -0700 (PDT) Received: from [10.254.254.77] (ppp95-165-158-148.pppoe.spdop.ru. [95.165.158.148]) by mx.google.com with ESMTPS id v16sm8624355bkd.6.2011.10.01.15.30.19 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 15:30:19 -0700 (PDT) Message-ID: <4E879479.7030406@zonov.org> Date: Sun, 02 Oct 2011 02:30:17 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Brian Somers References: <201107221454.11469.achilov-rn@askd.ru> <20110730194332.GI88174@thong.lan.Awfulhak.org> In-Reply-To: <20110730194332.GI88174@thong.lan.Awfulhak.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: "Rashid N. Achilov" , freebsd-net@freebsd.org Subject: Re: strange ping on local address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Oct 2011 22:53:50 -0000 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 metric 0 mtu >> 1500 >> options=219b >> ether 00:xx:xx:xx:xx:xx >> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 >> media: Ethernet autoselect (100baseTX) >> 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? >