I just installed IPv6 on my gentoo Linode, using HE's provided IPv6
tunnel service. I've seen some interest on IPv6 in some of the other posts, so I decided to write a small guide for setting up IPv6, on your gentoo Linode. Well, here's how I did it.
1. Use flags and rc.conf
First you'll have to add
ipv6 to your use flags, if you haven't already. You can do that with ufed. An excelent USE flags editor.
Code:
# emerge app-portage/ufed
# ufed
Or just by adding
ipv6 to the USE line in
/etc/make.conf.
Next you should edit your
/etc/rc.conf. Find the line containing:
Code:
PROTOCOLS="1 2"
And change it so it reads:
Code:
PROTOCOLS="1 2 10"
2. Register for a tunnelGo to
http://tunnelbroker.net and signup for a tunnel. After confirming your email, login with your user and password. Choose
Tunnel Details and write down the following information:
Server IPv4 address
Client IPv6 address
3. Setting up the interfacesYou'll have to use both
sit0 and
sit1, don't worry if you can't see
sit1, it will appear after
sit0 has been setup.
Change dir to /etc/init.d/, and make two symlinks:
net.sit0 and
net.sit1 which both points to
net.eth0.
Code:
# cd /etc/init.d
# ln -s net.eth0 net.sit0
# ln -s net.eth0 net.sit1
Next edit
/etc/conf.d/net and add the following lines: (Remember to replace
<Server IPv4 address> and
<Client IPv6 address> with the values from Step 2.)
Code:
iface_sit0="inet6 tunnel ::<Server IPv4 address>"
iface_sit1="inet6 add <Client IPv6 address>"
routes_sit1="::/0 -A inet6 dev sit1"
4. Starting the tunnelYou're almost ready to go, just enter the following commands:
Code:
# /etc/init.d/net.sit0 start
# /etc/init.d/net.sit1 start
And you should be up and running, to test the connection try:
Code:
# ping6 www.kame.net
NB: You might have to recompile some packages with ipv6 support if you don't have the
ping6 command.
5. Making the tunnel start on bootIf you want the tunnel to start automatically if the node reboots, type the following:
Code:
# rc-update add net.sit0 default
# rc-update add net.sit1 default
I hope this guide can be of use to somebody. Feel free to comment if you find any errors or mistakes.