From owner-freebsd-current Mon Mar 6 17:21:44 2000 Delivered-To: freebsd-current@freebsd.org Received: from fgwmail5.fujitsu.co.jp (fgwmail5.fujitsu.co.jp [192.51.44.35]) by hub.freebsd.org (Postfix) with ESMTP id 84E6D37BE4E for ; Mon, 6 Mar 2000 17:21:40 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m5.gw.fujitsu.co.jp by fgwmail5.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id KAA25124; Tue, 7 Mar 2000 10:20:59 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from incapgw.fujitsu.co.jp by m5.gw.fujitsu.co.jp (8.9.3/3.7W-0002-Fujitsu Domain Master) id KAA22757; Tue, 7 Mar 2000 10:20:57 +0900 (JST) Received: from localhost ([192.168.245.223]) by incapgw.fujitsu.co.jp (8.9.3/3.7W-0002) id KAA26391; Tue, 7 Mar 2000 10:20:55 +0900 (JST) To: jose@we.lc.ehu.es Cc: freebsd-current@FreeBSD.ORG Subject: Re: IPv6: can a link-site (or global) address be configured in rc.conf? In-Reply-To: <38C3C9A6.28E3A38@we.lc.ehu.es> References: <38C3C9A6.28E3A38@we.lc.ehu.es> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000307102149S.shin@nd.net.fujitsu.co.jp> Date: Tue, 07 Mar 2000 10:21:49 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 59 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, > Hello, > > Now that I have several machines running FreeBSD 4.0, I started to > play with IPv6. It's fun! I have plans to set up a v6-over-v4 tunnel > and connect to the 6Bone. > > I read /usr/share/examples/IPv6/USAGE, /usr/share/doc/IPv6/IMPLEMENTATION > and some documents at the KAME web site. However, I still have to figure out > how to assign a not-link-local address (i.e., a site or global address) to > the [unique] Ethernet interface of each host in an automatic manner (from > /etc/rc.conf). After reading /etc/rc.network6 I concluded that no addresses > apart from the link-local ones are assigned to the interfaces. I am using > ifconfig manually to do this (BTW, I found that there is no need to specify > "alias"). I am new to IPv6, so maybe I am asking for something with no > sense... There seems to be already another answers and I might be missing a point, but you might mean you want to assigne an address with simple number in its lower 8byte? Such as, 3ffe:501:100e:2000::1 or 3ffe:501:100e:2000::2 not like 3ffe:501:100e:2000:200:eff:fe74:41d2 ? In that case, yes, you need to do ifconfig to assign former kind of address. They are relatively easy to memorize and useful as server addr. But you don't necessarily need to manually assign it. You can use existing ifconfig_ifname= and ifconfig_ifname_aliasnum= also for IPv6. (But there is no example for IPv6. I'll add examles.) E.g. if you want to assign 3ffe:501:100e:2000::1 and 3ffe:501:100e:2000::2 to ed0, I think following configuration works. ifconfig_ed0_alias0="inet6 3ffe:501:100e:2000::1 prefixlen 64" ifconfig_ed0_alias1="inet6 3ffe:501:100e:2000::2 prefixlen 64" (By the way, this is local addr here, and please not use exactly same prefix at another place. :-) Cheers, Yoshinobu Inoue To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message