From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 24 16:40:03 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EB7916A469 for ; Wed, 24 Oct 2007 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2C41213C4BD for ; Wed, 24 Oct 2007 16:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9OGe2CD060361 for ; Wed, 24 Oct 2007 16:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9OGe2vc060360; Wed, 24 Oct 2007 16:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 24 Oct 2007 16:40:02 GMT Resent-Message-Id: <200710241640.l9OGe2vc060360@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jacek Zapala Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED17B16A419 for ; Wed, 24 Oct 2007 16:38:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E7A8013C48A for ; Wed, 24 Oct 2007 16:38:21 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9OGbse7017557 for ; Wed, 24 Oct 2007 16:37:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9OGbsIm017556; Wed, 24 Oct 2007 16:37:54 GMT (envelope-from nobody) Message-Id: <200710241637.l9OGbsIm017556@www.freebsd.org> Date: Wed, 24 Oct 2007 16:37:54 GMT From: Jacek Zapala To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/117456: ipv6 neighbour discovery / bce multicast problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 16:40:03 -0000 >Number: 117456 >Category: kern >Synopsis: ipv6 neighbour discovery / bce multicast problem >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 24 16:40:02 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Jacek Zapala >Release: 6.2-RELEASE-p8 >Organization: >Environment: FreeBSD 6.2-RELEASE-p8 #0: Mon Oct 15 15:29:48 CEST 2007 root@server:/usr/src/sys/i386/compile/DELL_2950 i386 >Description: There are two FreeBSD-6.2 servers on the same subnet: A (2001:XXXX:YYYY:1::270) and B (2001:XXXX:YYYY:1::267) I try to ping6 B from A. B does not see neighbour discovery packets sent by A. It starts to see them just after enabling promiscuous mode on B. A:~# ifconfig bce0 bce0: flags=8843 mtu 1500 options=3b inet6 fe80::21a:a0ff:fe0e:8990%bce0 prefixlen 64 scopeid 0x1 inet6 2001:XXXX:YYYY:1::270 prefixlen 120 inet6 2001:XXXX:YYYY:1::272 prefixlen 120 (inet4 addresses deleted) ether 00:1a:a0:0e:89:90 media: Ethernet autoselect (100baseTX ) status: active B:~# ifconfig bce0 bce0: flags=8843 mtu 1500 options=3b inet6 fe80::21a:a0ff:fe34:e724%bce0 prefixlen 64 scopeid 0x1 inet6 2001:XXXX:YYYY:1::267 prefixlen 120 inet6 2001:XXXX:YYYY:1::269 prefixlen 120 (inet4 addresses deleted) ether 00:1a:a0:34:e7:24 media: Ethernet autoselect (100baseTX ) status: active B:~# netstat -ia Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll bce0 1500 00:1a:a0:34:e7:24 398232 0 416485 0 0 33:33:ff:00:02:69 729 8 33:33:ff:00:02:67 729 8 01:00:5e:00:00:01 729 8 33:33:f2:4c:bf:48 729 8 33:33:00:00:00:01 729 8 33:33:ff:34:e7:24 729 8 Packets on the wire (sniffed on third machine): 16:06:55.584139 00:1a:a0:0e:89:90 > 33:33:ff:00:02:67, ethertype IPv6 (0x86dd), length 86: 2001:XXXX:YYYY:1::270 > ff02::1:ff00:267: ICMP6, neighbor solicitation, who has 2001:XXXX:YYYY:1::267, length 32 16:06:56.607487 00:1a:a0:0e:89:90 > 33:33:ff:00:02:67, ethertype IPv6 (0x86dd), length 86: 2001:XXXX:YYYY:1::270 > ff02::1:ff00:267: ICMP6, neighbor solicitation, who has 2001:XXXX:YYYY:1::267, length 32 B does not see them: B:~# tcpdump -n -p host 2001:XXXX:YYYY:1::270 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bce0, link-type EN10MB (Ethernet), capture size 96 bytes ^C 0 packets captured 746805 packets received by filter 0 packets dropped by kernel Enabling promiscuous mode (no -p option) solves the problem: B:~# tcpdump -n host 2001:XXXX:YYYY:1::270 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bce0, link-type EN10MB (Ethernet), capture size 96 bytes 16:46:11.348129 IP6 2001:XXXX:YYYY:1::270 > ff02::1:ff00:267: ICMP6, neighbor solicitation, who has 2001:XXXX:YYYY:1::267, length 32 16:46:11.348202 IP6 2001:XXXX:YYYY:1::267 > 2001:XXXX:YYYY:1::270: ICMP6, neighbor advertisement, tgt is 2001:XXXX:YYYY:1::267, length 32 16:46:11.348373 IP6 2001:XXXX:YYYY:1::270 > 2001:XXXX:YYYY:1::267: ICMP6, echo request, seq 258, length 16 16:46:11.348393 IP6 2001:XXXX:YYYY:1::267 > 2001:XXXX:YYYY:1::270: ICMP6, echo reply, seq 258, length 16 Do I miss something very obvious? I use pf, but pfctl -d does not help >How-To-Repeat: Well, boot a machine and try to ping6 it. I know it sounds like I'm drunk ;-) >Fix: >Release-Note: >Audit-Trail: >Unformatted: