From owner-freebsd-net@FreeBSD.ORG Sun Oct 1 03:34:06 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06BB216A412 for ; Sun, 1 Oct 2006 03:34:06 +0000 (UTC) (envelope-from motoyuki@mk.bsdclub.org) Received: from mail.mk.bsdclub.org (l209160.ppp.asahi-net.or.jp [218.219.209.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7242D43D49 for ; Sun, 1 Oct 2006 03:34:04 +0000 (GMT) (envelope-from motoyuki@mk.bsdclub.org) Received: from mserver.mk.bsdclub.org (nobody@localhost.mk.bsdclub.org [127.0.0.1]) by mail.mk.bsdclub.org (8.13.7+3.5Wbeta/8.13.7) with ESMTP/inet id k913XoCt087276; Sun, 1 Oct 2006 12:33:50 +0900 (JST) (envelope-from motoyuki@mserver.mk.bsdclub.org) Message-Id: <200610010333.k913XoCt087276@mail.mk.bsdclub.org> To: Stefan `Sec` Zehl From: Motoyuki Konno References: <20061001004527.GA8387@ice.42.org> User-Agent: EMH/1.10.0 SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?S?= =?ISO-8859-4?Q?hij=F2?=) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Date: Sun, 01 Oct 2006 12:33:50 +0900 Sender: motoyuki@mk.bsdclub.org Cc: freebsd-net@freebsd.org Subject: Re: ipv6 and magically vanishing routes via gif0 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: Sun, 01 Oct 2006 03:34:06 -0000 Hi, I had the same problem on my FreeBSD 6-STABLE box. Fix was already committed to -current (src/sys/netinet6/nd6.c rev 1.69), but not yet to 6-STABLE. Try src/sys/netinet6/nd6.c rev 1.48.2.13 (older version) instead of 1.48.2.14. -- motoyuki Stefan `Sec` Zehl wrote: > Hi, > > I just upgraded from FreeBSD-5 to -6, and now my default route via gif0 > vanishes after 7 seconds. > > | ice:~#ifconfig gif0 > | gif0: flags=8051 mtu 1280 > | tunnel inet 194.77.85.2 --> 193.149.44.208 > | inet6 fe80::20e:a6ff:fe04:ea37%gif0 prefixlen 64 scopeid 0x14 > | inet6 2001:608:9::1 prefixlen 128 > | > | ice:~#route add -inet6 default -interface gif0 > | add net default: gateway gif0 [snip] > In fact, any route '-interface gif0' will vanish 7 seconds after the > first packet via that link. > > After some wild guesses, I found out, that ndp seems to be the culprit > here. -- If I disable ndp on gif0 with > > | ice:~#ndp -i gif0 -- -nud > | linkmtu=0, maxmtu=1280, curhlim=64, basereachable=30s0ms, reachable=18s, re trans=1s0ms > | Flags: accept_rtadv > > Then the routing table stays as it should. > > The question is, am I missing something here? Can anybody reproduce that > problem? > > It seems wrong that the kernel would delete static routes without even a > single log message. Furthermore I find it kind of strange that there is > neighbour discovery happening at all on an tunnel interface.