From owner-freebsd-net@FreeBSD.ORG Mon Nov 22 02:59:19 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 A7D01106566C for ; Mon, 22 Nov 2010 02:59:19 +0000 (UTC) (envelope-from siquijorphilips@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5E6C18FC0A for ; Mon, 22 Nov 2010 02:59:19 +0000 (UTC) Received: by qwi4 with SMTP id 4so324830qwi.13 for ; Sun, 21 Nov 2010 18:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=PmhJrwswoZtQmdmdqqQg3mt0niebRRVlZyaPWkdYnE8=; b=PhYF6YTeTdL29ld7Z5AKWIAEBmqVUaAL3Qqm7IF9e5ucAj6tQeu3biH7cGgbfhUZFj Df4p7cHynhA6D5YBgs83i17y0oCIU6kPRjYpe1t2EdsW5Zy9SW7CxVLmZk21vKdDI4tq tLRQpEQ446nhp2rDWSIZaLVkZ75EnZ/Nlk22k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pSmOwseV4Mwo1edxB7SNzDojeu4DSaufRfDzrC9glhUBsUji3dtOaJsV7dQcy68irY N5hzKWd5nngtI3rcp5SpOjdATo295YG3LZo6xYkhyIQxmqFX3ufOELtoUzYJnoWjNCOe AGPJu9p+fITo72DAn08V56fROYzIRAlqMNLB4= MIME-Version: 1.0 Received: by 10.229.224.212 with SMTP id ip20mr4443563qcb.278.1290394758583; Sun, 21 Nov 2010 18:59:18 -0800 (PST) Received: by 10.229.32.140 with HTTP; Sun, 21 Nov 2010 18:59:18 -0800 (PST) In-Reply-To: <20101119.095212.74667071.sthaug@nethelp.no> References: <20101119.095212.74667071.sthaug@nethelp.no> Date: Mon, 22 Nov 2010 10:59:18 +0800 Message-ID: From: Siquijor Philips To: sthaug@nethelp.no Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 22 Nov 2010 02:59:19 -0000 On Fri, Nov 19, 2010 at 4:52 PM, wrote: >> > 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? >> >> You mean to say that you want your router to act as the default IPv6 >> gateway only advertising default route via RA and the IPv6 prefixes >> are managed by other means such as DHCPv6 server? > > Correct. > >> Because by its the >> only way I can think of with your case now. You can specify >> 'pinfoflags' with 'l' in the /etc/rtadvd.conf to suppress the prefix >> information option being advertised. > > Specifying a prefix ("addr") and "pinfoflags" with "l" makes rtadvd send > RAs with a prefix info option option which contains the onlink flag. It > certainly does not suppress the prefix info option. > > Specifying a prefix ("addr") and "pinfoflags" without "a" makes rtadvd > send RAs with a prefix info option which does not contain the auto flag > - this prevents SLAAC from taking place. > > I would like to get rtadvd to send RAs completely *without* a prefix > info option. My Juniper routers at work can do this just fine... > Oh I see. I haven't tried this case with FreeBSD configuring RA with default route info only. So, how your Juniper router coordinate your DHCPv6 server to inform the hosts or nodes where to get prefix info since then your router wasn't configured with pinfoflags options? Or the hosts are just configured with DHCPv6 client informing directly the DHCPv6 server for IPv6 address info while its default route is obtainable via RA through SLAAC? > Steinar Haug, Nethelp consulting, sthaug@nethelp.no > > > > Regards, Siquijor