ipv6 host part

JINMEI Tatuya /神明達哉 jinmei at wide.ad.jp
Thu Apr 28 21:11:21 PDT 2005


>>>>> On Fri, 29 Apr 2005 06:40:05 +0300, 
>>>>> Petri Helenius <pete at he.iki.fi> said:

>> No.
>> 
>> BTW: are you trying to configure multiple IPv6 addresses on a single
>> interface by specifying multiple interface IDs and getting prefix from
>> router advertisements?  If so, it's inherently difficult, not even via
>> rc.conf, since the kernel implementation can have only one interface
>> ID for address autoconfiguration.
>> 
> That is what I'm trying to do. The reason for that is to be able to 
> support SSL/TLS virtual hosts.

If you do not stick to the "standard" configuration via rc.conf, one
possible workaround is:

- send a router solicitation and get a prefix via router
  advertisements
- somehow (e.g., by a shell/perl script) identify the prefix
- assuming the prefix is "P/64", do the followings:
  # ifconfig IFNAME inet6 P::1 prefixlen 64 alias autoconf
  # ifconfig IFNAME inet6 P::2 prefixlen 64 alias autoconf
  # ifconfig IFNAME inet6 P::3 prefixlen 64 alias autoconf
  ...

The keyword "autoconf" is the point.  It tells the kernel that the
addresses should be updated based on succeeding router advertisements.

(This may not work depending on the FreeBSD version.  I've tested the
procedure on a 5.3R box)

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					jinmei at isl.rdc.toshiba.co.jp


More information about the freebsd-net mailing list