Yoshinobu Inoue wrote:
>
> 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. :-)
>
Yes, I am using site-local addresses like "fec0::9ee3:6b4", where I
am coding the IPv4 address in the lower 32 bits, and I am using
a prefixlen=120.
Just wondering: is the "alias" necessary? I can add a site-local IPv6
address to the same interface without the "alias" ifconfig keyword. If this
is valid, then something as
ifconfig_fxp0="inet 158.227.6.180 netmask 255.255.255.0 inet6 fec0::9ee3:6b4 prefixlen
120"
should be OK.
-- JMA
-----------------------------------------------------------------------
José Mª Alcaide | mailto:[EMAIL PROTECTED]
Universidad del País Vasco | mailto:[EMAIL PROTECTED]
Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose
Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479
48940 Lejona (Vizcaya) - SPAIN | Fax: +34-946013071
-----------------------------------------------------------------------
"Beware of Programmers who carry screwdrivers" -- Leonard Brandwein
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message