IPv6 configuration issues

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Mon Dec 30 15:31:48 UTC 2013

On Sat, 28 Dec 2013 23:05-0500, Jim Ohlstein wrote:

> Hello,
> I recently set up a new box with FreeBSD 10-RC2 amd64. The host  (OVH)
> provided a /64 of IPv6 addresses and gave me the following recommended
> configuration:
> # IPv6 configuration
> ipv6_enable="YES"

According to etc/rc.d/netif on stable/10, ipv6_enable is indeed 
superceeded by ipv6_activate_all_interfaces. Look at around line 47. 
Since you're setting an IPv6 address on igb0 below, you shouldn't need 
to use ipv6_activate_all_interfaces.

> ipv6_network_interfaces="igb0"

Do you need to fiddle with ipv6_network_interfaces?

Here's a quote from rc.conf(5) on stable/10:

                 (str) This is the IPv6 equivalent of network_interfaces.                                                                                                                                                                     
                 Normally manual configuration of this variable is not needed.                                                                                                                                                                

If you do need to fiddle, try adding lo0 at the beginning of the list. 
If that doesn't help, then I'm out of ideas. :-/

> ifconfig_igb0_ipv6="inet6 2001:41d0:a:XXXX::1 prefixlen 64"

This line uses the right nomenclature with _ipv6 at the end of the 
variable's name, and there's nothing wrong with the syntax as I can 

> ipv6_static_routes="ovhgw"
> ipv6_route_ovhgw="2001:41d0:a:1cff:ff:ff:ff:ff -prefixlen 128 -interface igb0"
> ipv6_defaultrouter="2001:41d0:a:1cff:ff:ff:ff:ff"

Maybe this is the real culprit. As far as I can tell you are inserting 
the same route twice.

> Taking the path of least resistance, I used these exact settings and
> everything worked just fine. After setting up a bunch of things I came back
> and decided to add some additional IPv6 addresses using
> ifconfig_igb0_alias0="inet6 2001:41d0:a:XXXX::2 prefixlen 64"
> etc.
> Restarting netif I got the following warning (which I should have remembered):
> /etc/rc.d/netif: WARNING: $ipv6_enable is obsolete.  Use
> $ipv6_activate_all_interfaces instead.
> So I dutifully replaced the line in my rc.conf and went along. All of my IPv6
> addresses could be pinged.
> After some time I compiled 10-STABLE from sources and rebooted only to find my
> IPv6 address were not reachable and I couldn't ping6 out of the server.
> First I tried removing 'ipv6_activate_all_interfaces="YES"' from my rc.conf.
> My IPv6 addresses still did not come up. So I added back the
> 'ipv6_enable="YES"' to my rc.conf and surprisingly my IPv6 addresses came back
> up (despite the warning).
> Any ideas as to why this deprecated entry is necessary? Any
> workarounds/suggestions?
> Thanks in advance!

| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |

More information about the freebsd-questions mailing list