From owner-freebsd-net Thu May 25 3:50:47 2000 Delivered-To: freebsd-net@freebsd.org Received: from coconut.itojun.org (coconut.itojun.org [210.160.95.97]) by hub.freebsd.org (Postfix) with ESMTP id 0B94337B55C for ; Thu, 25 May 2000 03:50:44 -0700 (PDT) (envelope-from itojun@itojun.org) Received: from kiwi.itojun.org (localhost.itojun.org [127.0.0.1]) by coconut.itojun.org (8.9.3+3.2W/3.7W) with ESMTP id TAA14035; Thu, 25 May 2000 19:50:30 +0900 (JST) To: David Harmelin Cc: freebsd-net@freebsd.org In-reply-to: david.harmelin's message of Thu, 25 May 2000 10:29:57 +0100. <4.2.2.20000525102612.00b1ea30@alpha.dante.org.uk> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: nd6_lookup: failed to add route for neighbor From: itojun@iijlab.net Date: Thu, 25 May 2000 19:50:30 +0900 Message-ID: <14033.959251830@coconut.itojun.org> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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