From Gentoo Wiki
< IPv6
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

This page provides information about configuring IPv6 on Gentoo. For general information about IPv6, please refer to the IPv6 page.

When IPv6 is not used or required

Systems that don't use or require IPv6, and thus want to prioritise IPv4 over IPv6, can be configured to reflect this by modifying the /etc/gai.conf file.

Uncomment the IPv6 precedence lines, and change the final line to have a value of "100" rather than "10":[1]

FILE /etc/gai.conf
precedence  ::1/128       50
precedence  ::/0          40
precedence  2002::/16     30
precedence ::/96          20
precedence ::ffff:0:0/96  100

Note that it is not sufficient to only uncomment one of these lines; if one of these lines is uncommented, all need to be uncommented, otherwise glibc's getaddrinfo(3) won't work properly.[2]

Details about the /etc/gai.conf file can be found in the gai.conf(5) man page.

IPv6 tunnels

Refer to the IPv6 tunnels page.


Package Description
net-misc/ipv6calc IPv6 address calculator, which can convert an IPv4 address to a IPv6 address.
net-misc/sipcalc Advanced console-based IPv4/IPv6 subnet calculator