Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Nov 2007 14:17:48 +0900
From:      Byung-Hee HWANG <bh@izb.knu.ac.kr>
To:        Christopher Arnold <chris@arnold.se>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Correct way to enable ipv6 and sixxs-aiccu?
Message-ID:  <1193894268.954.13.camel@viola.izb.knu.ac.kr>
In-Reply-To: <1193870207.1011.38.camel@viola.izb.knu.ac.kr>
References:  <20071031152942.N1222@chrishome.localnet> <1193849325.14557.31.camel@viola.izb.knu.ac.kr> <20071031181637.X2005@chrishome.localnet> <1193870207.1011.38.camel@viola.izb.knu.ac.kr>

next in thread | previous in thread | raw e-mail | index | archive | help
and..

On Thu, 2007-11-01 at 07:36 +0900, Byung-Hee HWANG wrote:
> 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"

Above net.inet6.ip6.accetp_rtadv value is made by rtsol(8) on boot if
you set just one line (ipv6_enable="YES") in /etc/rc.conf ;; So we don't
need to force the value (net.inet6.ip6.accept_rtadvd) manually. I
verified the scenario by testing again with 7.0-BETA1 machine. Yep, the
7.0-BETA machine is the End-Host.

> 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,
> 
-- 
"I would work for you like your sons."
		-- Tom Hagen, "Chapter 1", page 52




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1193894268.954.13.camel>