From owner-freebsd-net@FreeBSD.ORG Fri Oct 1 04:18:46 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 DAE7B106566B for ; Fri, 1 Oct 2010 04:18:46 +0000 (UTC) (envelope-from dan@langille.org) Received: from nyi.unixathome.org (nyi.unixathome.org [64.147.113.42]) by mx1.freebsd.org (Postfix) with ESMTP id AB63D8FC13 for ; Fri, 1 Oct 2010 04:18:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by nyi.unixathome.org (Postfix) with ESMTP id A6AAA509A5 for ; Fri, 1 Oct 2010 05:18:45 +0100 (BST) X-Virus-Scanned: amavisd-new at unixathome.org Received: from nyi.unixathome.org ([127.0.0.1]) by localhost (nyi.unixathome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1yGtingZRnkJ for ; Fri, 1 Oct 2010 05:18:45 +0100 (BST) Received: from smtp-auth.unixathome.org (smtp-auth.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) by nyi.unixathome.org (Postfix) with ESMTPSA id 5E287509A3 for ; Fri, 1 Oct 2010 05:18:45 +0100 (BST) Message-ID: <4CA56123.2030304@langille.org> Date: Fri, 01 Oct 2010 00:18:43 -0400 From: Dan Langille Organization: The FreeBSD Diary User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4CA55041.7040001@langille.org> <4CA55725.10007@langille.org> In-Reply-To: <4CA55725.10007@langille.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ipv6 routing 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: Fri, 01 Oct 2010 04:18:47 -0000 On 9/30/2010 11:36 PM, Dan Langille wrote: > On 9/30/2010 11:06 PM, Dan Langille wrote: >> Hi folks, >> >> I'm setting up IPv6 at home. On the gateway, I can ping6 just fine. But >> not from within the LAN. >> >> I have: >> >> Routed /48: 2001:470:8a86::/48 >> Routed /64: 2001:470:1f07:b80::/64 >> >> On the gateway, I have this: >> >> # cat /etc/rtadvd.conf >> fxp1:\ >> :addrs#1:addr="2001:470:1f07:b80::":prefixlen#64:tc=ether: >> >> Where: fxp1 is on my internal LAN which has 2001:470:1f07:b80::1 as an >> IP address. (you should be able to ping6 that). >> >> Starting rtadvd I get: >> >> # /usr/sbin/rtadvd -dDf -c /etc/rtadvd.conf fxp1 >> rtadvd[33958]: fxp1 isn't defined in the configuration file >> or the configuration file doesn't exist. Treat it as default >> >> So why that message? And is it the cause of the 'no route to host' >> message below? >> >> rtadvd[33958]: RA timer on fxp1 is set to 16:0 >> rtadvd[33958]:
set timer to 15:998571. waiting for inputs or >> timeout >> rtadvd[33958]:
set timer to 0:4276. waiting for inputs or timeout >> rtadvd[33958]: RA timer on fxp1 is expired >> rtadvd[33958]: send RA on fxp1, # of waitings = 0 >> rtadvd[33958]: RA timer on fxp1 is set to 16:0 >> rtadvd[33958]:
set timer to 16:0. waiting for inputs or timeout >> rtadvd[33958]: RA received from 2001:470:1f07:b80::1 on fxp1 >> rtadvd[33958]:
set timer to 15:994315. waiting for inputs or >> timeout >> >> From a client on the LAN, I try this: >> >> $ ping6 ipv6.google.com >> ping6: UDP connect: No route to host >> >> From the same client (where em0 is the nic) >> >> $ netstat -nr -f inet6 | grep em0 >> fe80::%em0/64 link#1 U em0 >> fe80::21b:21ff:fe51:ab2d%em0 link#1 UHS lo0 >> ff01:1::/32 fe80::21b:21ff:fe51:ab2d%em0 U em0 >> ff02::%em0/32 fe80::21b:21ff:fe51:ab2d%em0 U em0 >> >> Can you see something I'm doing wrong? > > I am now convinced the problem is rtadvd. Gateway and internal box are > both FreeBSd 8.1-stable. > > After I issued this command on the server: > > # route -n add -inet6 2001:470:1f07:b80::/64 -interface fxp1 > add net 2001:470:1f07:b80::/64: gateway fxp1 > > And this one on the internal box: > > $ sudo route add -inet6 default 2001:470:1f07:b80::1 > Password: > add net default: gateway 2001:470:1f07:b80::1 > > ... things started working: > > $ ping6 ipv6.google.com > PING6(56=40+8+8 bytes) 2001:470:1f07:b80::2 --> 2001:4860:800f::63 > 16 bytes from 2001:4860:800f::63, icmp_seq=0 hlim=57 time=23.466 ms > 16 bytes from 2001:4860:800f::63, icmp_seq=1 hlim=57 time=23.221 ms > ^C > --- ipv6.l.google.com ping6 statistics --- > 2 packets transmitted, 2 packets received, 0.0% packet loss > round-trip min/avg/max/std-dev = 23.221/23.343/23.466/0.123 ms > > Would you agree that rtadvd may be the issue? changing the conf file to this helps with the startup messages: # cat /etc/rtadvd.conf fxp1:\ :addr="2001:470:1f07:b80::":prefixlen#64: In this regard, the handbook may require updating. However, clients on my LAN are unable to get any IPv6 routing information despite having ipv6_enable="YES" in /etc/rc.conf. Running rtsol on the client doesn't get it an IPv6 address. However, we can see that rtadvd is processing the requests; # /usr/sbin/rtadvd -dDf -c /etc/rtadvd.conf fxp1 rtadvd[40477]: RA timer on fxp1 is set to 16:0 rtadvd[40477]:
set timer to 15:998900. waiting for inputs or timeout rtadvd[40477]:
set timer to 0:4953. waiting for inputs or timeout rtadvd[40477]: RA timer on fxp1 is expired rtadvd[40477]: send RA on fxp1, # of waitings = 0 rtadvd[40477]: RA timer on fxp1 is set to 16:0 rtadvd[40477]:
set timer to 16:0. waiting for inputs or timeout rtadvd[40477]: RA received from 2001:470:1f07:b80::1 on fxp1 rtadvd[40477]:
set timer to 15:994797. waiting for inputs or timeout rtadvd[40477]:
set timer to 0:4517. waiting for inputs or timeout rtadvd[40477]: RA timer on fxp1 is expired rtadvd[40477]: send RA on fxp1, # of waitings = 0 rtadvd[40477]: RA timer on fxp1 is set to 16:0 rtadvd[40477]:
set timer to 16:0. waiting for inputs or timeout rtadvd[40477]: RA received from 2001:470:1f07:b80::1 on fxp1 rtadvd[40477]:
set timer to 15:994119. waiting for inputs or timeout rtadvd[40477]: RS received from fe80::21b:21ff:fe51:ab2d on fxp1 rtadvd[40477]:
set timer to 0:490712. waiting for inputs or timeout rtadvd[40477]: RA timer on fxp1 is expired rtadvd[40477]: send RA on fxp1, # of waitings = 1 rtadvd[40477]: RA timer on fxp1 is set to 518:0 rtadvd[40477]:
set timer to 518:0. waiting for inputs or timeout rtadvd[40477]: RA received from 2001:470:1f07:b80::1 on fxp1 rtadvd[40477]:
set timer to 517:994623. waiting for inputs or timeout rtadvd[40477]: RS received from fe80::21b:21ff:fe51:ab2d on fxp1 rtadvd[40477]:
set timer to 0:426786. waiting for inputs or timeout rtadvd[40477]: RA timer on fxp1 is expired rtadvd[40477]: send RA on fxp1, # of waitings = 1 rtadvd[40477]: RA timer on fxp1 is set to 239:0 -- Dan Langille - http://langille.org/