Date: Thu, 25 May 2000 19:50:30 +0900 From: itojun@iijlab.net To: David Harmelin <david.harmelin@dante.org.uk> Cc: freebsd-net@freebsd.org Subject: Re: nd6_lookup: failed to add route for neighbor Message-ID: <14033.959251830@coconut.itojun.org> In-Reply-To: david.harmelin's message of Thu, 25 May 2000 10:29:57 %2B0100. <4.2.2.20000525102612.00b1ea30@alpha.dante.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
>The diagram is correct. >If I configure 3ffe:8038:80:3::3 to gif0, how is the mapping between that >address and fxp1 done? (there are more than one network card) you should have some address space assigned from the upstream, separately from 3ffe:8038:80:3::3. if you do not have one, then too bad, you cannot assign IPv6 address to fxp1 - you are assigned single IPv6 address for your tunnel, not for your ethernet. for example, suppose you have got 3ffe:8038:ffff::/48 address space assigned from the upstream. you have 65536 subnet addresses, starting from 3ffe:8038:ffff:0000::/64 to 3ffe:8038:ffff:ffff::/64, for you to play with. you need to pick one for the ethernet segment which is directly connected to fxp1, and configure that to fxp1. let's pick 3ffe:8038:ffff:0000::/64 for the ethernet segment. now, try % ifconfig fxp1 and see what is your link-local address, and what is your interface identifier. >fxp1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > media: Ethernet manual > inet xx.yy.zz.uu netmask 0xffffff00 broadcast xx.yy.zz.0 > inet6 fe80::a00:5aff:fe38:6f86%fxp1 prefixlen 64 scopeid 0x1 the IPv6 address staring from "fe80::" is the link-local address for fxp1. the lowermost 64 bits (a00:5aff:fe38:6f86) are interface identifier. you append the interface identifier to the address for segment, and make the address for fxp1. that is: 3ffe:8038:ffff:0000:a00:5aff:fe38:6f86 you need to configure it to fxp1. # ifconfig fxp1 inet6 3ffe:8038:ffff:0000:a00:5aff:fe38:6f86 \ prefixlen 64 alias (I'm not sure how to configure it in freebsd /etc/rc.conf framework) >I tried it, but the following routing entry is not there anymore: >3ffe:8038:80:3::3 0:d0:b7:20:8a:7b UHLW lo0 >which maps the ipv6 address to the mac address. you don't need it. itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14033.959251830>