From owner-freebsd-net@FreeBSD.ORG Wed Oct 31 22:36:54 2007 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 96C5416A418 for ; Wed, 31 Oct 2007 22:36:54 +0000 (UTC) (envelope-from bh@izb.knu.ac.kr) Received: from izb.knu.ac.kr (unknown [IPv6:2002:9be6:9d5d:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 22F7813C4AA for ; Wed, 31 Oct 2007 22:36:54 +0000 (UTC) (envelope-from bh@izb.knu.ac.kr) Received: by draba.izb.knu.ac.kr (Postfix, from userid 59) id 282AD3EA6; Thu, 1 Nov 2007 07:36:53 +0900 (KST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on draba.izb.knu.ac.kr X-Spam-Level: X-Spam-Status: No, score=-16.5 required=15.1 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VERIFIED autolearn=disabled version=3.2.3 X-Spam-Comment: DKIM? See http://www.google.com/search?btnI&q=RFC+4871 Received: from izb.knu.ac.kr (localhost.izb.knu.ac.kr [127.0.0.1]) by draba.izb.knu.ac.kr (Postfix) with ESMTP id 3D3123EA5; Thu, 1 Nov 2007 07:36:48 +0900 (KST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=izb.knu.ac.kr; h=subject: from:reply-to:to:cc:in-reply-to:references:content-type:date: message-id:mime-version:content-transfer-encoding; q=dns/txt; s= s1024; bh=jq+d+SLOZxkMCr8uVB8+lo/ueMI=; b=IBiYRKwr+n+amexH/8jKUd Gv1WoGeDIP3849qwHOm1UtLArgiQZmgL9f0nAq5lnEaKiBeQbGPr70/j4w09i+FL dGDjNfonAC/19T0eEWEOqYrEC/rsNoLluo8h6rE2ehsnhO1qWIe05RN474ahH4nT RvPyt1Ea3fLU1cWDjjyGM= Received: from viola.izb.knu.ac.kr (viola.izb.knu.ac.kr [IPv6:2002:9be6:9d5d:2:20b:6aff:fe56:969f]) by draba.izb.knu.ac.kr (Postfix) with ESMTP id 099033EA4; Thu, 1 Nov 2007 07:36:48 +0900 (KST) Received: from [IPv6:2002:9be6:9d5d:2:20b:6aff:fe56:969f] (viola.izb.knu.ac.kr [IPv6:2002:9be6:9d5d:2:20b:6aff:fe56:969f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Authenticated sender: bh.rfc4871@viola.izb.knu.ac.kr) by viola.izb.knu.ac.kr (Postfix) with ESMTP id 290525E13; Thu, 1 Nov 2007 07:36:48 +0900 (KST) From: Byung-Hee HWANG To: Christopher Arnold In-Reply-To: <20071031181637.X2005@chrishome.localnet> References: <20071031152942.N1222@chrishome.localnet> <1193849325.14557.31.camel@viola.izb.knu.ac.kr> <20071031181637.X2005@chrishome.localnet> Content-Type: text/plain Organization: InZealBomb Date: Thu, 01 Nov 2007 07:36:47 +0900 Message-Id: <1193870207.1011.38.camel@viola.izb.knu.ac.kr> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Correct way to enable ipv6 and sixxs-aiccu? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bh@izb.knu.ac.kr List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 22:36:54 -0000 On Wed, 2007-10-31 at 18:32 +0100, Christopher Arnold wrote: > > On Thu, 1 Nov 2007, Byung-Hee HWANG wrote: > > > On Wed, 2007-10-31 at 15:49 +0100, Christopher Arnold wrote: > >> While brushing up my ipv6 knowledge i ran into an issue with sixxs-aiccu > >> and configuring ipv6 in rc.conf: > >> > >> I have manually configured my gateway to route ipv6 to my internal > >> network, and this works without problems. > >> But as soon as i have ipv6_gateway_enable="YES" in /etc/rc.conf rtadvd > >> doesn't set an ipv6 address on my vr0 interface. (Btw. the only interface > >> i have on the machine.) > > > > Well, we don't know how to you configure your IPv6 router in manual. So > > you'd better show us the information like your manual scripts if you > > want to give more correct advices ;; > > > Ok to be totally clear: > # more /etc/rtadvd.conf > vr0:\ > :addr="2001:16d8:ff50::":prefixlen#64: > > > Dosn't Work: > /etc/rc.conf: ipv6_gateway_enable="YES" > After boot i execute "rtadvd vr0" as root. > > Works: > /etc/rc.conf: ipv6_gateway_enable="NO" > /etc/syscontrol: net.inet6.ip6.forwarding=1 > > After boot i execute "rtadvd vr0" as root. > > The difference i belive is the setting of net.inet6.ip6.accept_rtadv=0 in > /etc/rc.d/network_ipv6 . > > >> After digging around a bit i noticed that /etc/rc.d/network_ipv6 sets > >> net.inet6.ip6.accept_rtadv=0 and if i manually set > >> net.inet6.ip6.accept_rtadv=1 and then restart rtadvd things work and i get > >> an address on my interface. > > > >> Since i guess dissabling accept_rtadv is done for a reason i wonder what > >> is the correct way to setup ipv6 in /etc/rc.conf is? > > > > Do you have native IPv6 addresses? If you do, i am proud of you. Anyway > > you need to have a look IPv6 section of FreeBSD Handbook, rtadvd(8) and > > rtadvd.conf(5). It will give you help. And you need to study IPv6 stuff > > because it is not as easy as it seems, AFAIK. I mean you can solve your > > matters if you study more. > > > Im trying as we speak, just wanted some input on how things are supposed > to work. > > Im running /usr/ports/net/sixxs-aiccu to bring up the tunnel and my > adresses are assigned from them. www.sixxs.net for more information. > > The tunnel works all the time (on the tun0 interface) so there isn't a > problem with my ipv6 connectivity. So i guess my question is: "Why is > net.inet6.ip6.accept_rtadv=0 in /etc/rc.d/network_ipv6 and how am i > supposed to configure ipv6 in /etc/rc.conf?" > > PS: sixxs-aiccu is run from /usr/local/etc/rc.d/ so the reason things > doesn't work could be related to the fact that my tunnel goes live late in > the boot. To solve your matters, i tested an IPv6 rules by 6to4 with two FreeBSD machines. 1st machine is IPv6 router by rtadv(8). // 4.11-RELEASE 2nd machine is IPv6 host as endhost. // 7.0-BETA1 ### ### 1st machine's /etc/rc.conf: Router ### # IPv6: with rtadvd(8) ipv6_enable="YES" ipv6_network_interfaces="auto" ipv6_gateway_enable="YES" ipv6_prefix_ed1="2002:9be6:9d5d:0002" stf_interface_ipv4addr="155.230.157.93" stf_interface_ipv6_slaid="0001" ipv6_static_routes="default" ipv6_route_default="default 2002:c058:6301::" ipv6_ifconfig_ed1="2002:9be6:9d5d:2:0050:4d00:fe78:5df3 prefixlen 64" rtadvd_enable="YES" rtadvd_interfaces="ed1" ### ### 2nd machine's /etc/rc.conf: End-Host ### # IPv6: getting autoconfigured # net.inet6.ip6.accept_rtadv=1 (in /etc/sysctl.conf) ipv6_enable="YES" bh@viola:~> ping6 -c 3 castle.jp.freebsd.org. PING6(56=40+8+8 bytes) 2002:9be6:9d5d:2:20b:6aff:fe56:969f --> 2001:218:422:1::15 16 bytes from 2001:218:422:1::15, icmp_seq=0 hlim=49 time=388.469 ms 16 bytes from 2001:218:422:1::15, icmp_seq=1 hlim=49 time=378.904 ms 16 bytes from 2001:218:422:1::15, icmp_seq=2 hlim=49 time=395.308 ms --- castle.jp.freebsd.org ping6 statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 378.904/387.560/395.308/6.728 ms bh@viola:~> After all, two machines works fine each other without any problems. Then you can figure out later your own answer. Sincerely, -- "Godfather, Godfather, save me from death, I beg of you." -- Genco Abbandando, "Chapter 1", page 46