From owner-freebsd-net@FreeBSD.ORG Thu Nov 18 12:58:43 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 2500A1065673 for ; Thu, 18 Nov 2010 12:58:43 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.freebsd.org (Postfix) with SMTP id 72F738FC1E for ; Thu, 18 Nov 2010 12:58:42 +0000 (UTC) Received: (qmail 52320 invoked from network); 18 Nov 2010 12:58:40 -0000 Received: from bizet.nethelp.no (HELO localhost) (195.1.209.33) by bizet.nethelp.no with SMTP; 18 Nov 2010 12:58:40 -0000 Date: Thu, 18 Nov 2010 13:58:40 +0100 (CET) Message-Id: <20101118.135840.74708328.sthaug@nethelp.no> To: bzeeb-lists@lists.zabbadoz.net From: sthaug@nethelp.no In-Reply-To: <20101118080153.Y24596@maildrop.int.zabbadoz.net> References: <20101110.125334.41669215.sthaug@nethelp.no> <20101118080153.Y24596@maildrop.int.zabbadoz.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 12:58:43 -0000 > > 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''. Steinar Haug, Nethelp consulting, sthaug@nethelp.no