Re: ipv6_addrs_IF aliases in rc.conf(5)

From: Łukasz Wąsikowski <lukasz_at_wasikowski.net>
Date: Sat, 22 Dec 2012 15:25:56 +0100
W dniu 2012-12-22 04:41, Kimmo Paasiala pisze:

>>> It looks like the reason for the difference to ipv4_addrs_IF is that
>>> the "alias" parameter for ifconfig(8) operates differently for IPv6
>>> addresses, the first address of an interface can't be added with
>>> "alias", for IPv4 it does not care. I'll have to dig deeper but that's
>>> what the problem seems to be.
>>>
>>> -Kimmo
>>
>> The 'alias' parameter of ifconfig(8) is not the problem on the first
>> ipv6 address, I have verified that. However, there's probably
>> something in network.subr or /etc/rc.d/netif that I have overlooked
>> and causes my code to be skipped if there's no ifconfig_IF_ipv6
>> variable defined in rc.conf(5).
>>
>> -Kimmo
> 
> Yeah, this is problem in network.subr. An interface is not recognized
> as IPv6 capable if the interface is not in "ipv6_network_interfaces"
> and there's no "ifconfig_IF_ipv6" in rc.conf(5), bummer. For IPv4 it
> "just works" because the interface is always assumed to be IPv4
> capable.

Ok, I used ifconfig_em0_ipv6="up" and it worked. So it looks like this:

ipv6_activate_all_interfaces="NO"
ipv6_network_interfaces="em0"
ifconfig_em0_ipv6="up"
ipv6_addrs_em0="2001:6a0:1cb::1-ff/64"
ipv6_defaultrouter="2001:6a0:1cb::ffff"

Good job, thank you! :)

-- 
best regards,
Lukasz Wasikowski
Received on Sat Dec 22 2012 - 13:25:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:33 UTC