Labels

new blog 2.0

2009/05/24

IPv6 on Gentoo.

If you've got IPv6 connectivity on Gentoo Linux, you may want to set some applications to prefer IPv6 over IPv4 addresses. This way, if both IPv4 and IPv6 addresses are returned from the DNS server, the application will go with the latter.
  1. Add ipv6 to the default USE flags in /etc/make.conf. Otherwise the applications built by emerge, will not necessarily be IPv6 aware.

  2. wget
    Edit /etc/wget/wgetrc file and uncomment the following setting:
    #/etc/wget/wgetrc
    # [...]
    prefer-family = IPv6
    # [...]
    Consequently, /usr/bin/emerge which uses wget as download engine, will try to pull the traffic via IPv6 first if only the DNS server of your mirror returns an IPv6 address.

  3. rsync
    Edit /etc/conf.d/rsyncd and add --ipv6 to the RSYNC_OPTS variable.

No comments: