Setup a Raspberry PI as a home IPv6 router

20140220  jean@huens.be

Since my current ISP (telenet.be) does not offer IPv6 yet and since their offer does not specify if local home networking is provided I am forced to use tunnel brokers for IPv6 networking.

My setup to use a raspberry PI as a home IPv6 router is based on following description:

http://blog.icewheel.org/2013/03/raspberry-pi-as-ipv6-router-in-home.html

Main changes:

  1. Raspbian does not enable IPv6 by default. You probably need following changes:
  2. After installing gogoc the default gogoc.conf should hand out an IPv6 to your PI.
  3. To use my freenet6 account I made following changes:
    root@pi:/etc/gogoc# diff gogoc.conf  gogoc.conf.org
    31,32c31,32
    < userid=YOURACCOUNT_WITH_freenet6
    < passwd=YOURACCOUNT_PASSWORD
    ---
    > userid=
    > passwd=
    52,55c52
    < #server=anonymous.freenet6.net
    < server=amsterdam.freenet6.net
    < # montreal has same account
    < #server=montreal.freenet6.net
    ---
    > server=anonymous.freenet6.net
    74,75c71,72
    < #auth_method=anonymous
    < auth_method=any
    ---
    > auth_method=anonymous
    > #auth_method=any
    88,89c85
    < #host_type=host
    < host_type=router
    ---
    > host_type=host
    108,109c104
    < #if_prefix=
    < if_prefix=eth0
    ---
    > if_prefix=
    293d287
    < log_file=2
    root@piIPv6:/etc/gogoc#
    The line logfile=2 makes gogoc log verbously to /var/log/gogoc/gogoc.log

Problems

  1. On the PI "service gogoc restart" stops but does not restart the gogoc.
    I suspect timeing problems, since a "service gogoc start" will start without problems.

  2. Radvd is installed and will complain after a reboot since there is no config file. This is OK since gogoc will start radvd after receiving an address range from the freenet6 server.

  3. If for some reason module ipv6 is not loaded at startup, my PI hangs at network start after the ssh server message. Probably radvd or gogoc are trying to use ipv6?
    Workaround: On another Unix: Mount sd card and change e.g. /etc/modules OR reinstall rasbian wheezy ...