From owner-freebsd-net@FreeBSD.ORG Thu Nov 18 15:35:07 2010 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 CA5451065674 for ; Thu, 18 Nov 2010 15:35:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 5B6C38FC12 for ; Thu, 18 Nov 2010 15:35:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 61E3E41C750; Thu, 18 Nov 2010 16:35:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id YLAZWuYxS5Kw; Thu, 18 Nov 2010 16:35:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id EA0F841C749; Thu, 18 Nov 2010 16:35:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id B439F4448F3; Thu, 18 Nov 2010 15:31:10 +0000 (UTC) Date: Thu, 18 Nov 2010 15:31:10 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: sthaug@nethelp.no In-Reply-To: <20101118.135840.74708328.sthaug@nethelp.no> Message-ID: <20101118152809.C24596@maildrop.int.zabbadoz.net> References: <20101110.125334.41669215.sthaug@nethelp.no> <20101118080153.Y24596@maildrop.int.zabbadoz.net> <20101118.135840.74708328.sthaug@nethelp.no> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: How to generate IPv6 RA without any prefixes? 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: Thu, 18 Nov 2010 15:35:07 -0000 On Thu, 18 Nov 2010, sthaug@nethelp.no wrote: Hi Steinar, >>> In IPv6 it should be possible to generate a Router Advertisement which >>> contains no prefix options (the idea being that I want the host to >>> populate its default router list but nothing else). However, I cannot >>> seem to get rtadvd to do this. >>> >>> If I start rtadvd with no /etc/rtadvd.conf file, it sends RAs with a >>> prefix option corresponding to the IPv6 address of the interface. In >>> the /etc/rtadvd.conf I can explicitly specify prefixes ("addr"), but >>> I can't find any way to specify that no prefix options should be sent. >>> >>> Any suggestions? >> >> What if you start rtadvd with -s and have a basically empty (default) >> config file entry? >> >> I haven't checked but theat would be my best guess? > > Does not appear to work. With /etc/radvd.conf containing only: > > vlan0:\ > :raflags#128: > > and starting rtadvd with -s, it still announces the /64 prefix I have > on the vlan0 interface. > > It's possible we simply have some missing functionality here. The man > page for Mac OS X shows an "addrs" field which FreeBSD doesn't have - > but which still doesn't do quite what I want: > > http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man5/rtadvd.conf.5.html > > addrs (num) Number of prefixes. Its default is 0, so it must explicitly > be set to positive values if you want to specify any prefix > information option. If its value is 0, rtadvd(8) looks up the > system routing table and advertise the prefixes corresponding to > interface routes on the interface. If its value is more than 1, > you must specify the index of the prefix for each item below. > Indices vary from 0 to N-1, where N is the value of addrs. Each > index shall follow the name of each item, e.g., ``prefixlen2''. we'll have to redo some of rtsol(d)/rtadvd anyway as IANA has (long) assigned valid magic numbers for the formerly experimental options from the initial days. Can you open a PR and get it assigned to net@ or bz@, so this won't be lost? I am not sure I'll be able to look the next 10 days. /bz -- Bjoern A. Zeeb Welcome a new stage of life. Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html