ipv6 aliases in rc.conf
Steve Bertrand
steve at ibctech.ca
Sat Feb 14 10:32:40 PST 2009
Reinhard Haller wrote:
> Hi,
>
> I'm trying to add ipv6 aliases for my jails (7.1) in rc.conf.
>
> ifconfig_lo0_alias0="inet 192.168.64.1 netmask 255.255.255.0"
> ifconfig_lo0_alias1="inet 192.168.64.2 netmask 255.255.255.255"
> ipv6_ifconfig_lo0_alias0="inet6 fd08:2548:a3e8:40::1 prefixlen 48"
> ipv6_ifconfig_lo0_alias1="inet6 fd08:2548:a3e8:40::2 prefixlen 128"
ifconfig_lo0="inet 192.168.64.1 netmask 255.255.255.0"
ifconfig_lo0_alias0="inet 192.168.64.2 netmask 255.255.255.255"
ifconfig_lo0_alias1="inet6 fd08:2548:a3e8:40::1 prefixlen 48"
ifconfig_lo0_alias2="inet6 fd08:2548:a3e8:40::2 prefixlen 128"
...works for me.
Technically, IPv6 is designed for multiple addresses on each interface,
so the secondary (alias) parameter should not be needed at all. However,
using ifconfig, we must abide by it's methods of usage.
IPv6 addresses should be put inline with the IPv4 addresses under the
alias numbering scheme, and things will hold together.
Out of curiosity, why are you using a /48 prefixlen? I understand the
/128 (when it is not inside of another assigned prefix), but IMHO, you
should only use a /64 on an interface.
Steve
More information about the freebsd-questions
mailing list