From owner-freebsd-net@FreeBSD.ORG Thu Dec 18 20:59:12 2008 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 24E571065670 for ; Thu, 18 Dec 2008 20:59:12 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A81AB8FC0C for ; Thu, 18 Dec 2008 20:59:11 +0000 (UTC) (envelope-from freebsd-net@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LDPxY-0004XP-Uz for freebsd-net@freebsd.org; Thu, 18 Dec 2008 20:59:05 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Dec 2008 20:59:04 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Dec 2008 20:59:04 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-net@freebsd.org From: Ivan Voras Date: Thu, 18 Dec 2008 21:58:59 +0100 Lines: 77 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4B8AA03C8457F77BAD33991E" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) X-Enigmail-Version: 0.95.0 Sender: news Subject: IPv6 routing help? 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 Dec 2008 20:59:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4B8AA03C8457F77BAD33991E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I'm experimenting with IPv6 and have 6to4 running on a machine (thanks to Hajimu UMEMOTO). I'm now trying to configure another system on a LAN, running Linux, to use the 6to4 one as a IPv6 router. I've configured ipv6 forwarding on the router, and started rtadvd. The client machine apparently sees the route and has autoconfigured the following: # ip -6 route show fe80::/64 dev eth0 metric 256 expires -205814sec mtu 1500 advmss 1440 hoplimit 4294967295 default via fe80::250:8bff:feeb:8401 dev eth0 proto kernel metric 1024 expires 1396sec mtu 1500 advmss 1440 hoplimit 64 The last line correctly lists the link-local ipv6 address of the router. This looks ok, except attempts to actually use ping6 on this address fail= : # ping6 fe80::250:8bff:feeb:8401 connect: Invalid argument But, pinging the router's external IPv6 address works from the client: # ping6 2002:xxyy:xxyy::1 PING 2002:xxyy:xxyy::1(2002:xxyy:xxyy::1) 56 data bytes 64 bytes from 2002:xxyy:xxyy::1: icmp_seq=3D1 ttl=3D64 time=3D0.492 ms 64 bytes from 2002:xxyy:xxyy::1: icmp_seq=3D2 ttl=3D64 time=3D0.501 ms --- 2002:xxyy:xxyy::1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev =3D 0.492/0.496/0.501/0.022 ms But pinging any outside address fails: # ping6 www.freebsd.org PING www.freebsd.org(www.freebsd.org) 56 data bytes =46rom fe80::250:8bff:feeb:8401 icmp_seq=3D1 Destination unreachable: Bey= ond scope of source address =46rom fe80::250:8bff:feeb:8401 icmp_seq=3D2 Destination unreachable: Bey= ond scope of source address --- www.freebsd.org ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1000= ms As far as I understand ipv6 (very little), this basically says the router told the client it can't send packets to outside addresses with source addresses that are link-local. Is this correct? However, adding an ipv6 address to the client, in this case 2002:xxyy:xxyy::10/64 doesn't help and breaks even pinging the router's external address. It looks to me like I'm missing something important in the relation between the link-local and the global addresses, but what? --------------enig4B8AA03C8457F77BAD33991E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFJSrmTldnAQVacBcgRAo/TAJdftGN9L99VxQbjAm3ctVlKl+60AJwIszMl j83pWien7JImZ2h3e6Sjnw== =ONqb -----END PGP SIGNATURE----- --------------enig4B8AA03C8457F77BAD33991E--