Date: Fri, 22 Jul 2011 08:11:20 GMT From: "Rashid N. Achilov" <achilov-rn@askd.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/159103: ping local address on box shows source address 0.0.0.0 Message-ID: <201107220811.p6M8BK65094499@red.freebsd.org> Resent-Message-ID: <201107220820.p6M8K7tW059167@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159103 >Category: kern >Synopsis: ping local address on box shows source address 0.0.0.0 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 22 08:20:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Rashid N. Achilov >Release: 8.2-STABLE >Organization: LLC "AS-System Complex" >Environment: System: 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 Interface: 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 >Description: When I try to do ordinary ping for local address in interface em0, ping shows 100% lost master:[root] 102>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 When I do the same, but with hardly specified IP address, all OK: master:[root] 109>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.019 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.019/0.025/0.030/0.005 ms When I try to looking, what's wrong, I see, that first time source address is 0.0.0.0! master:[root] 113>tcpdump -i lo0 -n icmp and host 192.168.1.1 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo0, link-type NULL (BSD loopback), capture size 96 bytes 15:08:37.278462 IP 0.0.0.0 > 192.168.1.1: ICMP echo request, id 29301, seq 3, length 64 15:08:38.277404 IP 0.0.0.0 > 192.168.1.1: ICMP echo request, id 29301, seq 4, length 64 15:08:43.163123 IP 0.0.0.0 > 192.168.1.1: ICMP echo request, id 41845, seq 0, length 64 ^C 3 packets captured 109 packets received by filter 0 packets dropped by kernel Same way at FreeBSD 7.3-RELEASE all OK: (192.168.1.94 is their address) to-594:[root] 139>ping 192.168.1.94 PING 192.168.1.94 (192.168.1.94): 56 data bytes 64 bytes from 192.168.1.94: icmp_seq=0 ttl=64 time=0.031 ms 64 bytes from 192.168.1.94: icmp_seq=1 ttl=64 time=0.041 ms ^C --- 192.168.1.94 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.031/0.036/0.041/0.005 ms >How-To-Repeat: Install FreeBSD 8.x. Configure any local interface. Try to ping it. You failed. >Fix: None >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107220811.p6M8BK65094499>