IPv6 routing help?

Ivan Voras ivoras at freebsd.org
Thu Dec 18 12:59:12 PST 2008


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=1 ttl=64 time=0.492 ms
64 bytes from 2002:xxyy:xxyy::1: icmp_seq=2 ttl=64 time=0.501 ms

--- 2002:xxyy:xxyy::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 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
From fe80::250:8bff:feeb:8401 icmp_seq=1 Destination unreachable: Beyond
scope of source address
From fe80::250:8bff:feeb:8401 icmp_seq=2 Destination unreachable: Beyond
scope of source address

--- www.freebsd.org ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1000ms

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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20081218/a7da4e9b/signature.pgp


More information about the freebsd-net mailing list