Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2008 21:58:59 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-net@freebsd.org
Subject:   IPv6 routing help?
Message-ID:  <giedif$bd0$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?giedif$bd0$1>